统一MCP服务器实现

统一MCP服务器实现

一个统一的模型上下文协议服务器,聚合多个MCP服务器为一个。

快速开始

  1. 使用Claude Desktop配置文件运行服务器: npx -y @1mcp/agent --config ~/Library/Application\ Support/Claude/claude_desktop_config.json
  2. 在Cursor配置文件中添加1MCP服务器(~/.cursor/mcp.json): { "mcpServers": { "1mcp": { "type": "http", "url": "http://localhost:3050/sse" } } }
  3. 启动后即可使用。

支持的选项包括:

  • --transport:选择传输类型("stdio"或"sse",默认"sse")
  • --config:指定配置文件路径
  • --port:更改SSE端口(默认3050)
  • --host:更改SSE主机(默认localhost)
  • --tags:按标签过滤服务器

更多信息请参考README文档。