{"schemaVersion":1,"id":"github-com-prefecthq-fastmcp","name":"FastMCP","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/github-com-prefecthq-fastmcp/","officialUrl":"https://github.com/PrefectHQ/fastmcp","isCatalog":false,"description":"A Python framework for custom MCP servers, clients, and apps. Turn a Python function into a tool with automatic schema generation and validation, and reuse backend logic in agent tools.","tasks":["Wrap an internal Python API in MCP tools","Give an agent access to your database or service through narrowly scoped functions","Create and test MCP integrations as ordinary software code"],"categoryIds":["integrations","backend"],"subcategoryIds":["integrations.sdk","backend.api"],"tags":["Python","MCP"],"aliases":[],"platforms":[],"stack":["Python"],"compatibility":"Creates MCP-compliant servers; it is a tool for developing custom integrations. A separate Codex connection instruction is not confirmed; verify connection setup and tool operation in your chosen client.","pricing":"free","freeUsage":"The local open-source framework is free.","paidUsage":"The Prefect Horizon enterprise gateway is a separate offering and is not required to create a local MCP. Hosting and APIs called by your custom tools are billed under their own terms.","license":"Apache-2.0 in the current official PrefectHQ/fastmcp repository.","selectionGuide":{"purpose":"Wrap an internal Python API in MCP tools","chooseWhen":["Wrap an internal Python API in MCP tools","Give an agent access to your database or service through narrowly scoped functions","Create and test MCP integrations as ordinary software code"],"considerInstead":[],"requirements":["Choose the Python framework or separate TypeScript counterpart for the project stack."],"limitations":["Costs and limits of free use: The Prefect Horizon enterprise gateway is a separate offering and is not required to create a local MCP. Hosting and APIs called by your custom tools are billed under their own terms.","Terms of use: Apache-2.0 in the current official PrefectHQ/fastmcp repository.","Horizon enterprise features must not automatically be attributed to the free FastMCP framework."],"faq":[{"question":"What can you use for free in FastMCP?","answer":"The local open-source framework is free."},{"question":"What additional costs might arise with FastMCP?","answer":"The Prefect Horizon enterprise gateway is a separate offering and is not required to create a local MCP. Hosting and APIs called by your custom tools are billed under their own terms."},{"question":"How does FastMCP fit into an AI agent workflow?","answer":"Creates MCP-compliant servers; it is a tool for developing custom integrations. A separate Codex connection instruction is not confirmed; verify connection setup and tool operation in your chosen client."},{"question":"Which environment can you use FastMCP in?","answer":"Tech stack: Python."},{"question":"How do you get started with FastMCP?","answer":"Wrap one complete workflow in a tool and check the input schema. Call the tool from a client with successful and invalid requests. Separate data access from actions with side effects, then expand the set of tools."},{"question":"What does FastMCP provide for a server, client, and interactive application?","answer":"The Python framework helps declare tools, resources, and prompts with schema generation and function validation. The client handles local and remote servers, protocol, and authentication; MCP Apps add an interactive interface. The official TypeScript counterpart is the separate @prefecthq/fastmcp-ts package. Horizon with governance, SSO/RBAC, and a gateway is described separately from the framework."}],"related":[],"sources":["https://github.com/PrefectHQ/fastmcp","https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE","https://gofastmcp.com/","https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/README.md"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["One Python function or internal API, and a sample valid request.","The result schema, access rules, and a compatible MCP client."],"steps":["Wrap one complete workflow in a tool and check the input schema.","Call the tool from a client with successful and invalid requests.","Separate data access from actions with side effects, then expand the set of tools."],"checks":["Inputs are validated, errors are clear, and the result matches the declared schema.","The tool grants only the required permissions; agent calls are subject to access-boundary checks."],"goal":"Example workflow with FastMCP: Wrap an internal Python API in MCP tools."},"sources":["https://github.com/PrefectHQ/fastmcp","https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE","https://gofastmcp.com/","https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/README.md"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Tool / library","kind":"library","pricingNote":"The local open-source framework is free. The Prefect Horizon enterprise gateway is a separate offering and is not required to create a local MCP. Hosting and APIs called by your custom tools are billed under their own terms. The framework does not add useful business tools itself: functions, access rights, tests, and deployment must be developed. FastMCP 1.0 inside the official MCP Python SDK and current standalone FastMCP are different development lines; examples must match the chosen version. Not every client automatically supports all MCP apps and framework capabilities.","notes":null,"labeledSources":[{"url":"https://github.com/PrefectHQ/fastmcp","label":"Source code"},{"url":"https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE","label":"License"},{"url":"https://gofastmcp.com/","label":"Source: gofastmcp.com"},{"url":"https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/README.md","label":"Official source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}