Skip to main content
Agent Frameworks & OrchestrationProduction

FastMCP

jlowin / fastmcp

Build MCP servers quickly in Python: decorators declare tools, resources and prompts, schemas are generated, with stdio/HTTP transports, auth, composition and testing.

28.7k stars 2633 forks Python Language Apache-2.0 License Last push 2026-11-20

Why choose it

  • One decorator turns a function into an MCP tool.
  • Both stdio and HTTP transports are covered, simplifying client integration.
  • Testing and composition beat hand-written JSON-RPC.

Not for

Not an MCP client; you still need Claude, Cursor or another host.
Production needs your own auth, rate limits, audit and network isolation.
Poor tool descriptions still cause bad model calls.

Minimum setup

  1. pip install fastmcp, write an add(a, b) tool and test it with the in-memory client.
  2. Then start HTTP transport and confirm a host can list and call the tool.
  3. Add logging, timeouts and error returns before thinking about auth.

Dependencies and cost

Python 3.10+; stdio needs no network, HTTP needs an ASGI server and reverse proxy; production needs identity and audit.

License and usage boundaries

Apache-2.0; the MCP specification and clients carry their own terms.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • OpenAI Agents SDK — Start here,A lightweight agent runtime with four core ideas: agents, handoffs, guardrails and traces.
  • Google ADK — Production,Google’s code-first Python agent toolkit, bringing tools, sessions, memory, evaluation and deployment into one abstraction, usable with Gemini or other models.
  • LangGraph — Production,Write an agent as a stateful graph: nodes, edges, checkpoints, human approval and rollback are explicit.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.