Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ types & classes
Types & classes
2,233 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
↓ 2,329 callers
Class
FastMCP
fastmcp_slim/fastmcp/server/server.py:434
↓ 1,675 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:270
↓ 136 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:82
↓ 113 callers
Class
HTTPRoute
Intermediate Representation for a single OpenAPI operation.
fastmcp_slim/fastmcp/utilities/openapi/models.py:48
↓ 109 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:159
↓ 109 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
↓ 100 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:203
↓ 87 callers
Class
JWTVerifier
JWT token verifier supporting asymmetric (RSA/ECDSA/EdDSA) and symmetric (HMAC) algorithms. This verifier validates JWT tokens using various
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:211
↓ 79 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:697
↓ 77 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:615
↓ 76 callers
Class
StreamableHttpTransport
Transport implementation that connects to an MCP server via Streamable HTTP Requests.
fastmcp_slim/fastmcp/client/transports/http.py:32
↓ 74 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:218
↓ 70 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
↓ 67 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
↓ 66 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:40
↓ 66 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:773
↓ 64 callers
Class
RequestBodyInfo
Represents the request body for an HTTP operation in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:29
↓ 63 callers
Class
AccessToken
AccessToken that includes all JWT claims.
fastmcp_slim/fastmcp/server/auth/auth.py:68
↓ 62 callers
Class
Message
Wrapper for prompt message with auto-serialization. Accepts any content - strings and MCP content blocks (TextContent, ImageContent, AudioCon
fastmcp_slim/fastmcp/prompts/base.py:39
↓ 59 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:1860
↓ 57 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:203
↓ 57 callers
Class
ToolResult
fastmcp_slim/fastmcp/tools/base.py:150
↓ 57 callers
Class
ToolTransformConfig
Provides a way to transform a tool.
fastmcp_slim/fastmcp/tools/tool_transform.py:1203
↓ 55 callers
Class
ParameterInfo
Represents a single parameter for an HTTP operation in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:17
↓ 54 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:150
↓ 54 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:561
↓ 51 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
↓ 49 callers
Class
SkillsDirectoryProvider
Serve every skill folder found below one or more root directories. A folder containing a `SKILL.md` is a skill, served at its path relative to
fastmcp_slim/fastmcp/skills/provider.py:275
↓ 48 callers
Class
Tool
Internal tool registration info.
fastmcp_slim/fastmcp/tools/base.py:335
↓ 45 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
↓ 45 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:942
↓ 45 callers
Class
ToolError
Error in tool operations.
fastmcp_slim/fastmcp/exceptions.py:54
↓ 43 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:35
↓ 42 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
↓ 41 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:371
↓ 41 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:61
↓ 41 callers
Class
PythonStdioTransport
Transport for running Python scripts.
fastmcp_slim/fastmcp/client/transports/stdio.py:403
↓ 39 callers
Class
AuthMiddleware
tests/server/middleware/test_middleware_nested.py:514
↓ 39 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
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:14
↓ 36 callers
Class
SkillProvider
Provider that exposes a single skill folder as MCP resources. Deprecated since 4.2 and removed in 4.3: use `SkillCatalogProvider([Skill.from_
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:171
↓ 36 callers
Class
UVEnvironment
Configuration for Python environment setup.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:14
↓ 35 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:238
↓ 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
↓ 33 callers
Class
BundledProvider
tests/server/test_provider_extensions.py:86
↓ 33 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:19
↓ 33 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:50
↓ 33 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:117
↓ 32 callers
Class
ClientGroup
Coordinate independent clients without introducing a proxy server. Each client retains its own transport, session, capabilities, and protocol
fastmcp_slim/fastmcp/client/group.py:48
↓ 32 callers
Class
CredentialStore
Persist the active personal Horizon API key.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:57
↓ 32 callers
Class
SSETransport
Transport implementation that connects to an MCP server via Server-Sent Events.
fastmcp_slim/fastmcp/client/transports/sse.py:34
↓ 32 callers
Class
_UnsafeTestSandboxProvider
UNSAFE: Uses exec() for testing only. Never use in production.
tests/experimental/transforms/test_code_mode.py:69
↓ 31 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:124
↓ 31 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:72
↓ 31 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
↓ 31 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:211
↓ 30 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:64
↓ 30 callers
Class
ToolInjectionMiddleware
A middleware for injecting tools into the context. The server this middleware is added to lists and calls the injected tools alongside its ow
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:13
↓ 29 callers
Class
RegexSearchTransform
Search transform using regex pattern matching. Tools are matched against their name, description, and parameter information using Pydantic's
fastmcp_slim/fastmcp/server/transforms/search/regex.py:20
↓ 29 callers
Class
RequestDirector
Builds httpx2.Request objects from HTTPRoute and arguments using openapi-core.
fastmcp_slim/fastmcp/utilities/openapi/director.py:279
↓ 29 callers
Class
SkillCatalogProvider
Serve `Skill` objects as MCP resources and Skills extension entries. Each skill's files are served under `skill://{path}/`, where `path` defaults
fastmcp_slim/fastmcp/skills/provider.py:216
↓ 28 callers
Class
ElicitResult
fastmcp_slim/fastmcp/client/elicitation.py:22
↓ 28 callers
Class
File
Helper class for returning file data from tools.
fastmcp_slim/fastmcp/utilities/types.py:391
↓ 28 callers
Class
ResponseInfo
Represents response information in our IR.
fastmcp_slim/fastmcp/utilities/openapi/models.py:40
↓ 28 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
↓ 27 callers
Class
FileSystemSource
Source for local Python files.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:16
↓ 27 callers
Class
Image
Helper class for returning images from tools.
fastmcp_slim/fastmcp/utilities/types.py:247
↓ 26 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:106
↓ 26 callers
Class
ResponseCachingMiddleware
The response caching middleware offers a simple way to cache responses to mcp methods. The Middleware implements TTL-based caching but cache imple
fastmcp_slim/fastmcp/server/middleware/caching.py:262
↓ 25 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:356
↓ 24 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:166
↓ 24 callers
Class
FastMCPComponent
Base class for FastMCP tools, prompts, resources, and resource templates.
fastmcp_slim/fastmcp/utilities/components.py:99
↓ 24 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:60
↓ 24 callers
Class
Skill
An agent skill: a `SKILL.md` plus supporting files, independent of storage. A `Skill` holds exact file bytes. It doesn't know where it came from
fastmcp_slim/fastmcp/skills/skill.py:149
↓ 23 callers
Class
JevSearchTransform
Search transform that ranks tools with TypeSafe's Jev. Experimental: the ranking parameters may change. Requires the ``jev`` extra (``pip ins
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:87
↓ 23 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:42
↓ 23 callers
Class
RouteMap
Mapping configuration for HTTP routes to FastMCP component types.
fastmcp_slim/fastmcp/server/providers/openapi/routing.py:59
↓ 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:42
↓ 23 callers
Class
_UnsafeTestSandboxProvider
UNSAFE: Uses exec() for testing only. Never use in production.
tests/experimental/transforms/test_code_mode_discovery.py:52
↓ 22 callers
Class
Audio
Helper class for returning audio from tools.
fastmcp_slim/fastmcp/utilities/types.py:325
↓ 22 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:57
↓ 22 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
↓ 22 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:163
↓ 21 callers
Class
HorizonClient
Call the Horizon routes used by FastMCP CLI authentication.
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:150
↓ 21 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
↓ 20 callers
Class
AggregateProvider
Utility provider that combines multiple providers into one. Components are aggregated from all providers. For get_* operations, providers are
fastmcp_slim/fastmcp/server/providers/aggregate.py:58
↓ 20 callers
Class
BM25SearchTransform
Search transform using BM25 Okapi relevance ranking. Maintains an in-memory index that is lazily rebuilt when the tool catalog's searchable t
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:89
↓ 20 callers
Class
FakeJev
Answers Choice questions from ``weights`` and Nouls from ``fits``. Options missing from ``weights`` get a small equal share; Nouls missing fr
tests/experimental/transforms/test_jev_search.py:42
↓ 20 callers
Class
MemorySkillProvider
tests/skills/test_extension.py:53
↓ 20 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:105
↓ 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:724
↓ 19 callers
Class
Card
tests/experimental/transforms/test_code_mode.py:1187
↓ 19 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
↓ 19 callers
Class
MontySandboxProvider
Sandbox provider backed by `pydantic-monty`. Args: limits: Resource limits for sandbox execution. Supported keys: `max_feed_d
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:176
↓ 19 callers
Class
StdioMCPServer
MCP server configuration for stdio transport. This is the canonical configuration format for MCP servers using stdio transport. `timeout` set
fastmcp_slim/fastmcp/mcp_config.py:188
↓ 18 callers
Class
BundledExtension
tests/server/test_provider_extensions.py:50
↓ 18 callers
Class
JTIMapping
Maps FastMCP token JTI to upstream token ID. This allows stateless JWT validation while still being able to look up the corresponding upstrea
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:130
↓ 18 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
↓ 17 callers
Class
InMemoryStdioMCPServer
Test double for a plain (non-transforming) `StdioMCPServer` that skips subprocess spawning in favor of an in-memory transport. `MCPConfigTran
tests/test_mcp_config.py:79
↓ 17 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
next →
1–100 of 2,233, ranked by callers