FastMCP Server
The FastMCP Server is the Python entry point for exposing tools, resources, prompts, and apps to any Model Context Protocol client. Developers instantiate a `FastMCP` server object and register components with decorators (`@mcp.tool`, `@mcp.resource`, `@mcp.prompt`). Schemas are generated automatically from Python type hints, with built-in support for dependency injection, middleware, lifespan management, context, structured logging, progress reporting, elicitation, authorization, component visibility, pagination, namespace transforms, and OpenTelemetry. Servers can be composed via mounting and proxying, and exposed over stdio, Streamable HTTP, or SSE transports.
Documentation
Documentation
https://gofastmcp.com/servers/server
Documentation
https://gofastmcp.com/servers/tools
Documentation
https://gofastmcp.com/servers/resources
Documentation
https://gofastmcp.com/servers/prompts
Documentation
https://gofastmcp.com/servers/middleware
Documentation
https://gofastmcp.com/servers/dependency-injection
Documentation
https://gofastmcp.com/servers/lifespan
Documentation
https://gofastmcp.com/servers/context
Documentation
https://gofastmcp.com/servers/elicitation
Documentation
https://gofastmcp.com/servers/progress
Documentation
https://gofastmcp.com/servers/composition
Documentation
https://gofastmcp.com/servers/testing
Documentation
https://gofastmcp.com/servers/telemetry