MCP Catalogs
Home

mcp-streamable-http

by invariantlabs-ai·129·Score 42

Python and TypeScript MCP server examples implementing Streamable HTTP protocol for cross-language communication.

developer-toolsai-llmcommunication
35
Forks
4
Open issues
12 mo ago
Last commit
2d ago
Indexed

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:

you:Building cross-language MCP server implementations
you:Creating HTTP-based MCP transport layer
you:Developing weather information MCP services
you:What is MCP Streamable HTTP?
you:Can Python and TypeScript implementations communicate?

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 README
  • get_weather

    Get current weather information for a location

Comparable tools

mcp-server-nodemcp-pythonmcp-http-bridge

Installation

Installation

Python Example

git clone https://github.com/invariantlabs-ai/mcp-streamable-http.git
cd python-example/server
pip install .
python weather.py

TypeScript Example

cd typescript-example/server
npm install && npm run build
node build/index.js

Claude 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.

Compare mcp-streamable-http with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.