Open-source Python library
http-mcp
A lightweight Model Context Protocol server for Starlette and FastAPI apps. It exposes Python functions as MCP tools and prompts over HTTP or STDIO.
- Stateless: no sessions, so it scales horizontally behind a load balancer
- Pydantic models generate each tool's schema and validate every call
- Scope-based authorization per tool, plus OAuth 2.1 support
- Python
- Pydantic
- Starlette
- JSON-RPC