MCP Hub
Back to servers

Streamable HTTP Python MCP Server Template

A boilerplate template for building Model Context Protocol servers in Python using the Streamable HTTP transport protocol. It provides a pre-configured foundation based on the MCP Python SDK for rapid development of custom HTTP-based MCP servers.

Stars
2
Forks
2
Updated
Jun 20, 2025
Validated
Feb 12, 2026

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

Reviews

No reviews yet

Sign in to write a review