MCP Connect logo

MCP Connect

Organization
EvalsOne

Enables cloud-based AI services to access local Stdio based MCP servers via HTTP requests

PublisherEvalsOne
RepositoryMCP-connect
LanguagePython
Forks
35
Stars
240
Available tools
0
Transport typestreamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP Connect exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    240 stars and 35 forks from the linked repository.

MCP Connect

███╗   ███╗ ██████╗██████╗      ██████╗ ██████╗ ███╗   ██╗███╗   ██╗███████╗ ██████╗████████╗
████╗ ████║██╔════╝██╔══██╗    ██╔════╝██╔═══██╗████╗  ██║████╗  ██║██╔════╝██╔════╝╚══██╔══╝
██╔████╔██║██║     ██████╔╝    ██║     ██║   ██║██╔██╗ ██║██╔██╗ ██║█████╗  ██║        ██║   
██║╚██╔╝██║██║     ██╔═══╝     ██║     ██║   ██║██║╚██╗██║██║╚██╗██║██╔══╝  ██║        ██║   
██║ ╚═╝ ██║╚██████╗██║         ╚██████╗╚██████╔╝██║ ╚████║██║ ╚████║███████╗╚██████╗   ██║   
╚═╝     ╚═╝ ╚═════╝╚═╝          ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═╝   

License: MIT Node.js Version TypeScript

Lightweight bridge that exposes local MCP servers as HTTP APIs


What Is MCP Connect?

MCP Connect is an HTTP gateway that lets you call local MCP servers (that speak stdio) through Streamable HTTP or a classic request/response bridge.

What's New

  • Added Streamable HTTP mode on top of the classic request/response bridge
  • New quick-deploy scripts and configs under deploy/e2b for launching in an E2B sandbox

How It Works

+-----------------+   HTTP (JSON)               +------------------+      stdio      +------------------+
|                 |   /bridge                   |                  |                 |                  |
|  Cloud AI tools | <------------------------>  |  Node.js Bridge  | <------------>  |    MCP Server    |
|   (Remote)      |                             |    (Local)       |                 |     (Local)      |
|                 |   HTTP (SSE stream)         |                  |                 |                  |
|                 |   /mcp/:serverId            |                  |                 |                  |
+-----------------+         Tunnels (optional)  +------------------+                 +------------------+

Key Features

FeatureDescription
🚀 Dual modesCall local stdio MCP servers via Streamable HTTP or the classic HTTP bridge
🔄 Session managementMaintain conversational continuity with sessions
🔐 SecurityBearer token auth + CORS allowlist
🌐 Public accessBuilt-in Ngrok tunnel to expose endpoints externally
☁️ Cloud deployOne-click deploy to E2B cloud sandbox

Quick Start

Prerequisites

  • Node.js >= 22.0.0 (recommended)
  • npm or yarn

1) Install

bash
git clone https://github.com/EvalsOne/MCP-connect.git
cd mcp-connect
npm install

2) Preparations

A. Set up initial environment variables

bash
cp .env.example .env

Set ACCESS_TOKEN in .env before starting the server. Startup fails if it is empty.

B. Configure MCP servers

For Streamable HTTP method, each MCP server needs to be configurated separately, edit file to add more configurations other than the existing sample servers.

bash
vim mcp-servers.json  

3) Run

bash
# Build and start
npm run build
npm start

# Or use dev mode (hot reload)
npm run dev

# Enable Ngrok tunnel
npm run start:tunnel

After you see the startup banner, visit http://localhost:3000/health to check server status.


Usage

Mode 1: Streamable HTTP bridge

General-purpose and compatible with any MCP client that supports Streamable HTTP.

In Streamable HTTP mode, each MCP server is assigned a unique route. Example: add the fetch MCP server in mcp-servers.json.

json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"],
      "description": "HTTP/HTTPS content fetcher"
    }
  }
}

Once started, access the fetch MCP server with your favorite MCP client (e.g. Claude Code, Cursor, Codex, GitHub Copilot...)

http://localhost:3000/mcp/fetch

Note: You must configure mcp-servers.json before starting the service, otherwise the server won't be available.


Mode 2: Classic request/response bridge

Non-standard invocation where you implement methods like tools/list, tools/call, etc.

Include Authorization: Bearer <token> in every request header. ACCESS_TOKEN is required at startup.

Example 1: List available tools

bash
curl -X POST http://localhost:3000/bridge \
  -H "Authorization: Bearer your-secret-token-here" \
  -H "Content-Type: application/json" \
  -d '{
    "serverPath": "uvx",
    "args": ["mcp-server-fetch"],
    "method": "tools/list",
    "params": {}
  }'

Example 2: Call a tool

