MCP Streamable HTTP Python Server
A Python template for creating a streamable HTTP MCP server. Requires an external 'mcp-config.json' file for client setup.
mcp-streamable-http-python-server
This is a starting place for a new streamable-http MCP Server built with python.
Streamable HTTP Transport was introduced on 2025-03-26. See MCP Spec Changelog.
Starts with the MCP Python SDK Quickstart Example and contains dependencies for MCP to get rolling.
Clone or fork this repo, make updates and start building your Streamable HTTP MCP Server with Python.
Running
Set up your environment:
python3.11 -m venv my_env
. ./my_env/bin/activate
pip install -r requirements.txt
Run the server:
python server.py
With a custom port:
PORT=3002 python server.py
Connect a Client
You can connect a client to your MCP Server once it's running. Configure per the client's configuration. There is the mcp-config.json that has an example configuration that looks like this:
{
"mcpServers": {
"memvid": {
"type": "streamable-http",
"url": "http://localhost:3000"
}
}
}
Acknowledgements
- Obviously the modelcontextprotocol and Anthropic teams for the MCP Specification. https://modelcontextprotocol.io/introduction
- HeyFerrante for enabling and sponsoring this project.
Related Servers
NHL MCP Server
An MCP server for the NHL API, providing access to all documented endpoints.
ZeroPath MCP Server
Interact with your product security findings using natural language.
Serena
A coding agent toolkit that provides an LLM with IDE-like capabilities for semantic code retrieval and editing directly in your codebase.
Contrast MCP Server
Remediate vulnerabilities found by Contrast products using LLM and Coding Agent capabilities.
Ruby MCP Client
A Ruby client for the Model Context Protocol (MCP), enabling integration with external tools and services via a standardized protocol.
Node.js Sandbox MCP Server
Run arbitrary JavaScript in an isolated Docker container with on-the-fly npm dependency installation.
Codacy
Access the Codacy API to analyze code quality, coverage, and security for your repositories.
Authless Remote MCP Server on Cloudflare
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
MCP-Portainer Bridge
Manage Docker containers through the Portainer API.
OPNSense MCP Server
Manage OPNsense firewalls using Infrastructure as Code (IaC) principles.