流式HTTP服务器

一个使用流式HTTP传输的MCP服务器,可与LM Studio连接并提供多种工具功能。

  • by Arkaikus
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Arkaikus/mcp-streamable

使用说明

MCP流式HTTP服务器

使用Streamable HTTP传输的MCP服务器,与Docker Compose一起运行并连接到LM Studio。

使用Docker Compose运行

docker compose up --build

验证

  • 健康检查: http://localhost:8000/health
  • MCP端点: http://localhost:8000/mcp(流式HTTP)

LM工作室配置

打开LM工作室→ 程序标签 → 安装 → 编辑mcp.json 并添加:

{
  "mcpServers": {
    "my-local-mcp": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

保存后,您的模型将可以访问 add, greet,以及 reverse_text 工具。

地方发展(含紫外线)

uv sync
uv run uvicorn app.main:app --reload

添加工具

添加更多 @mcp.tool() 装饰功能 app/main.py 重建:

docker compose up --build