mcp-streamable-http
by invariantlabs-ai·★ 129·Score 42
Python and TypeScript MCP server examples implementing Streamable HTTP protocol for cross-language communication.
Overview
This repository provides comprehensive example implementations of MCP Streamable HTTP client and server in both Python and TypeScript. It demonstrates cross-language compatibility where Python clients can communicate with TypeScript servers and vice versa. The implementation follows the official MCP Streamable HTTP specification and includes practical examples like a weather server that integrates with Anthropic's Claude API through the MCP protocol.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this reference implementation when you need to build MCP servers or clients using the Streamable HTTP transport protocol, especially when working with cross-language implementations.
When NOT to choose this
Don't choose this if you need a production-ready solution with robust error handling, security features, or authentication - this is primarily an example implementation.
Tools this server exposes
1 tool extracted from the READMEget_weatherGet current weather information for a location
Comparable tools
Installation
Installation
Python Example
git clone https://github.com/invariantlabs-ai/mcp-streamable-http.git
cd python-example/server
pip install .
python weather.pyTypeScript Example
cd typescript-example/server
npm install && npm run build
node build/index.jsClaude Desktop Integration
Add to Claude Desktop config.json:
"mcpServers": {
"streamable-http": {
"command": "node",
"args": ["/path/to/build/index.js"],
"env": {
"PORT": "8123"
}
}
}FAQ
- What is MCP Streamable HTTP?
- It's a transport layer implementation of the Model Context Protocol that uses HTTP for communication between MCP clients and servers.
- Can Python and TypeScript implementations communicate?
- Yes, the repository demonstrates cross-language compatibility where a Python client can communicate with a TypeScript server and vice versa.
On Hacker News
Recent discussion from the developer community.
- Story by lbeurerkellner · 2025-05-20
- Story by bishopsmother · 2025-05-30
Compare mcp-streamable-http with
Last updated · Auto-generated from public README + GitHub signals.