Token导航 LogoToken导航

MCP Server · 开发工具

MCP Ollama Agent

A TypeScript example showcasing the integration of Ollama with the Model Context Protocol (MCP), specifically the Filesystem MCP Server. This project provides an interactive command-line interface for an AI agent that can utilize filesystem tools.

stdio官方级别未说明来源级核验工具 0tsx
TypeScriptAI代理开发工具

快速开始

作者 / 组织
ausboss
提供方
ausboss
运行时
Node.js

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

29

仓库热度

收录来源

2 个

MCP.so

选型结论

MCP Ollama Agent 属于开发工具类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

npx tsx ./src/demo.ts

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

带有Ollama集成的TypeScript MCP代理

该项目展示了 模型上下文协议(MCP) 服务器和 没有,允许AI模型通过统一的界面与各种工具进行交互。

✨ 特性

  • 支持多个MCP服务器(uvx和npx都经过测试)
  • 内置对文件系统操作和web研究的支持
  • 通过以下方式轻松配置 mcp-config.json 类似于 claude_desktop_config.json
  • 交互式聊天界面与Ollama集成,应支持任何工具
  • 独立演示模式,用于测试没有LLM的web和文件系统工具

🚀 入门指南

  1. 先决条件:

- Node.js(版本18或更高)

- Ollama已安装并正在运行

- 全局安装要使用的MCP工具:

     # For filesystem operations
     npm install -g @modelcontextprotocol/server-filesystem

     # For web research
     npm install -g @mzxrai/mcp-webresearch
  1. 克隆并安装:
   git clone https://github.com/ausboss/mcp-ollama-agent.git
   cd mcp-ollama-agent
   npm install
  1. 在中配置您的工具和工具支持的Olama模型 mcp-config.json:
   {
     "mcpServers": {
       "filesystem": {
         "command": "npx",
         "args": ["@modelcontextprotocol/server-filesystem", "./"]
       },
       "webresearch": {
         "command": "npx",
         "args": ["-y", "@mzxrai/mcp-webresearch"]
       }
     },
     "ollama": {
       "host": "http://localhost:11434",
       "model": "qwen2.5:latest"
     }
   }
  1. 运行演示以测试没有LLM的文件系统和webresearch工具:
   npx tsx ./src/demo.ts
  1. 或者启动与Ollama的聊天界面:
   npm start

⚙️ 配置

  • MCP服务器: 将任何兼容MCP的服务器添加到 mcpServers 章节
  • 没有 : 配置主机和型号(必须支持函数调用)
  • 支持Python(uvx)和Node.js(npx)MCP服务器

💡 示例用法

这个例子使用了这个模型 qwen2.5:最新

Chat started. Type "exit" to end the conversation.
You: can you use your list directory tool to see whats in test-directory then use your read file tool to read it to me?
Model is using tools to help answer...
Using tool: list_directory
With arguments: { path: 'test-directory' }
Tool result: [ { type: 'text', text: '[FILE] test.txt' } ]
Assistant:
Model is using tools to help answer...
Using tool: read_file
With arguments: { path: 'test-directory/test.txt' }
Tool result: [ { type: 'text', text: 'rosebud' } ]
Assistant: The content of the file `test.txt` in the `test-directory` is:
rosebud
You: thanks
Assistant: You're welcome! If you have any other requests or need further assistance, feel free to ask.

系统提示

一些本地模型可能需要工具选择方面的帮助。在中自定义系统提示 ChatManager.ts 以提高工具的使用率。

🤝 贡献

欢迎投稿!请随时提交问题或拉取请求。

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

developer-toolsagentollamaollama-toolsmcp-servermcp-clientmcp-agentAI模型交互

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Node.js,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
MCP Ollama Agent

MCP.so · 本页

0stdio有2 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

MCP Ollama Agent 怎么安装?

公开资料给出的安装命令是 npx tsx ./src/demo.ts,运行环境为 Node.js。装完后按客户端要求写进 MCP 配置,重启客户端生效。

MCP Ollama Agent 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Node.js;保存后完全退出客户端再打开,配置才会生效。

MCP Ollama Agent 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Ollama Agent 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Ollama Agent 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP