Nchan MCP Transport
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ 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.
Related MCP server: FastAPI MCP Server
๐งฉ 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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time chat hub for AI agents โ Claude Code, Cursor, Cline, Codex over MCP or REST.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
An MCP gateway for teams deploying AI tools at scale to employee-facing and headless agents.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.8MIT
- AlicenseNot gradedqualityDmaintenanceA high-performance Model Context Protocol (MCP) server designed for large language models, enabling real-time communication between AI models and applications with support for session management and intelligent tool registration.2MIT
- FlicenseNot gradedqualityDmaintenanceA dual-transport MCP server that exposes your API as tools to LLM clients, supporting both stdio transport for local clients like Claude Desktop and HTTP/SSE transport for remote clients like OpenAI's Responses API.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that functions as an intelligent gateway for multiple LLM backends including OpenAI, Claude, and Ollama. It supports automatic provider fallback, streaming responses via Server-Sent Events, and real-time monitoring for robust AI integration.MIT