FastMCP Documentation Index (llms.txt)
Purpose: Authoritative URL index for FastMCP v2 documentation. Use web_fetch on these URLs to retrieve complete documentation.
Usage:
- Search this file for topic keywords
- Use web_fetch on the matched URL (append .md if needed)
- Apply patterns from fetched documentation
Example:
- Need authentication → Search "authentication" → web_fetch https://gofastmcp.com/servers/auth/authentication.md
FastMCP
Docs
- Changelog
- Bearer Token Authentication: Authenticate your FastMCP client with a Bearer token.
- OAuth Authentication: Authenticate your FastMCP client via OAuth 2.1.
- The FastMCP Client: Programmatic client for interacting with MCP servers through a well-typed, Pythonic interface.
- User Elicitation: Handle server-initiated user input requests with structured schemas.
- Server Logging: Receive and handle log messages from MCP servers.
- Message Handling: Handle MCP messages, requests, and notifications with custom message handlers.
- Progress Monitoring: Handle progress notifications from long-running server operations.
- Prompts: Use server-side prompt templates with automatic argument serialization.
- Resource Operations: Access static and templated resources from MCP servers.
- Client Roots: Provide local context and resource boundaries to MCP servers.
- LLM Sampling: Handle server-initiated LLM sampling requests.
- Background Tasks: Execute operations asynchronously and track their progress
- Tool Operations: Discover and execute server-side tools with the FastMCP client.
- Client Transports: Configure how FastMCP Clients connect to and communicate with servers.
- FastMCP Cloud: The fastest way to deploy your MCP server
- HTTP Deployment: Deploy your FastMCP server over HTTP for remote access
- Running Your Server: Learn how to run your FastMCP server locally for development and testing
- Project Configuration: Use fastmcp.json for portable, declarative project configuration
- Contributing: Development workflow for FastMCP contributors
- Releases: FastMCP versioning and release process
- Tests: Testing patterns and requirements for FastMCP
- Upgrade Guide: Migration instructions for upgrading between FastMCP versions
- Installation
- Quickstart
- Welcome to FastMCP 2.0!: The fast, Pythonic way to build MCP servers and clients.
- Anthropic API 🤝 FastMCP: Connect FastMCP servers to the Anthropic API
- Auth0 OAuth 🤝 FastMCP: Secure your FastMCP server with Auth0 OAuth
- AuthKit 🤝 FastMCP: Secure your FastMCP server with AuthKit by WorkOS
- AWS Cognito OAuth 🤝 FastMCP: Secure your FastMCP server with AWS Cognito user pools
- Azure (Microsoft Entra ID) OAuth 🤝 FastMCP: Secure your FastMCP server with Azure/Microsoft Entra OAuth
- ChatGPT 🤝 FastMCP: Connect FastMCP servers to ChatGPT in Chat and Deep Research modes
- Claude Code 🤝 FastMCP: Install and use FastMCP servers in Claude Code
- Claude Desktop 🤝 FastMCP: Connect FastMCP servers to Claude Desktop
- Cursor 🤝 FastMCP: Install and use FastMCP servers in Cursor
- Descope 🤝 FastMCP: Secure your FastMCP server with Descope
- Discord OAuth 🤝 FastMCP: Secure your FastMCP server with Discord OAuth
- Eunomia Authorization 🤝 FastMCP: Add policy-based authorization to your FastMCP servers with Eunomia
- FastAPI 🤝 FastMCP: Integrate FastMCP with FastAPI applications
- Gemini SDK 🤝 FastMCP: Connect FastMCP servers to the Google Gemini SDK
- Gemini CLI 🤝 FastMCP: Install and use FastMCP servers in Gemini CLI
- GitHub OAuth 🤝 FastMCP: Secure your FastMCP server with GitHub OAuth
- Google OAuth 🤝 FastMCP: Secure your FastMCP server with Google OAuth
- MCP JSON Configuration 🤝 FastMCP: Generate standard MCP configuration files for any compatible client
- OCI IAM OAuth 🤝 FastMCP: Secure your FastMCP server with OCI IAM OAuth
- OpenAI API 🤝 FastMCP: Connect FastMCP servers to the OpenAI API
- OpenAPI 🤝 FastMCP: Generate MCP servers from any OpenAPI specification
- Permit.io Authorization 🤝 FastMCP: Add fine-grained authorization to your FastMCP servers with Permit.io
- Scalekit 🤝 FastMCP: Secure your FastMCP server with Scalekit
- Supabase 🤝 FastMCP: Secure your FastMCP server with Supabase Auth
- WorkOS 🤝 FastMCP: Authenticate FastMCP servers with WorkOS Connect
- FastMCP CLI: Learn how to use the FastMCP command-line interface
- Contrib Modules: Community-contributed modules extending FastMCP
- Decorating Methods: Properly use instance methods, class methods, and static methods with FastMCP decorators.
- Testing your FastMCP Server: How to test your FastMCP server.
- Tool Transformation: Create enhanced tool variants with modified schemas, argument mappings, and custom behavior.
- init
- cli
- init
- claude_code
- claude_desktop
- cursor
- gemini_cli
- mcp_json
- shared
- run
- tasks
- init
- init
- bearer
- oauth
- client
- elicitation
- logging
- messages
- oauth_callback
- progress
- roots
- sampling
- tasks
- transports
- dependencies
- exceptions
- mcp_config
- init
- prompt
- prompt_manager
- init
- resource
- resource_manager
- template
- types
- init
- init
- auth
- jwt_issuer
- middleware
- oauth_proxy
- oidc_proxy
- init
- auth0
- aws
- azure
- debug
- descope
- discord
- github
- in_memory
- introspection
- jwt
- oci
- scalekit
- supabase
- workos
- redirect_validation
- context
- dependencies
- elicitation
- event_store
- http
- low_level
- init
- caching
- error_handling
- logging
- middleware
- rate_limiting
- timing
- tool_injection
- init
- components
- routing
- server
- proxy
- server
- init
- capabilities
- config
- converters
- handlers
- protocol
- subscriptions
- settings
- init
- tool
- tool_manager
- tool_transform
- init
- auth
- cli
- components
- exceptions
- http
- inspect
- json_schema
- json_schema_type
- logging
- mcp_config
- init
- init
- init
- base
- uv
- mcp_server_config
- init
- base
- filesystem
- init
- director
- formatters
- json_schema_converter
- models
- parser
- schemas
- tests
- types
- ui
- Authentication: Secure your FastMCP server with flexible authentication patterns, from simple API keys to full OAuth 2.1 integration with external identity providers.
- Full OAuth Server: Build a self-contained authentication system where your FastMCP server manages users, issues tokens, and validates them.
- OAuth Proxy: Bridge traditional OAuth providers to work seamlessly with MCP's authentication flow.
- OIDC Proxy: Bridge OIDC providers to work seamlessly with MCP's authentication flow.
- Remote OAuth: Integrate your FastMCP server with external identity providers like Descope, WorkOS, Auth0, and corporate SSO systems.
- Token Verification: Protect your server by validating bearer tokens issued by external systems.
- Server Composition: Combine multiple FastMCP servers into a single, larger application using mounting and importing.
- MCP Context: Access MCP capabilities like logging, progress, and resources within your MCP objects.
- User Elicitation: Request structured input from users during tool execution through the MCP context.
- Icons: Add visual icons to your servers, tools, resources, and prompts
- Client Logging: Send log messages back to MCP clients through the context.
- MCP Middleware: Add cross-cutting functionality to your MCP server with middleware that can inspect, modify, and respond to all MCP requests and responses.
- Progress Reporting: Update clients on the progress of long-running operations through the MCP context.
- Prompts: Create reusable, parameterized prompt templates for MCP clients.
- Proxy Servers: Use FastMCP to act as an intermediary or change transport for other MCP servers.
- Resources & Templates: Expose data sources and dynamic content generators to your MCP client.
- LLM Sampling: Request LLM text generation from the client or a configured provider through the MCP context.
- The FastMCP Server: The core FastMCP server class for building MCP applications with tools, resources, and prompts.
- Storage Backends: Configure persistent and distributed storage for caching and OAuth state management
- Background Tasks: Run long-running operations asynchronously with progress tracking
- Tools: Expose functions as executable capabilities for your MCP client.
- FastMCP Updates