Skip to main content
Glama
ConechoAI

Nchan MCP Transport

by ConechoAI

๐Ÿš€ 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

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    8
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    2
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
  • A
    license
    Not graded
    quality
    C
    maintenance
    An 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ConechoAI/nchan-mcp-transport'

If you have feedback or need assistance with the MCP directory API, please join our Discord server