{"id":22371553,"url":"https://github.com/jlowin/fastmcp","last_synced_at":"2026-08-27T15:45:09.035Z","repository":{"id":265588754,"uuid":"896296825","full_name":"jlowin/fastmcp","owner":"jlowin","description":"🚀 The fast, Pythonic way to build MCP servers and clients","archived":false,"fork":false,"pushed_at":"2025-05-06T17:46:05.000Z","size":1926,"stargazers_count":8848,"open_issues_count":41,"forks_count":469,"subscribers_count":44,"default_branch":"main","last_synced_at":"2025-05-06T19:52:09.861Z","etag":null,"topics":["fastmcp","llm","mcp","mcp-client","mcp-server","model-context-protocol"],"latest_commit_sha":null,"homepage":"https://gofastmcp.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlowin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-30T01:47:40.000Z","updated_at":"2025-05-06T19:39:52.000Z","dependencies_parsed_at":"2024-11-30T03:17:49.088Z","dependency_job_id":"91d758be-1f23-4405-8ee6-e550c9dec0c7","html_url":"https://github.com/jlowin/fastmcp","commit_stats":null,"previous_names":["jlowin/fastmcp"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlowin%2Ffastmcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlowin%2Ffastmcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlowin%2Ffastmcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlowin%2Ffastmcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlowin","download_url":"https://codeload.github.com/jlowin/fastmcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655723,"owners_count":21943066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastmcp","llm","mcp","mcp-client","mcp-server","model-context-protocol"],"created_at":"2024-12-04T20:28:21.401Z","updated_at":"2026-08-27T15:45:09.022Z","avatar_url":"https://github.com/jlowin.png","language":"Python","funding_links":[],"categories":["Frameworks","MCP Servers \u0026 Tools","MCP Servers \u0026 Execution Sandboxes","Developer Tools","Python","Agent Communication \u0026 Protocols","MCP Server 开发","Development Tools Mcp Servers","MCP Frameworks and libraries","Other Tools and Integrations","📚 Projects (1974 total)","🤝 Agent Frameworks \u0026 MCP","🤖 AI/ML","Agent Protocols","Building","Tools","MCP Ecosystem","Model Context Protocol (MCP)","模型上下文协议 MCP","Frameworks \u0026 Libraries","HarmonyOS","フレームワーク","🔎 Select Context","Table of Contents","SDKs","Frameworks \u0026 Tools","框架","🙏 Acknowledgments","Tools and Code","Developer Tools \u0026 SDKs","Dev Tools (29)","Open Source Projects","📑 Table of Contents","Frameworks (5 servers)","Agentic AI ![](https://img.shields.io/badge/_-AGENTIC-22d3ee?style=flat-square\u0026logo=openai\u0026logoColor=white)","Skills, Hooks, and MCP for Coordination","Server Frameworks and SDKs","AGENTS.md","LLM Tools","Framework"],"sub_categories":["📋 Project Management","Infrastructure","MCP SDKs","Multi-Agent Platforms","**1. 使用 LLM 构建 MCP 服务器**","Python","MCP Servers","Model Context Protocol (MCP) 🔥","🛠️ \u003ca name=\"other-tools-and-integrations\"\u003e\u003c/a\u003eOther Tools and Integrations","LLM Models","Community","Core \u0026 Frameworks","MCP Frameworks","Knowledge Management","Windows Manager","📂 \u003ca name=\"browser-automation\"\u003e\u003c/a\u003eブラウザ自動化","Developer Tools","🎧 \u003ca name=\"text-to-speech\"\u003e\u003c/a\u003eテキスト読み上げ","Example 2: Research a Topic","MCP (Model Context Protocol)","Frameworks \u0026 Libraries","🧰 Key Frameworks \u0026 Tools","MCP servers","Open Source","Notable Examples"],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003c!-- omit in toc --\u003e\n\n\u003cpicture\u003e\n  \u003csource width=\"550\" media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4-dark.png\"\u003e\n  \u003csource width=\"550\" media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4.png\"\u003e\n  \u003cimg width=\"550\" alt=\"FastMCP Logo\" src=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-2.png\"\u003e\n\u003c/picture\u003e\n\n# FastMCP 🚀\n\n\u003cstrong\u003eMove fast and make things.\u003c/strong\u003e\n\n*Made with 💙 by [Prefect](https://www.prefect.io/)*\n\n[![Docs](https://img.shields.io/badge/docs-gofastmcp.com-blue)](https://gofastmcp.com)\n[![Discord](https://img.shields.io/badge/community-discord-5865F2?logo=discord\u0026logoColor=white)](https://discord.gg/uu8dJCgttd)\n[![PyPI - Version](https://img.shields.io/pypi/v/fastmcp.svg)](https://pypi.org/project/fastmcp)\n[![TypeScript](https://img.shields.io/npm/v/%40prefecthq%2Ffastmcp-ts?label=typescript\u0026color=3178c6)](https://github.com/PrefectHQ/fastmcp-ts)\n[![Tests](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml/badge.svg)](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml)\n[![License](https://img.shields.io/github/license/PrefectHQ/fastmcp.svg)](https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE)\n\n\u003ca href=\"https://trendshift.io/repositories/21461\" target=\"_blank\"\u003e\u003cimg src=\"https://trendshift.io/api/badge/repositories/21461\" alt=\"prefecthq%2Ffastmcp | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n---\n\nThe [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) connects LLMs to tools and data. FastMCP is a full MCP application framework for servers, clients, and interactive apps. A server starts with ordinary Python:\n\n```python\nfrom fastmcp import FastMCP\n\nmcp = FastMCP(\"Demo 🚀\")\n\n@mcp.tool\ndef add(a: int, b: int) -\u003e int:\n    \"\"\"Add two numbers\"\"\"\n    return a + b\n\nif __name__ == \"__main__\":\n    mcp.run()\n```\n\n## Why FastMCP\n\nBuilding an effective MCP application is harder than it looks. FastMCP handles all of it. Declare a tool with a Python function, and the schema, validation, and documentation are generated automatically. Connect to a server with a URL, and transport negotiation, authentication, and protocol lifecycle are managed for you. You focus on your logic, and the MCP part just works: **with FastMCP, best practices are built in.**\n\n**That's why FastMCP is the standard framework for working with MCP.** FastMCP 1.0 was incorporated into the official MCP Python SDK in 2024. Today, the actively maintained standalone project is downloaded a million times a day, and some version of FastMCP powers 70% of MCP servers across all languages.\n\nFastMCP has three pillars:\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\" valign=\"top\" width=\"33%\"\u003e\n\u003ca href=\"https://gofastmcp.com/servers/server\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/servers-card.png\" alt=\"Servers\" /\u003e\n\u003cbr /\u003e\u003cstrong\u003eServers\u003c/strong\u003e\n\u003c/a\u003e\n\u003cbr /\u003eExpose tools, resources, and prompts to LLMs.\n\u003c/td\u003e\n\u003ctd align=\"center\" valign=\"top\" width=\"33%\"\u003e\n\u003ca href=\"https://gofastmcp.com/apps/overview\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/apps-card.png\" alt=\"Apps\" /\u003e\n\u003cbr /\u003e\u003cstrong\u003eApps\u003c/strong\u003e\n\u003c/a\u003e\n\u003cbr /\u003eGive your tools interactive UIs rendered directly in the conversation.\n\u003c/td\u003e\n\u003ctd align=\"center\" valign=\"top\" width=\"33%\"\u003e\n\u003ca href=\"https://gofastmcp.com/clients/client\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/clients-card.png\" alt=\"Clients\" /\u003e\n\u003cbr /\u003e\u003cstrong\u003eClients\u003c/strong\u003e\n\u003c/a\u003e\n\u003cbr /\u003eConnect to any MCP server — local or remote, programmatic or CLI.\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n**[Servers](https://gofastmcp.com/servers/server)** wrap your Python functions into MCP-compliant tools, resources, and prompts. **[Clients](https://gofastmcp.com/clients/client)** connect to any server with full protocol support. And **[Apps](https://gofastmcp.com/apps/overview)** give your tools interactive UIs rendered directly in the conversation.\n\n**Building in TypeScript?** [FastMCP for TypeScript](https://github.com/PrefectHQ/fastmcp-ts) is the official counterpart, built and maintained by the same team. Same pillars, same ideas, `npm install @prefecthq/fastmcp-ts`.\n\nReady to build? Start with the [installation guide](https://gofastmcp.com/getting-started/installation) or jump straight to the [quickstart](https://gofastmcp.com/getting-started/quickstart).\n\n## Scale MCP with Horizon\n\nFastMCP handles the MCP application layer. **[Prefect Horizon](https://www.prefect.io/horizon?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=readme_horizon\u0026utm_content=readme_body)** is the enterprise MCP gateway for scaling servers and tools across teams, with centralized governance over how they are deployed, discovered, secured, and used.\n\nFastMCP and Horizon are built by the same team at [Prefect](https://www.prefect.io/).\n\nDeploy FastMCP servers from GitHub with branch previews and instant rollback. Create a private registry of every MCP your company uses. Secure access with SSO and tool-level RBAC. Get audit logs, observability, and governance across your MCP stack. Remix approved tools into purpose-built endpoints for teams and agents.\n\nStart with FastMCP. [Scale with Horizon →](https://www.prefect.io/horizon?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=readme_horizon\u0026utm_content=readme_cta)\n\n## Installation\n\nWe recommend adding FastMCP to your project with [uv](https://docs.astral.sh/uv/):\n\n```bash\nuv add fastmcp\n```\n\nFor full installation instructions, including verification and upgrading, see the [**Installation Guide**](https://gofastmcp.com/getting-started/installation).\n\n**Upgrading?** We have guides for:\n- [Upgrading from FastMCP 3](https://gofastmcp.com/getting-started/upgrading/from-fastmcp-3)\n- [Upgrading from FastMCP 2](https://gofastmcp.com/getting-started/upgrading/from-fastmcp-2)\n- [Upgrading from MCP SDK v1](https://gofastmcp.com/getting-started/upgrading/from-mcp-sdk-v1) or [v2](https://gofastmcp.com/getting-started/upgrading/from-mcp-sdk-v2)\n- [Upgrading from the low-level SDK v1](https://gofastmcp.com/getting-started/upgrading/from-low-level-sdk-v1) or [v2](https://gofastmcp.com/getting-started/upgrading/from-low-level-sdk-v2)\n\n## 📚 Documentation\n\nFastMCP's complete documentation is available at **[gofastmcp.com](https://gofastmcp.com)**, including detailed guides, API references, and advanced patterns.\n\nDocumentation is also available in [llms.txt format](https://llmstxt.org/), which is a simple markdown standard that LLMs can consume easily:\n\n- [`llms.txt`](https://gofastmcp.com/llms.txt) is essentially a sitemap, listing all the pages in the documentation.\n- [`llms-full.txt`](https://gofastmcp.com/llms-full.txt) contains the entire documentation. Note this may exceed the context window of your LLM.\n\n**Community:** Join our [Discord server](https://discord.gg/uu8dJCgttd) to connect with other FastMCP developers and share what you're building.\n\n## Contributing\n\nWe welcome contributions! See the [Contributing Guide](https://gofastmcp.com/development/contributing) for setup instructions, testing requirements, and PR guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlowin%2Ffastmcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlowin%2Ffastmcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlowin%2Ffastmcp/lists"}