
fastmcp
Python framework for building MCP servers, clients and interactive apps
The repository was last updated 23 hours ago and is published under Apache-2.0.
- Pricing
- Open source
- Platforms
- API, CLI, Linux
- GitHub stars
- 28.6K
- Last commit
- 1 day ago
- Language
- Python
- License
- Apache-2.0
Similar MCP servers
About fastmcp
fastmcp is an open-source MCP server for developer tools. It is available on API, CLI, Linux, macOS, Windows and self-hosted.
The README describes FastMCP as a Python application framework for the Model Context Protocol. You write ordinary functions and decorate them, and the framework generates the schema, validation and protocol handling. It also includes a client for connecting to local or remote MCP servers from Python or the command line, and an app layer that can render forms, tables and charts inside compatible MCP clients.
The project is Apache 2.0 licensed and developed on GitHub, and its high-level API was adopted into the official MCP Python SDK in 2024. Its test helpers let you exercise a server in memory without starting a separate process, and features such as authentication providers, middleware, tool transformation and server composition are documented on the project site.
It suits Python developers who want to expose internal tools, data or skills to AI assistants without writing protocol code. Teams that need hosting, a private registry, SSO or audit logs are pointed to the separate commercial FastMCP Gateway product.
What it does
- Decorator-based tool definitions
- Turn a Python function into an MCP tool, resource or prompt with a decorator.
- Python and CLI clients
- Connect to local or remote MCP servers from Python code or the command line.
- Interactive app components
- Return tables, forms and charts that users can work with inside compatible MCP clients.
- Built-in authentication
- Plug in an identity provider such as GitHub so the server handles the MCP auth flow.
- In-memory testing
- Run and assert against a server in tests without launching a separate process.
- Server composition and middleware
- Combine existing APIs or MCP servers behind one endpoint and add logging or rate limits.
Good for
- Exposing an internal search or database lookup to an AI assistant as a tool
- Sharing team skill files with coding agents from one central server
- Building a searchable data table or chart that appears inside an MCP client
- Writing automated tests for an MCP server before deploying it
- Connecting a Python script to remote MCP servers for programmatic tool calls
Pricing
Open source
Open source framework under Apache 2.0. FastMCP Gateway is a separate enterprise product with plans not priced on the page.
Prices change. Check gofastmcp.com before you buy.
fastmcp FAQ
What license is FastMCP released under?
The website and README state that FastMCP is Apache 2.0 licensed and developed on GitHub.
Is there a TypeScript version?
The README mentions FastMCP for TypeScript, maintained by the same team, installable as @prefecthq/fastmcp-ts.
How do I install FastMCP?
The README recommends adding it to a project with uv using the command uv add fastmcp.
Is fastmcp free?
Yes. fastmcp is open source, so you can use and self-host it for free.
What are the best alternatives to fastmcp?
The closest alternatives to fastmcp are fastapi_mcp, python-sdk, MCP Foundry — Build, Test & Publish MCP Servers, awesome-mcp-servers and MCP-Bridge.
Where this comes from
- Description: written from the project's README and the project's website.


