HTTP MCP Transport for Nchan - Python SDK
This is an HTTP-based MCP (Machine Conversation Protocol) transport library designed for integration with Nchan.
Installation
pip install httmcp
Usage
from httmcp import HTTMCP
# Create MCP server
mcp_server = HTTMCP(
name="my-mcp",
instructions="This is an MCP server",
publish_server="http://localhost:8080"
)
# Add MCP server to FastAPI application
app = FastAPI()
app.include_router(mcp_server.router)
OpenAPI Support
HTTMCP also supports creating MCP servers from OpenAPI specifications:
from httmcp import OpenAPIMCP
# Create MCP server from OpenAPI specification
mcp_server = await OpenAPIMCP.from_openapi(
definition="openapi.json",
name="my-openapi-mcp",
publish_server="http://localhost:8080"
)
# Add MCP server to FastAPI application
app = FastAPI()
app.include_router(mcp_server.router)
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.yml -p http://nchan:80
# Complete deployment with custom configuration
python -m httmcp \
--openapi-file gpt_actions_openapi.yml \
--name "my-gpts-service" \
--publish-server http://nchan:80 \
--host 0.0.0.0 \
--port 8080
CLI options:
-f, --openapi-file: OpenAPI specification file path or URL (required)-p, --publish-server: Nchan publish server URL for MCP transport (required)-n, --name: Custom name for your MCP server (default: derived from OpenAPI)-H, --host: Host address to bind the server (default: 0.0.0.0)-P, --port: Local port number for accessing your deployed MCP service (default: 8000)
Metadata
Release files for httmcp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| httmcp-0.3.1.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| httmcp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / httmcp-0.3.1.tar.gz
| Download URL | httmcp-0.3.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bc0973f758ec841fe92aff36482eb7869f716b8dc615ec798d8fed8171ba8fc
|
|
BLAKE2b-256 checksum How to use checksums |
3dd047ad25738e88db5345a31da366c728bf3d270096599113aba08c2ec5bbf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / httmcp-0.3.1-py3-none-any.whl
| Download URL | httmcp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d1ed06d6c56a609846019d6e5e7f091b12ac1ee89ef5c4e2c0379598c23f294
|
|
BLAKE2b-256 checksum How to use checksums |
8e3c26b09a9806f593bc7a8e5d296f2610f32aac827a793a4ee6d6eb55776601
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|