Skip to main content
Glama
Streamable HTTP Python MCP Server Template

Streamable HTTP Python MCP Server Template

by ferrants

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

Related MCP server: Python MCP Server Template

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A template MCP server that provides a basic structure and configuration for building Model Context Protocol servers. Includes Docker support, environment configuration, and examples for both STDIO and SSE transport modes.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A foundational template for building MCP servers in Python using Streamable HTTP transport. Provides example implementations of tools, resources, and prompts to help developers create custom MCP integrations for AI assistants.
      -
    • A
      license
      A
      quality
      D
      maintenance
      A Python MCP server template with environment-driven configuration, key authentication with rotation, JSON logging, and a golden-set eval harness for building production-ready MCP servers.
      2
      MIT