plugged.in MCP Proxy Server

plugged.in MCP Proxy Server

site icon
2025.04.02 19
中间件MCP管理开发效率
plugged.in MCP Proxy Server 是一个强大的中间件,用于聚合多个机器对话协议(MCP)服务器到一个统一的接口。它从plugged.in应用程序获取工具、提示和资源配置,并智能地将请求路由到适当的底层MCP服务器。该代理支持与任何MCP客户端(如Claude、Cline、Cursor等)的无缝集成,同时通过plugged.in生态系统提供高级管理功能。
View on GitHub

Overview

📋 基本能力

产品定位

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获取)。

安装教程

# 使用npx安装并运行
npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY

调试方式

Claude Desktop

在Claude Desktop配置中添加以下内容:

{
  "mcpServers": {
    "pluggedin": {
      "command": "npx",
      "args": ["-y", "@pluggedin/mcp-proxy@latest"],
      "env": {
        "PLUGGEDIN_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Cline

在Cline配置中添加以下内容:

{
  "mcpServers": {
    "pluggedin": {
      "command": "npx",
      "args": ["-y", "@pluggedin/mcp-proxy@latest"],
      "env": {
        "PLUGGEDIN_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Cursor

对于Cursor,可以使用命令行参数代替环境变量:

npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY

Docker使用

构建镜像

docker build -t pluggedin-mcp-proxy:latest .

运行容器

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测试

npx @modelcontextprotocol/inspector docker://pluggedin-mcp-container

许可证

该项目遵循 Apache-2.0 开源许可条款,请参阅 Apache-2.0 了解完整条款。