Streamable Http
FreeNot checkedExample implementation of MCP Streamable HTTP client/server in Python and TypeScript.
About
Example implementation of MCP Streamable HTTP client/server in Python and TypeScript.
README
This repository provides example implementations of MCP (Model Context Protocol) Streamable HTTP client and server in Python and Typescript, based on the specification: 📄 MCP Streamable HTTP Spec.
You can set up a client + server stack entirely using either Python or TypeScript. This example also demonstrates cross-language compatibility, allowing a Python client to communicate with a TypeScript server, and vice-versa.
🚀 Getting Started
1. Clone the Repository
git clone https://github.com/invariantlabs-ai/mcp-streamable-http.git
cd python-example
2. Python Example
1. Add Your Anthropic API Key
Update the .env file inside the python-example/client directory with the following content:
ANTHROPIC_API_KEY=your_api_key_here
2. Set Up the Server
cd python-example/server
pip install .
python weather.py
By default, the server will start at http://localhost:8123.
If you'd like to specify a different port, use the --port flag:
python weather.py --port=9000
3. Set Up the Client
cd ../client
pip install .
4. Run the Client
python client.py
This will start an interactive chat loop using the MCP Streamable HTTP protocol.
If you started the MCP server on a different port, specify it using the --mcp-localhost-port flag:
python client.py --mcp-localhost-port=9000
3. Typescript Example
1. Add Your Anthropic API Key
Update the .env file inside the typescript-example/client directory with the following content:
ANTHROPIC_API_KEY=your_api_key_here
2. Set Up the Server
cd typescript-example/server
npm install && npm run build
node build/index.js
By default, the server will start at http://localhost:8123.
If you'd like to specify a different port, use the --port flag:
node build/index.js --port=9000
3. Set Up the Client
cd ../client
npm install && npm run build
4. Run the Client
node build/index.js
This will start an interactive chat loop using the MCP Streamable HTTP protocol.
If you started the MCP server on a different port, specify it using the --mcp-localhost-port flag:
node build/index.js --mcp-localhost-port=9000
💬 Example Queries
In the client chat interface, you can ask questions like:
- “Are there any weather alerts in Sacramento?”
- “What’s the weather like in New York City?”
- “Tell me the forecast for Boston tomorrow.”
The client will forward requests to the local MCP weather server and return the results using Anthropic’s Claude language model. The MCP transport layer used will be Streamable HTTP.
Installing Streamable Http
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/invariantlabs-ai/mcp-streamable-httpFAQ
Is Streamable Http MCP free?
Yes, Streamable Http MCP is free — one-click install via Unyly at no cost.
Does Streamable Http need an API key?
No, Streamable Http runs without API keys or environment variables.
Is Streamable Http hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Streamable Http in Claude Desktop, Claude Code or Cursor?
Open Streamable Http on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Streamable Http with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
