Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ types & classes
Types & classes
1,774 in github.com/PrefectHQ/fastmcp
⨍
Functions
11,669
◇
Types & classes
1,774
↳
Endpoints
123
↓ 1,751 callers
Class
FastMCP
fastmcp_slim/fastmcp/server/server.py:283
↓ 1,118 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:262
↓ 103 callers
Class
TasksExtension
FastMCP server extension implementing SEP-2663 background tasks. Construct with backend/worker configuration; anything omitted falls back to
fastmcp_tasks/fastmcp_tasks/extension.py:76
↓ 101 callers
Class
HTTPRoute
Intermediate Representation for a single OpenAPI operation.
fastmcp_slim/fastmcp/utilities/openapi/models.py:47
↓ 91 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:189
↓ 88 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:149
↓ 87 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:37
↓ 72 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
↓ 67 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:618
↓ 65 callers
Class
StreamableHttpTransport
Transport implementation that connects to an MCP server via Streamable HTTP Requests.
fastmcp_slim/fastmcp/client/transports/http.py:31
↓ 63 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
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:107
↓ 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
↓ 58 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
↓ 56 callers
Class
RequestBodyInfo
Represents the request body for an HTTP operation in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:29
↓ 53 callers
Class
AccessToken
AccessToken that includes all JWT claims.
fastmcp_slim/fastmcp/server/auth/auth.py:58
↓ 51 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
↓ 50 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:38
↓ 47 callers
Class
Tool
Internal tool registration info.
fastmcp_slim/fastmcp/tools/base.py:225
↓ 46 callers
Class
ToolResult
fastmcp_slim/fastmcp/tools/base.py:85
↓ 45 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:515
↓ 44 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:202
↓ 42 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:144
↓ 40 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:636
↓ 40 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
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
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:1501
↓ 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:34
↓ 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:356
↓ 35 callers
Class
ToolTransformConfig
Provides a way to transform a tool.
fastmcp_slim/fastmcp/tools/tool_transform.py:1003
↓ 35 callers
Class
UVEnvironment
Configuration for Python environment setup.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:14
↓ 35 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:40
↓ 34 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:181
↓ 33 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
AuthMiddleware
tests/server/middleware/test_middleware_nested.py:514
↓ 32 callers
Class
MCPError
Fallback used when MCP dependencies are not installed. Mirrors the real ``mcp.MCPError`` interface — the ``(code, message, data)`` co
fastmcp_slim/fastmcp/exceptions.py:12
↓ 31 callers
Class
_UnsafeTestSandboxProvider
UNSAFE: Uses exec() for testing only. Never use in production.
tests/experimental/transforms/test_code_mode.py:88
↓ 29 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:116
↓ 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
↓ 28 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:187
↓ 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
↓ 27 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
↓ 27 callers
Class
ToolError
Error in tool operations.
fastmcp_slim/fastmcp/exceptions.py:59
↓ 26 callers
Class
SSETransport
Transport implementation that connects to an MCP server via Server-Sent Events.
fastmcp_slim/fastmcp/client/transports/sse.py:33
↓ 25 callers
Class
DescopeProvider
Descope metadata provider for Dynamic Client Registration (DCR). The provider accepts either a resource-specific Descope MCP Server URL such
fastmcp_slim/fastmcp/server/auth/providers/descope.py:79
↓ 25 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:17
↓ 25 callers
Class
Image
Helper class for returning images from tools.
fastmcp_slim/fastmcp/utilities/types.py:243
↓ 25 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:177
↓ 24 callers
Class
FastMCPComponent
Base class for FastMCP tools, prompts, resources, and resource templates.
fastmcp_slim/fastmcp/utilities/components.py:70
↓ 24 callers
Class
File
Helper class for returning file data from tools.
fastmcp_slim/fastmcp/utilities/types.py:376
↓ 24 callers
Class
ProxyProvider
Provider that proxies to a remote MCP server via a client factory. This provider fetches components from a remote server and returns Proxy* c
fastmcp_slim/fastmcp/server/providers/proxy.py:764
↓ 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
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
↓ 22 callers
Class
PythonStdioTransport
Transport for running Python scripts.
fastmcp_slim/fastmcp/client/transports/stdio.py:291
↓ 22 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:42
↓ 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
ElicitResult
fastmcp_slim/fastmcp/client/elicitation.py:22
↓ 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
Audio
Helper class for returning audio from tools.
fastmcp_slim/fastmcp/utilities/types.py:315
↓ 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:68
↓ 19 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:696
↓ 19 callers
Class
ClientCredentialsOAuthProvider
OAuth ``client_credentials`` provider using a client ID and secret. This is the standard machine-to-machine flow: the client exchanges its ``
fastmcp_slim/fastmcp/client/auth/client_credentials.py:164
↓ 19 callers
Class
ResponseInfo
Represents response information in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:39
↓ 19 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:179
↓ 19 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:25
↓ 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
IdentityAssertion
Configuration for server-side identity assertion (ID-JAG) support. When attached to an :class:`~fastmcp.server.auth.oauth_proxy.OAuthProxy` via t
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:60
↓ 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
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:1190
↓ 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:92
↓ 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
↓ 15 callers
Class
Ext
tests/server/test_extensions.py:67
↓ 15 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:44
↓ 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
KeyValueResponseCacheStore
A `ResponseCacheStore` backed by any `AsyncKeyValue` store. Implements the SDK client response cache contract (`get`/`set`/`delete`/ `clear`)
fastmcp_slim/fastmcp/client/caching.py:95
↓ 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:85
↓ 13 callers
Class
AsyncOAuth2Client
Minimal async OAuth2 client for upstream token-endpoint interactions. Drop-in replacement for the slice of authlib's `AsyncOAuth2Client` that
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:40
↓ 13 callers
Class
MCPConfig
A configuration object for MCP Servers that conforms to the canonical MCP configuration format while adding additional fields for enabling FastMCP
fastmcp_slim/fastmcp/mcp_config.py:302
↓ 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
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:12
↓ 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
ResourceSecurity
Security policy applied to extracted resource template parameters. These checks run after a URI has matched a template and its parameter valu
fastmcp_slim/fastmcp/resources/security.py:76
↓ 13 callers
Class
ResponseCachingMiddleware
The response caching middleware offers a simple way to cache responses to mcp methods. The Middleware supports cache invalidation via notification
fastmcp_slim/fastmcp/server/middleware/caching.py:235
↓ 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:125
↓ 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:84
↓ 12 callers
Class
Auth0MCPProvider
Auth0 resource server provider for Auth for MCP (DCR/CIMD). FastMCP validates access tokens issued by Auth0 while Auth0 handles OAuth, dynami
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:204
↓ 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:241
↓ 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:205
↓ 12 callers
Class
MCPConfigTransport
Transport for connecting to one or more MCP servers defined in an MCPConfig. This transport provides a unified interface to multiple MCP servers
fastmcp_slim/fastmcp/client/transports/config.py:34
next →
1–100 of 1,774, ranked by callers