bash
curl -X POST http://localhost:3000/bridge \
  -H "Authorization: Bearer your-secret-token-here" \
  -H "Content-Type: application/json" \
  -d '{
    "serverPath": "uvx",
    "args": ["mcp-server-fetch"],
    "method": "tools/call",
    "params": {
      "name": "fetch",
      "arguments": {
        "url": "https://example.com"
      }
    }
  }'

Security

Authentication

MCP Connect requires a token-based authentication system. Set ACCESS_TOKEN in .env before startup. If it is empty, the server exits with a configuration error.

bash
Authorization: Bearer <your_auth_token>

Allowed Origins

In production, set ALLOWED_ORIGINS to restrict cross-origin requests:

env
ALLOWED_ORIGINS=https://yourdomain.com,https://app.yourdomain.com

If ALLOWED_ORIGINS is set, non-matching origins are rejected.


API Reference

GET /health

Health check endpoint (no auth required)

Response:

json
{"status": "ok"}

POST /mcp/:serverId

Streaming HTTP mode

Path params:

  • serverId: server ID defined in MCP_SERVERS

Headers:

  • Authorization: Bearer <token> (required)
  • Accept: application/json, text/event-stream (required)
  • mcp-session-id: <session-id> (optional, reuse existing session)

Body:

json
[
  {"jsonrpc":"2.0","id":"1","method":"tools/list","params":{}},
  {"jsonrpc":"2.0","method":"notifications/initialized"}
]

POST /bridge

Original request/response bridge mode

Headers:

  • Authorization: Bearer <token> (required)
  • Content-Type: application/json

Body:

json
{
  "serverPath": "Executable command or URL (http/https/ws/wss)",
  "method": "JSON-RPC method name",
  "params": {},
  "args": ["optional command-line args"],
  "env": {"OPTIONAL_ENV_VAR": "value"}
}

Supported methods:

  • tools/list, tools/call
  • prompts/list, prompts/get
  • resources/list, resources/read
  • resources/subscribe, resources/unsubscribe
  • completion/complete
  • logging/setLevel

Expose Publicly via Ngrok

  1. Get a token: https://dashboard.ngrok.com/get-started/your-authtoken

  2. Add to .env:

    env
    NGROK_AUTH_TOKEN=your-token-here
  3. Start the service:

    bash
    npm run start:tunnel
  4. The console will show public URLs:

    Tunnel URL: https://abc123.ngrok.io
    MCP Bridge URL: https://abc123.ngrok.io/bridge

Quick Deploy to E2B Sandbox

E2B provides isolated cloud sandboxes, ideal for running untrusted MCP servers safely.

Step 1: Prepare E2B environment

bash
# Sign up at https://e2b.dev and get an API key
pip install e2b
export E2B_API_KEY=your-e2b-api-key

Optionally set a bearer token for the bridge (preferred env for E2B deployments):

bash
export E2B_MCP_AUTH_TOKEN=your-secure-token

Step 2: Build sandbox templates

bash
cd deploy/e2b
python build.py

Step 3: Launch from template

bash
python sandbox_deploy.py --template-id mcp-dev-gui

See:E2B deployment guide for details.


Logging & Monitoring

Log files

  • combined.log: all levels
  • error.log: error level only

Levels

Control verbosity via LOG_LEVEL:

env
LOG_LEVEL=DEBUG  # development
LOG_LEVEL=INFO   # production (default)
LOG_LEVEL=WARN   # warnings + errors

Development

Project layout

src/
├── server/
│   └── http-server.ts      # HTTP server and routes
├── client/
│   └── mcp-client-manager.ts  # MCP client manager
├── stream/
│   ├── session-manager.ts   # session lifecycle
│   └── stream-session.ts    # SSE session implementation
├── config/
│   └── config.ts            # config loading & validation
├── utils/
│   ├── logger.ts            # Winston logger
│   └── tunnel.ts            # Ngrok tunnel management
└── index.ts                 # entry point

Contributing

Issues and PRs are welcome!


If this project helps you, please ⭐️ Star it!

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "evalsone-mcp-connect": {
      "command": "",
      "args": []
    }
  }
}

Use MCP Connect MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Connect is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when MCP Connect is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for MCP Connect.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the MCP Connect connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the MCP Connect tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the MCP Connect tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Connect to help me with this task?
MCP Connect
Sure. I read it.
Here is what I found using MCP Connect.

Frequently asked questions

What is the MCP Connect MCP server used for?

MCP Connect is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Connect MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Connect with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Connect MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Connect connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Connect MCP to TypingMind?

MCP Connect can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does MCP Connect MCP provide in TypingMind?

MCP Connect exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Connect MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Connect requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