MCP server Python starter
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP server Python starter
A production-ready Model Context Protocol server in Python, ready to customize with coding agents. It runs over stdio for local clients and Streamable HTTP for remote ones, with OAuth, tests through real MCP clients, and a release pipeline.
Features
Current protocol: built on the official MCP Python SDK v2 and its
MCPServerAPI, for the 2026-07-28 spec, while still serving older clients.Two transports: stdio for Claude Code, Claude Desktop, and Cursor, plus stateless Streamable HTTP that scales horizontally.
Secure HTTP: OAuth per the MCP authorization spec, or static tokens. It won't start without an auth mode, and it blocks DNS rebinding.
Typed tools:
get_time,search_docs, andwhoamiuse type hints and Pydantic models as their schemas, with annotations and readable errors, plusdocs://resources.Backend integration:
list_notesandcreate_notecall a REST API with timeouts, validated responses, and errors the model can act on. See Connect a backend API.Real tests: tools are tested through real MCP clients in process, over stdio, and over HTTP, on both protocol eras, plus the built wheel and the Docker image.
Strict gates: Ruff, mypy in strict mode, and 90% coverage.
Publishing: releases to PyPI, the MCP Registry, and GHCR, with a test that keeps
server.jsonandpyproject.tomlin step.Agent-ready:
AGENTS.md, skills, and checks that run on every commit.
Related MCP server: mcp-agent-kit
Quick start
You need uv, which installs Python 3.15 for you, and Node for the MCP Inspector:
git clone https://github.com/opikdev/mcp-server-python-starter
cd mcp-server-python-starter
make sync
make inspectThe MCP Inspector opens in your browser. Connect, list the tools, and call get_time.
To run it over HTTP in Docker instead:
docker compose up --build --wait mcpThe server is now at http://localhost:3000/mcp, with the dev token dev-token-change-me-0123. To connect Claude Code, Claude Desktop, Cursor, or VS Code, see Connect a client.
Usage
Task | Command |
Try the tools in the MCP Inspector |
|
Serve over HTTP on your machine |
|
Run lint, types, tests with coverage, and repo checks |
|
Test the built wheel, the Docker image, and a real backend |
|
Fix formatting and lint you can fix automatically |
|
make e2e needs Docker. Over HTTP, the server needs an auth mode. See Configure HTTP auth.
To add a tool, create a module in src/mcp_app/tools/ with a register_* function, call it from src/mcp_app/server.py, and test it in tests/integration/test_tools.py. Before you release, read Publish a release.
Project structure
Path | Purpose |
| Entry point: stdio by default, or HTTP with |
| Builds the server with every tool and resource |
| One module per tool, or a small related set |
|
|
| The HTTP app, health check, and token verifiers |
| Clients for backend APIs |
| Unit, integration, and end-to-end tests |
| MCP Registry metadata |
| Architecture, guides, and decisions |
Contributing
Read CONTRIBUTING.md before opening a pull request, and follow the code of conduct.
Security
Report vulnerabilities privately, as described in SECURITY.md.
License
Released under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Build, test, publish, and run Kovca workflows from AI agents over remote MCP.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables building agent-ready APIs that expose tools as both HTTP and MCP endpoints from a single server definition, with automatic OpenAPI, discovery docs, and interactive API reference.5Apache 2.0
- AlicenseAqualityBmaintenanceEnables building and running zero-dependency MCP servers with automatic JSON Schema generation, exposing Python tools to Claude Desktop, Cursor, and autonomous agent fleets.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI tools to uniformly discover, inspect, and call tools, prompts, and resources from multiple upstream MCP servers through a small set of fixed MCP tools, over stdio or HTTP.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables developers to expose a single set of tool definitions as MCP server tools over stdio or Streamable HTTP, so Claude Code, Codex, Claude Desktop and Cursor can call them with risk-based annotations, human-approved irreversible writes, typed structured results and long-running job handling built in. It also ships the same tools as a CLI from one source, keeping both surfaces in parity.594 npmApache 2.0