ClaudeCodeMod

All shelves / MCP servers

πŸš€ Nchan MCP Transport

ConechoAI/nchan-mcp-transport Β· 29 stars Β· TypeScript Β· MIT

MCP server The best way to deploy mcp server. A high-performance WebSocket/SSE transport layer & gateway for Anthropic's MCP (Model Context Protocol) β€” powered by Nginx, Nchan, and FastAPI.

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

README.md

πŸš€ Nchan MCP Transport

A high-performance WebSocket/SSE transport layer & gateway for Anthropic's MCP (Model Context Protocol) β€” powered by Nginx, Nchan, and FastAPI.
For building real-time, scalable AI integrations with Claude and other LLM agents.


✨ What is this?

Nchan MCP Transport provides a real-time API gateway for MCP clients (like Claude) to talk to your tools and services over:

  • 🧡 WebSocket or Server-Sent Events (SSE)
  • ⚑️ Streamable HTTP compatible
  • 🧠 Powered by Nginx + Nchan for low-latency pub/sub
  • πŸ›  Integrates with FastAPI for backend logic and OpenAPI tooling

βœ… Ideal for AI developers building Claude plugins, LLM agents, or integrating external APIs into Claude via MCP.


🧩 Key Features

Feature Description
πŸ”„ Dual Protocol Support Seamlessly supports WebSocket and SSE with automatic detection
πŸš€ High Performance Pub/Sub Built on Nginx + Nchan, handles thousands of concurrent connections
πŸ”Œ MCP-Compliant Transport Fully implements Model Context Protocol (JSON-RPC 2.0)
🧰 OpenAPI Integration Auto-generate MCP tools from any OpenAPI spec
πŸͺ Tool / Resource System Use Python decorators to register tools and resources
πŸ“‘ Asynchronous Execution Background task queue + live progress updates via push notifications
🧱 Dockerized Deployment Easily spin up with Docker Compose

🧠 Why Use This?

MCP lets AI assistants like Claude talk to external tools. But:

  • Native MCP is HTTP+SSE, which struggles with long tasks, network instability, and high concurrency
  • WebSockets aren’t natively supported by Claude β€” this project bridges the gap
  • Server-side logic in pure Python (like FastMCP) may not scale under load

βœ… Nchan MCP Transport gives you:

  • Web-scale performance (Nginx/Nchan)
  • FastAPI-powered backend for tools
  • Real-time event delivery to Claude clients
  • Plug-and-play OpenAPI to Claude integration

πŸš€ Quickstart

πŸ“¦ 1. Install server SDK

pip install httmcp

πŸ§ͺ 2. Run demo in Docker

git clone https://github.com/yourusername/nchan-mcp-transport.git
cd nchan-mcp-transport
docker-compose up -d

πŸ›  3. Define your tool

@server.tool()
async def search_docs(query: str) -> str:
    return f"Searching for {query}..."

🧬 4. Expose OpenAPI service (optional)

openapi_server = await OpenAPIMCP.from_openapi("https://example.com/openapi.json", publish_server="http://nchan:80")
app.include_router(openapi_server.router)

πŸ–₯️ 5. One-Click GPTs Actions to MCP Deployment

HTTMCP provides a powerful CLI for instant deployment of GPTs Actions to MCP servers:

# Installation
pip install httmcp[cli]

# One-click deployment from GPTs Actions OpenAPI spec
python -m httmcp -f gpt_actions_openapi.json -p http://nchan:80

πŸ“š Use Cases

  • Claude plugin server over WebSocket/SSE
  • Real-time LLM agent backend (LangChain/AutoGen style)
  • Connect Claude to internal APIs (via OpenAPI)
  • High-performance tool/service bridge for MCP

πŸ”’ Requirements

  • Nginx with Nchan module (pre-installed in Docker image)
  • Python 3.9+
  • Docker / Docker Compose

πŸ›  Tech Stack

  • 🧩 Nginx + Nchan – persistent connection management & pub/sub
  • βš™οΈ FastAPI – backend logic & JSON-RPC routing
  • 🐍 HTTMCP SDK – full MCP protocol implementation
  • 🐳 Docker – deployment ready

πŸ“Ž Keywords

mcp transport, nchan websocket, sse for anthropic, mcp jsonrpc gateway, claude plugin backend, streamable http, real-time ai api gateway, fastapi websocket mcp, mcp pubsub, mcp openapi bridge


🀝 Contributing

Pull requests are welcome! File issues if you’d like to help improve:

  • Performance
  • Deployment
  • SDK integrations

πŸ“„ License

MIT License

Facts

Kind
MCP server
Repo
ConechoAI/nchan-mcp-transport
Group
Uncategorized
Stars
29
License
MIT
Language
TypeScript
Last push
2025-04-07
Forks
6
Topics
claude-plugin-backend, fastapi-websocket-mcp, mcp-jsonrpc-gateway, mcp-openapi-bridge, mcp-pubsub, mcp-transport, nchan-websocket, real-time-ai-api-gateway, sse-for-anthropic, streamable-http, actions, gpts, gpts-actions

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scraplingπŸ•·οΈ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k