Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ types & classes
Types & classes
1,545 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,524
◇
Types & classes
1,545
↳
Endpoints
103
↓ 1,610 callers
Class
FastMCP
fastmcp_slim/fastmcp/server/server.py:314
↓ 1,161 callers
Class
Client
MCP client that delegates connection management to a Transport instance. The Client class is responsible for MCP protocol logic, while the T
fastmcp_slim/fastmcp/client/client.py:130
↓ 100 callers
Class
HTTPRoute
Intermediate Representation for a single OpenAPI operation.
fastmcp_slim/fastmcp/utilities/openapi/models.py:47
↓ 86 callers
Class
FastMCPTransport
In-memory transport for FastMCP servers. This transport connects directly to a FastMCP server instance in the same Python process. It works w
fastmcp_slim/fastmcp/client/transports/memory.py:19
↓ 80 callers
Class
OAuthProxy
OAuth provider that presents a DCR-compliant interface while proxying to non-DCR IDPs. Purpose ------- MCP clients expect OAuth providers
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:128
↓ 72 callers
Class
FastMCPApp
A Provider that represents an MCP application. Binds together entry-point tools (``@app.ui``), backend tools (``@app.tool``), and the Prefab
fastmcp_slim/fastmcp/apps/app.py:144
↓ 66 callers
Class
StreamableHttpTransport
Transport implementation that connects to an MCP server via Streamable HTTP Requests.
fastmcp_slim/fastmcp/client/transports/http.py:27
↓ 65 callers
Class
ArgTransform
Configuration for transforming a parent tool's argument. This class allows fine-grained control over how individual arguments are transformed
fastmcp_slim/fastmcp/tools/tool_transform.py:108
↓ 62 callers
Class
AzureProvider
Azure (Microsoft Entra) OAuth provider for FastMCP. This provider implements Azure/Microsoft Entra ID authentication using the OAuth Proxy pa
fastmcp_slim/fastmcp/server/auth/providers/azure.py:39
↓ 62 callers
Class
JWTVerifier
JWT token verifier supporting both asymmetric (RSA/ECDSA) and symmetric (HMAC) algorithms. This verifier validates JWT tokens using various
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:195
↓ 62 callers
Class
StaticTokenVerifier
Simple static token verifier for testing and development. This verifier validates tokens against a predefined dictionary of valid token
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:592
↓ 61 callers
Class
LocalProvider
Provider for locally-defined components. Supports decorator-based registration (`@provider.tool`, `@provider.resource`, `@provider.prompt`) a
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:51
↓ 59 callers
Class
CodeMode
Transform that collapses all tools into discovery + execute meta-tools. Discovery tools are composable via the ``discovery_tools`` parameter.
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:497
↓ 59 callers
Class
VersionSpec
Specification for filtering components by version. Used by transforms and providers to filter components to a specific version or version ran
fastmcp_slim/fastmcp/utilities/versions.py:31
↓ 56 callers
Class
RequestBodyInfo
Represents the request body for an HTTP operation in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:29
↓ 49 callers
Class
AccessToken
AccessToken that includes all JWT claims.
fastmcp_slim/fastmcp/server/auth/auth.py:54
↓ 49 callers
Class
ParameterInfo
Represents a single parameter for an HTTP operation in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:17
↓ 48 callers
Class
Message
Wrapper for prompt message with auto-serialization. Accepts any content - strings pass through, other types (dict, list, BaseModel) are JSON-
fastmcp_slim/fastmcp/prompts/base.py:44
↓ 46 callers
Class
Tool
Internal tool registration info.
fastmcp_slim/fastmcp/tools/base.py:180
↓ 44 callers
Class
AuthContext
Context passed to auth check callables. Attributes: token: The current access token, or None if unauthenticated. component: The t
fastmcp_slim/fastmcp/utilities/authorization.py:27
↓ 44 callers
Class
ToolResult
fastmcp_slim/fastmcp/tools/base.py:95
↓ 42 callers
Class
OAuth
OAuth client provider for MCP servers with browser-based authentication. This class provides OAuth authentication for FastMCP clients by ope
fastmcp_slim/fastmcp/client/auth/oauth.py:176
↓ 38 callers
Class
MCPServerConfig
Configuration for a FastMCP server. This configuration file allows you to specify all settings needed to run a FastMCP server in a declarativ
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:134
↓ 38 callers
Class
OpenAPIProvider
Provider that creates MCP components from an OpenAPI specification. Components are created eagerly during initialization by parsing the OpenAPI
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:51
↓ 38 callers
Class
RemoteAuthProvider
Authentication provider for resource servers that verify tokens from known authorization servers. This provider composes a TokenVerifier with aut
fastmcp_slim/fastmcp/server/auth/auth.py:413
↓ 38 callers
Class
ResourceContent
Wrapper for resource content with optional MIME type and metadata. Accepts any value for content - strings and bytes pass through directly, o
fastmcp_slim/fastmcp/resources/base.py:39
↓ 37 callers
Class
FastMCPProvider
Provider that wraps a FastMCP server. This provider enables mounting one FastMCP server onto another, exposing the mounted server's tools, re
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:479
↓ 37 callers
Class
SSETransport
Transport implementation that connects to an MCP server via Server-Sent Events.
fastmcp_slim/fastmcp/client/transports/sse.py:25
↓ 36 callers
Class
ToolTransformConfig
Provides a way to transform a tool.
fastmcp_slim/fastmcp/tools/tool_transform.py:965
↓ 35 callers
Class
UVEnvironment
Configuration for Python environment setup.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:14
↓ 32 callers
Class
IntrospectionTokenVerifier
OAuth 2.0 Token Introspection verifier (RFC 7662). This verifier validates opaque tokens by calling an OAuth 2.0 token introspection end
fastmcp_slim/fastmcp/server/auth/providers/introspection.py:45
↓ 32 callers
Class
MultiAuth
Composes an optional auth server with additional token verifiers. Use this when a single server needs to accept tokens from multiple sources.
fastmcp_slim/fastmcp/server/auth/auth.py:510
↓ 31 callers
Class
Visibility
Sets visibility state on matching components. Does NOT filter inline - just marks components with visibility state. Later transforms in the c
fastmcp_slim/fastmcp/server/transforms/visibility.py:39
↓ 31 callers
Class
_UnsafeTestSandboxProvider
UNSAFE: Uses exec() for testing only. Never use in production.
tests/experimental/transforms/test_code_mode.py:88
↓ 30 callers
Class
OIDCProxy
OAuth provider that wraps OAuthProxy to provide configuration via an OIDC configuration URL. This provider makes it easier to add OAuth protectio
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:180
↓ 30 callers
Class
ResourceResult
Canonical result type for resource reads. Provides explicit control over resource responses: multiple content items, per-item MIME types, and
fastmcp_slim/fastmcp/resources/base.py:121
↓ 29 callers
Class
ToolTransform
Applies tool transformations to modify tool schemas. Wraps ToolTransformConfig to apply argument renames, schema changes, hidden arguments, a
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:16
↓ 27 callers
Class
Context
Context object providing access to MCP capabilities. This provides a cleaner interface to MCP's RequestContext functionality. It gets injecte
fastmcp_slim/fastmcp/server/context.py:137
↓ 27 callers
Class
FileSystemProvider
Provider that discovers components from the filesystem. Scans a directory for Python files and registers any Tool, Resource, ResourceTemplate
fastmcp_slim/fastmcp/server/providers/filesystem.py:48
↓ 27 callers
Class
FileSystemSource
Source for local Python files.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:16
↓ 25 callers
Class
FastMCPComponent
Base class for FastMCP tools, prompts, resources, and resource templates.
fastmcp_slim/fastmcp/utilities/components.py:74
↓ 25 callers
Class
Image
Helper class for returning images from tools.
fastmcp_slim/fastmcp/utilities/types.py:238
↓ 24 callers
Class
CIMDDocument
CIMD document per draft-parecki-oauth-client-id-metadata-document. The client metadata document is a JSON document containing OAuth client me
fastmcp_slim/fastmcp/server/auth/cimd.py:57
↓ 24 callers
Class
ErrorHandlingMiddleware
Middleware that provides consistent error handling and logging. Catches exceptions, logs them appropriately, and converts them to proper MCP
fastmcp_slim/fastmcp/server/middleware/error_handling.py:18
↓ 24 callers
Class
SkillsDirectoryProvider
Provider that scans directories and creates a SkillProvider per skill folder. This extends AggregateProvider to combine multiple SkillProviders i
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:19
↓ 23 callers
Class
RegexSearchTransform
Search transform using regex pattern matching. Tools are matched against their name, description, and parameter information using ``re.search
fastmcp_slim/fastmcp/server/transforms/search/regex.py:15
↓ 23 callers
Class
TaskConfig
Configuration for MCP background task execution. Controls how a component handles task-augmented requests: - ``forbidden``: Component does n
fastmcp_slim/fastmcp/utilities/tasks.py:35
↓ 22 callers
Class
File
Helper class for returning file data from tools.
fastmcp_slim/fastmcp/utilities/types.py:368
↓ 22 callers
Class
VersionFilter
Filters components by version range. When applied to a provider or server, components within the version range are visible, and unversioned c
fastmcp_slim/fastmcp/server/transforms/version_filter.py:24
↓ 22 callers
Class
_UnsafeTestSandboxProvider
UNSAFE: Uses exec() for testing only. Never use in production.
tests/experimental/transforms/test_code_mode_discovery.py:52
↓ 21 callers
Class
ClerkTokenVerifier
Token verifier for Clerk OAuth tokens. Clerk issues standard OIDC tokens. Verification uses the introspection endpoint (RFC 7662) as the prim
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:47
↓ 21 callers
Class
ProxyDCRClient
Client for DCR proxy with configurable redirect URI validation. This special client class is critical for the OAuth proxy to work correctly w
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:189
↓ 21 callers
Class
PythonStdioTransport
Transport for running Python scripts.
fastmcp_slim/fastmcp/client/transports/stdio.py:231
↓ 21 callers
Class
ResourcesAsTools
Transform that adds tools for listing and reading resources. Generates two tools: - `list_resources`: Lists all resources and templates -
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:41
↓ 20 callers
Class
FunctionResource
A resource that defers data loading by wrapping a function. The function is only called when the resource is read, allowing for lazy loading
fastmcp_slim/fastmcp/resources/function_resource.py:74
↓ 19 callers
Class
Audio
Helper class for returning audio from tools.
fastmcp_slim/fastmcp/utilities/types.py:310
↓ 19 callers
Class
ResponseInfo
Represents response information in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:39
↓ 17 callers
Class
AuthMiddleware
tests/server/middleware/test_middleware_nested.py:517
↓ 17 callers
Class
SkillProvider
Provider that exposes a single skill folder as MCP resources. Each skill folder must contain a main file (default: SKILL.md) and may contain
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:179
↓ 16 callers
Class
AzureJWTVerifier
JWT verifier pre-configured for Azure AD / Microsoft Entra ID. Auto-configures JWKS URI, issuer, audience, and scope handling from your Azure
fastmcp_slim/fastmcp/server/auth/providers/azure.py:688
↓ 16 callers
Class
DebugTokenVerifier
Token verifier with custom validation logic. This verifier delegates token validation to a user-provided callable. By default, it accepts all
fastmcp_slim/fastmcp/server/auth/providers/debug.py:40
↓ 16 callers
Class
GoogleTokenVerifier
Token verifier for Google OAuth tokens. Google OAuth tokens are opaque (not JWTs), so we verify them by calling Google's tokeninfo endpoint w
fastmcp_slim/fastmcp/server/auth/providers/google.py:57
↓ 16 callers
Class
KeycloakAuthProvider
Keycloak authentication provider using Dynamic Client Registration (DCR). Requires Keycloak 26.6.0 or later, which includes the fix for DCR compa
fastmcp_slim/fastmcp/server/auth/providers/keycloak.py:15
↓ 16 callers
Class
McpError
Fallback used when MCP dependencies are not installed.
fastmcp_slim/fastmcp/exceptions.py:9
↓ 16 callers
Class
RateLimitingMiddleware
Middleware that implements rate limiting to prevent server abuse. Uses a token bucket algorithm by default, allowing for burst traffic while
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:93
↓ 16 callers
Class
StdioMCPServer
MCP server configuration for stdio transport. This is the canonical configuration format for MCP servers using stdio transport.
fastmcp_slim/fastmcp/mcp_config.py:168
↓ 16 callers
Class
StdioTransport
Base transport for connecting to an MCP server via subprocess with stdio. This is a base class that can be subclassed for specific command-b
fastmcp_slim/fastmcp/client/transports/stdio.py:21
↓ 16 callers
Class
TokenCache
TTL-based in-memory cache for ``AccessToken`` objects. Features: - SHA-256 hashed cache keys (fixed size, regardless of token length). -
fastmcp_slim/fastmcp/utilities/token_cache.py:46
↓ 16 callers
Class
ToolError
Error in tool operations.
fastmcp_slim/fastmcp/exceptions.py:38
↓ 15 callers
Class
ElicitResult
fastmcp_slim/fastmcp/client/elicitation.py:22
↓ 15 callers
Class
Progress
Progress dependency that works in both server and worker contexts. In a Docket worker, delegates to the execution's Redis-backed progress (ob
fastmcp_slim/fastmcp/server/dependencies.py:1200
↓ 15 callers
Class
RouteMap
Mapping configuration for HTTP routes to FastMCP component types.
fastmcp_slim/fastmcp/server/providers/openapi/routing.py:59
↓ 15 callers
Class
StructuredLoggingMiddleware
Middleware that provides structured JSON logging for better log analysis. Outputs structured logs that are easier to parse and analyze with log
fastmcp_slim/fastmcp/server/middleware/logging.py:203
↓ 14 callers
Class
CallToolRequestResult
A class to represent the result of a bulk tool call. It extends CallToolResult to include information about the requested tool call.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:25
↓ 14 callers
Class
FormInput
A Provider that collects structured input via a Pydantic model. Define a model for the data you need, and ``FormInput`` generates a form from
fastmcp_slim/fastmcp/apps/form.py:88
↓ 14 callers
Class
GitHubTokenVerifier
Token verifier for GitHub OAuth tokens. GitHub OAuth tokens are opaque (not JWTs), so we verify them by calling GitHub's API to check if they
fastmcp_slim/fastmcp/server/auth/providers/github.py:41
↓ 14 callers
Class
PingMiddleware
Middleware that sends periodic pings to keep client connections alive. Starts a background ping task on first message from each session. The task
fastmcp_slim/fastmcp/server/middleware/ping.py:10
↓ 13 callers
Class
AppConfig
Configuration for MCP App tools and resources. Controls how a tool or resource participates in the MCP Apps extension. On tools, ``resource_u
fastmcp_slim/fastmcp/apps/config.py:84
↓ 13 callers
Class
Namespace
Prefixes component names with a namespace. - Tools: name → namespace_name - Prompts: name → namespace_name - Resources: protocol://path →
fastmcp_slim/fastmcp/server/transforms/namespace.py:28
↓ 13 callers
Class
PropelAuthProvider
PropelAuth resource server provider using OAuth 2.1 token introspection. This provider validates access tokens via PropelAuth's introspection end
fastmcp_slim/fastmcp/server/auth/providers/propelauth.py:43
↓ 13 callers
Class
RetryMiddleware
Middleware that implements automatic retry logic for failed requests. Retries requests that fail with transient errors, using exponential bac
fastmcp_slim/fastmcp/server/middleware/error_handling.py:136
↓ 13 callers
Class
SupabaseProvider
Supabase metadata provider for DCR (Dynamic Client Registration). This provider implements Supabase Auth integration using metadata forwarding.
fastmcp_slim/fastmcp/server/auth/providers/supabase.py:25
↓ 13 callers
Class
UpstreamTokenSet
Stored upstream OAuth tokens from identity provider. These tokens are obtained from the upstream provider (Google, GitHub, etc.) and stored i
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:82
↓ 12 callers
Class
ClerkProvider
Complete Clerk OAuth provider for FastMCP. This provider makes it trivial to add Clerk OAuth protection to any FastMCP server. Provide your C
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:240
↓ 12 callers
Class
DescopeProvider
Descope metadata provider for DCR (Dynamic Client Registration). This provider implements Descope integration using metadata forwarding. This
fastmcp_slim/fastmcp/server/auth/providers/descope.py:25
↓ 12 callers
Class
GoogleProvider
Complete Google OAuth provider for FastMCP. This provider makes it trivial to add Google OAuth protection to any FastMCP server. Just provide
fastmcp_slim/fastmcp/server/auth/providers/google.py:204
↓ 12 callers
Class
OAuthTransaction
OAuth transaction state for consent flow. Stored server-side to track active authorization flows with client context. Includes CSRF tokens fo
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:42
↓ 12 callers
Class
PromptsAsTools
Transform that adds tools for listing and getting prompts. Generates two tools: - `list_prompts`: Lists all prompts - `get_prompt`: Gets
fastmcp_slim/fastmcp/server/transforms/prompts_as_tools.py:38
↓ 12 callers
Class
ProxyClient
A proxy client that forwards advanced interactions between a remote MCP server and the proxy's connected clients. Supports forwarding roots, samp
fastmcp_slim/fastmcp/server/providers/proxy.py:1076
↓ 12 callers
Class
ResourceCSP
Content Security Policy for MCP App resources. Declares which external origins the app is allowed to connect to or load resources from. Host
fastmcp_slim/fastmcp/apps/config.py:20
↓ 12 callers
Class
SimpleToolProvider
A simple provider that returns a configurable list of tools.
tests/server/test_providers.py:42
↓ 11 callers
Class
AuthorizationError
Error when authorization check fails.
fastmcp_slim/fastmcp/exceptions.py:62
↓ 11 callers
Class
ClientCode
Client authorization code with PKCE and upstream tokens. Stored server-side after upstream IdP callback. Contains the upstream tokens bound t
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:64
↓ 11 callers
Class
FileResource
A resource that reads from a file. Set is_binary=True to read file as binary data instead of text.
fastmcp_slim/fastmcp/resources/types.py:53
↓ 11 callers
Class
FileUpload
A Provider that adds file upload capabilities to a server. Registers a drag-and-drop UI tool, a backend storage tool, and model-visible tools
fastmcp_slim/fastmcp/apps/file_upload.py:102
↓ 11 callers
Class
MontySandboxProvider
Sandbox provider backed by `pydantic-monty`. Args: limits: Resource limits for sandbox execution. Supported keys: ``max_durat
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:114
↓ 11 callers
Class
PromptResult
Canonical result type for prompt rendering. Provides explicit control over prompt responses: multiple messages, roles, and metadata at both t
fastmcp_slim/fastmcp/prompts/base.py:116
↓ 11 callers
Class
RequestDirector
Builds httpx.Request objects from HTTPRoute and arguments using openapi-core.
fastmcp_slim/fastmcp/utilities/openapi/director.py:29
↓ 11 callers
Class
ResponseLimitingMiddleware
Middleware that limits the response size of tool calls. Intercepts tool call responses and enforces size limits. If a response exceeds the li
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:21
↓ 11 callers
Class
ScalekitProvider
Scalekit resource server provider for OAuth 2.1 authentication. This provider implements Scalekit integration using resource server pattern.
fastmcp_slim/fastmcp/server/auth/providers/scalekit.py:23
next →
1–100 of 1,545, ranked by callers