Token导航 LogoToken导航TokenDH.com
Ollama MCP Bridge Webui logo
AI代理未说明官方级别未说明来源级核验

Ollama MCP Bridge Webui

MCP Server

一个连接本地LLM(通过Ollama)与Model Context Protocol(MCP)服务器的TypeScript实现,提供Web界面,使开源模型能够使用与Claude相同的工具和功能,打造完全在本地硬件上运行的强大AI助手。

工具数

3

提示词数

0

GitHub Stars

5

资源数

0
本地AITypeScriptClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Rkm1999

提供方

Rkm1999

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Ollama MCP Bridge WebUI

一种TypeScript实现,通过web界面将本地LLM(通过Ollama)连接到模型上下文协议(MCP)服务器。这座桥允许开源模型使用与Claude相同的工具和功能,使强大的本地AI助手完全在您自己的硬件上运行。

特性

  • 多MCP集成:同时连接多个MCP服务器
  • 刀具检测:根据查询自动识别要使用的工具
  • web界面:带有可折叠工具描述的干净UI
  • 综合工具集:文件系统、网络搜索和推理能力

设置

自动安装

设置网桥的最简单方法是使用附带的安装脚本:

./install.bat

此脚本将:

  1. 如果需要,检查并安装Node.js
  2. 检查Ollama,必要时安装Ollama
  3. 安装所有依赖项
  4. 创建工作区目录(../workspace)
  5. 设置初始配置
  6. 构建TypeScript项目
  7. 下载Ollama的Qwen模型

运行脚本后,您只需:

  1. 将API密钥添加到 .env 文件(the $VARIABLE_NAME 配置中的引用将被替换为实际值)

手动设置

如果您更喜欢手动设置:

  1. 从以下位置安装Ollama ollama.com/下载
  2. 拉动Qwen模型: ollama pull qwen2.5-coder:7b-instruct-q4_K_M
  3. 安装依赖项: npm install
  4. 创建工作区目录: mkdir ../workspace
  5. 在中配置API密钥 .env
  6. 构建项目: npm run build

配置

网桥通过两个主要文件进行配置:

1.bridge_gonfig.json

此文件定义了MCP服务器、LLM设置和系统提示。环境变量被引用 $VARIABLE_NAME 语法。

例子:

{
  "mcpServers": {
    "filesystem": {
      "command": "node",
      "args": [
        "To/Your/Directory/Ollama-MCP-Bridge-WebUI/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js",
        "To/Your/Directory/Ollama-MCP-Bridge-WebUI/../workspace"
      ],
      "allowedDirectory": "To/Your/Directory/Ollama-MCP-Bridge-WebUI/../workspace"
    },
    "brave-search": {
      "command": "node",
      "args": [
        "To/Your/Directory/Ollama-MCP-Bridge-WebUI/node_modules/@modelcontextprotocol/server-brave-search/dist/index.js"
      ],
      "env": {
        "BRAVE_API_KEY": "$BRAVE_API_KEY"
      }
    },
    "sequential-thinking": {
      "command": "node",
      "args": [
        "To/Your/Directory/Ollama-MCP-Bridge-WebUI/node_modules/@modelcontextprotocol/server-sequential-thinking/dist/index.js"
      ]
    }
  },
  "llm": {
    "model": "qwen2.5-coder:7b-instruct-q4_K_M",
    "baseUrl": "http://localhost:11434",
    "apiKey": "ollama",
    "temperature": 0.7,
    "maxTokens": 8000
  },
  "systemPrompt": "You are a helpful assistant that can use various tools to help answer questions. You have access to three main tool groups: 1) Filesystem operations - for working with files and directories, 2) Brave search - for finding information on the web, 3) Sequential thinking for complex problem-solving. When a user asks a question that requires external information, real-time data, or file manipulation, you should use a tool rather than guessing or using only your pre-trained knowledge."
}

2..env文件

此文件存储敏感信息,如API密钥:

# Brave Search API key
BRAVE_API_KEY=your_brave_key_here

桥将自动更换 $BRAVE_API_KEY 在配置中使用您的实际值 .env 文件。

用法

开始桥

只需运行:

./start.bat

这将通过web界面启动网桥。

web界面

打开http://localhost:8080(或控制台中显示的端口)访问web界面。

许可证

MIT许可证-有关详细信息,请参阅许可证文件

目录标签

目录标签

本地AITypeScriptClaude本地部署LLM桥接MCP集成Web界面工具检测

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明api-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP