@pluggedin/pluggedin-mcp-proxy

0.5.8 • Public • Published

plugged.in MCP Proxy Server

plugged.in Logo

The Crossroads for AI Data Exchanges

A unified interface for managing all your MCP servers

GitHub Stars License TypeScript MCP

📋 Overview

The plugged.in MCP Proxy Server is a powerful middleware that aggregates multiple Machine Conversation Protocol (MCP) servers into a single unified interface. It fetches tool, prompt, and resource configurations from the plugged.in App and intelligently routes requests to the appropriate underlying MCP servers.

This proxy enables seamless integration with any MCP client (Claude, Cline, Cursor, etc.) while providing advanced management capabilities through the plugged.in ecosystem.

✨ Key Features

  • Universal MCP Compatibility: Works with any MCP client including Claude Desktop, Cline, and Cursor
  • Multi-Server Support: Connect both STDIO (command-line) and WebSocket (HTTP-based) MCP servers
  • Namespace Isolation: Keep joined MCPs separate and organized with proper prefixing
  • Multi-Workspace Layer: Switch between different sets of MCP configurations with one click
  • Real-time Updates: Dynamic updates of MCP configurations through the plugged.in App
  • Tool Management: Discover, report, and manage tools across all connected MCP servers
  • Intelligent Routing: Automatically route tool calls to the appropriate underlying MCP server
  • Streamable HTTP Support: Implements the latest MCP specification for streaming responses

🚀 Quick Start

Prerequisites

  • Node.js 18+ (recommended v20+)
  • An API key from the plugged.in App (get one at plugged.in/api-keys)

Installation

# Install and run with npx
npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY

Configuration for MCP Clients

Claude Desktop

Add the following to your Claude Desktop configuration:

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

Cline

Add the following to your Cline configuration:

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

Cursor

For Cursor, you can use command-line arguments instead of environment variables:

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

⚙️ Configuration Options

Environment Variables

Variable Description Required Default
PLUGGEDIN_API_KEY API key from plugged.in App Yes -
PLUGGEDIN_API_BASE_URL Base URL for plugged.in App No https://plugged.in

Command Line Arguments

Command line arguments take precedence over environment variables:

npx -y @pluggedin/mcp-proxy@latest --pluggedin-api-key YOUR_API_KEY --pluggedin-api-base-url https://your-custom-url.com

For a complete list of options:

npx -y @pluggedin/mcp-proxy@latest --help

🐳 Docker Usage

You can also build and run the proxy server using Docker.

Building the Image

Ensure you have Docker installed and running. Navigate to the pluggedin-mcp directory and run:

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

A .dockerignore file is included to optimize the build context.

Running the Container

Run the container, providing the necessary environment variables:

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

Replace YOUR_API_KEY and YOUR_API_BASE_URL (if not using the default https://plugged.in).

Testing with MCP Inspector

While the container is running, you can connect to it using the MCP Inspector:

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

This will connect to the standard input/output of the running container.

Stopping the Container

Press Ctrl+C in the terminal where docker run is executing. The --rm flag ensures the container is removed automatically upon stopping.

🏗️ System Architecture

The plugged.in MCP Proxy Server acts as a bridge between MCP clients and multiple underlying MCP servers:

sequenceDiagram
    participant MCPClient as MCP Client (e.g. Claude Desktop)
    participant PluggedinMCP as plugged.in MCP Proxy
    participant PluggedinApp as plugged.in App
    participant MCPServers as Underlying MCP Servers

    MCPClient ->> PluggedinMCP: Request list tools (tools/list)
    PluggedinMCP ->> PluggedinApp: Get active server configurations
    PluggedinApp ->> PluggedinMCP: Return server configurations
    
    opt If TOOLS_MANAGEMENT capability enabled
        PluggedinMCP ->> PluggedinApp: Get inactive tool list
        PluggedinApp ->> PluggedinMCP: Return inactive tool list
    end
    
    loop For each active MCP Server
        PluggedinMCP ->> MCPServers: Request list_tools
        MCPServers ->> PluggedinMCP: Return list of tools
        
        opt If TOOLS_MANAGEMENT capability enabled
             PluggedinMCP ->> PluggedinApp: Report discovered tools
             PluggedinApp ->> PluggedinMCP: Report confirmation
        end
    end
    
    PluggedinMCP ->> PluggedinMCP: Aggregate & Filter tool lists
    PluggedinMCP ->> MCPClient: Return aggregated list of active tools

    MCPClient ->> PluggedinMCP: Call tool (with prefixed tool name)
    PluggedinMCP ->> PluggedinMCP: Find target downstream server
    PluggedinMCP ->> MCPServers: call_tool (with original tool name)
    MCPServers ->> PluggedinMCP: Return tool response
    PluggedinMCP ->> MCPClient: Return tool response

🔄 Workflow

  1. Configuration: The proxy fetches server configurations from the plugged.in App
  2. Tool Discovery: The proxy connects to each configured MCP server and discovers available tools
  3. Tool Reporting: Discovered tools are reported back to the plugged.in App for management
  4. Tool Aggregation: All active tools are aggregated and presented to the MCP client
  5. Request Routing: Tool calls from the client are routed to the appropriate underlying MCP server
  6. Response Handling: Responses from the underlying servers are returned to the client

🧩 Integration with plugged.in App

The plugged.in MCP Proxy Server is designed to work seamlessly with the plugged.in App, which provides:

  • A web-based interface for managing MCP server configurations
  • Tool discovery and management capabilities
  • Multi-workspace support for different configuration sets
  • An interactive playground for testing MCP tools
  • User authentication and API key management

📚 Related Resources

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

Readme

Keywords

Package Sidebar

Install

npm i @pluggedin/pluggedin-mcp-proxy

Weekly Downloads

70

Version

0.5.8

License

Apache-2.0

Unpacked Size

77.8 kB

Total Files

13

Last publish

Collaborators

  • pluggedin