📋 基本能力
产品定位
plugged.in MCP Proxy Server 是一个中间件,用于统一管理和路由多个MCP服务器的请求,提供高级管理功能和与MCP客户端的无缝集成。
核心功能
- Universal MCP Compatibility: 兼容任何MCP客户端,包括Claude Desktop、Cline和Cursor。
- Multi-Server Support: 支持连接STDIO(命令行)和WebSocket(基于HTTP)的MCP服务器。
- Namespace Isolation: 通过适当的前缀保持连接的MCP服务器隔离和组织。
- Multi-Workspace Layer: 一键切换不同的MCP配置集。
- Simplified Architecture: 简化的代码库,启动时间更短,复杂性更低。
- API-Driven Proxy: 通过plugged.in App API获取能力,而不是直接发现。
- Full MCP Support: 处理工具、资源、资源模板和提示。
- Custom Instructions: 支持服务器特定的指令,格式化为MCP提示。
适用场景
- 需要统一管理多个MCP服务器的场景。
- 需要与多种MCP客户端集成的场景。
- 需要高级管理和路由功能的场景。
🚀 使用教程
使用依赖
- Node.js 18+(推荐v20+)。
- 从plugged.in应用程序获取API密钥(在plugged.in/api-keys获取)。
安装教程
```bash
使用npx安装并运行
npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY
```
调试方式
Claude Desktop
在Claude Desktop配置中添加以下内容:
json
{
"mcpServers": {
"pluggedin": {
"command": "npx",
"args": ["-y", "@pluggedin/mcp-proxy@latest"],
"env": {
"PLUGGEDIN_API_KEY": "YOUR_API_KEY"
}
}
}
}
Cline
在Cline配置中添加以下内容:
json
{
"mcpServers": {
"pluggedin": {
"command": "npx",
"args": ["-y", "@pluggedin/mcp-proxy@latest"],
"env": {
"PLUGGEDIN_API_KEY": "YOUR_API_KEY"
}
}
}
}
Cursor
对于Cursor,可以使用命令行参数代替环境变量:
bash
npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY
Docker使用
构建镜像
bash
docker build -t pluggedin-mcp-proxy:latest .
运行容器
bash
docker run -it --rm \
-e PLUGGEDIN_API_KEY="YOUR_API_KEY" \
-e PLUGGEDIN_API_BASE_URL="YOUR_API_BASE_URL" \
--name pluggedin-mcp-container \
pluggedin-mcp-proxy:latest
使用MCP Inspector测试
bash
npx @modelcontextprotocol/inspector docker://pluggedin-mcp-container