FastMCP
Pythonic framework for building MCP servers and clients with decorators.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
FastMCP turns decorated Python functions into MCP tools, resources and prompts and handles transports for you. It also includes a client, server composition and auth helpers.
Best for
Python developers shipping an MCP server in a few lines of code.
Skills it helps with
Learn FastMCP by doing
- Secure a remote MCP server with OAuth
Protect a Streamable HTTP MCP server with OAuth 2.1 as the 2026-07-28 spec requires: resource metadata, audience checks, per-tool scopes and Inspector tests.
- Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
- Build an MCP server for an internal API
Two read-only tools, tested in MCP Inspector and called from Claude Code, Codex or Cursor.
Related tools
Model Context Protocol
Open protocol for connecting AI applications to tools and data.
Context7
Serves current, version-specific library documentation to coding agents over MCP.
GitHub MCP Server
GitHub's official MCP server for repositories, issues and pull requests.
Agent Plugins
Package format for shipping Agent Skills and MCP servers together.
Chrome DevTools for agents
MCP server and CLI for agents to debug live Chrome.
Figma MCP server
Figma's MCP server for giving coding agents design context.