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.

FastMCP Server is one of 6 APIs that FastMCP publishes on the APIs.io network.

Tagged areas include MCP, Server, Tools, Resources, and Prompts. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: fastmcp:fastmcp-server
name: FastMCP Server
description: 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.
humanURL: https://gofastmcp.com/servers/server
baseURL: ''
tags:
- MCP
- Server
- Tools
- Resources
- Prompts
- Python
- Framework
properties:
- type: Documentation
  url: https://gofastmcp.com/servers/server
- type: Documentation
  name: Tools
  url: https://gofastmcp.com/servers/tools
- type: Documentation
  name: Resources and Templates
  url: https://gofastmcp.com/servers/resources
- type: Documentation
  name: Prompts
  url: https://gofastmcp.com/servers/prompts
- type: Documentation
  name: Middleware
  url: https://gofastmcp.com/servers/middleware
- type: Documentation
  name: Dependency Injection
  url: https://gofastmcp.com/servers/dependency-injection
- type: Documentation
  name: Lifespan Management
  url: https://gofastmcp.com/servers/lifespan
- type: Documentation
  name: Context
  url: https://gofastmcp.com/servers/context
- type: Documentation
  name: Elicitation
  url: https://gofastmcp.com/servers/elicitation
- type: Documentation
  name: Progress Reporting
  url: https://gofastmcp.com/servers/progress
- type: Documentation
  name: Composition
  url: https://gofastmcp.com/servers/composition
- type: Documentation
  name: Testing
  url: https://gofastmcp.com/servers/testing
- type: Documentation
  name: OpenTelemetry
  url: https://gofastmcp.com/servers/telemetry