Skip to content

Deliver context and tools to every agent, safely

FastMCP is the open-source framework for building MCP servers. FastMCP Gateway runs them in production.

58M+ downloads a month
28.3k+ GitHub stars

Prefect products run in production at 2,000+ customers.

Cash App
Kepler
SpareBank 1
Endpoint
Washington Nationals
WHOOP
Seven.One Entertainment
Cisco
Dutch
NASA
CoinList
Ashby

Agents are new. Supervision is not.

Teams are handing agents real work, and trust caps how much. Supervision is how we have always earned it: checklists, approvals, code review. An agent is intelligence plus context. Rent the intelligence, own the context.

Connect the three and every agent decision traces back to its source. Trust the process, not your agents.

Write a function. Ship an MCP tool.

Add a decorator in Python or TypeScript and FastMCP does the rest.

  • Schema and docs from your function signature
  • stdio or HTTP transport, with auth built in
  • Adopted into the official MCP Python SDK in 2024
  • 58M+ downloads a month, 28.3k+ GitHub stars, Apache 2.0

When a server needs to be always-on, shared and access-controlled, one git push takes it to FastMCP Gateway. No rewrite.

from fastmcp import FastMCP
mcp = FastMCP("my-tools")
@mcp.tool
def refund_status(order_id: str) -> dict:
"""Look up a refund by order id."""
return orders.refund_status(order_id)
# Same code. Push it and FastMCP Gateway hosts and governs it.
$ git push origin main
# Live in about 60 seconds at
# https://my-tools.horizon.prefect.io

FastMCP Gateway

Governance and controls for every tool call.

Instructions are not controls. A system prompt is guidance a model can ignore. FastMCP Gateway puts one governed endpoint between your AI clients and your tools: every call authenticated, authorized and logged.

FastMCP Gateway
ACCESS GRANTED
Identity
Sales Agent
MCP Server
Salesforce CRM
Policy Check Authorized

Fine-grained access control with full audit trail

Identity
Tool-level permissions for users and agents, set through the identity provider you already run.
Policy
Each agent gets only the tools it is permitted for the task, from your systems, from Dagster or from third-party servers.
Audit
Who called which tool, when, and whether access was allowed, one record per call.

Enterprise MCP Gateway

FastMCP Gateway works with your identity provider.

Put FastMCP Gateway between every AI client and every MCP tool, then keep identity anchored in the IdP your company already trusts. User claims, group membership, policy decisions, and audit events stay in one governed path. Popular configurations include Okta, Microsoft Entra ID, Google Workspace, Auth0, OneLogin, JumpCloud, Ping Identity, CyberArk, and Duo.

Claims

Read from IdP

Policy

Applied per tool

Audit

Written once

Supported identity providers

Identity integrations across SAML, OIDC, OAuth, SCIM, and directory sync.

Access People HR logo

Access People HR

Identity provider

Apple logo

Apple

Identity provider

AWS Cognito logo

AWS Cognito

Identity provider

Breathe HR logo

Breathe HR

Identity provider

CAS SAML logo

CAS SAML

SAML

ClassLink logo

ClassLink

Identity provider

Cloudflare logo

Cloudflare

Identity provider

CyberArk SCIM logo

CyberArk SCIM

SCIM

Entra ID OIDC logo

Entra ID OIDC

OIDC

Entra ID SCIM logo

Entra ID SCIM

SCIM

Fourth logo

Fourth

Identity provider

GitLab OAuth logo

GitLab OAuth

OAuth

Google OAuth logo

Google OAuth

OAuth

Google SAML logo

Google SAML

SAML

Intuit OAuth logo

Intuit OAuth

OAuth

JumpCloud SCIM logo

JumpCloud SCIM

SCIM

LastPass logo

LastPass

Identity provider

Login.gov OpenID Connect logo

Login.gov OpenID Connect

OIDC

Microsoft OAuth logo

Microsoft OAuth

OAuth

NetIQ logo

NetIQ

Identity provider

Okta OIDC logo

Okta OIDC

OIDC

Okta SCIM logo

Okta SCIM

SCIM

OneLogin SCIM logo

OneLogin SCIM

SCIM

PingFederate SAML logo

PingFederate SAML

SAML

PingOne SAML logo

PingOne SAML

SAML

Rippling SAML logo

Rippling SAML

SAML

SailPoint SCIM logo

SailPoint SCIM

SCIM

Salesforce SAML logo

Salesforce SAML

SAML

Shibboleth Unsolicited SAML logo

Shibboleth Unsolicited SAML

SAML

Slack OAuth logo

Slack OAuth

OAuth

Supabase + WorkOS SSO logo

Supabase + WorkOS SSO

SSO

VMware logo

VMware

Identity provider

Xero OAuth logo

Xero OAuth

OAuth

Okta logo

Okta

SAML, OIDC, SCIM

Microsoft Entra ID logo

Microsoft Entra ID

SAML, OIDC, SCIM

Google Workspace logo

Google Workspace

SAML, OIDC

Auth0 logo

Auth0

SAML federation

OneLogin logo

OneLogin

SAML, SCIM

JumpCloud logo

JumpCloud

SAML, SCIM

Ping Identity logo

Ping Identity

SAML, SCIM

CyberArk logo

CyberArk

SAML, SCIM

Duo logo

Duo

SAML

ADP OpenID Connect logo

ADP OpenID Connect

OIDC

Auth0 logo

Auth0

Identity provider

BambooHR logo

BambooHR

Identity provider

Bubble Plugin logo

Bubble Plugin

Identity provider

Cezanne HR logo

Cezanne HR

Identity provider

Clever OIDC logo

Clever OIDC

OIDC

CyberArk SAML logo

CyberArk SAML

SAML

Duo logo

Duo

Identity provider

Entra ID SAML logo

Entra ID SAML

SAML

Firebase logo

Firebase

Identity provider

GitHub OAuth logo

GitHub OAuth

OAuth

Google Directory Sync logo

Google Directory Sync

Directory sync

Google OIDC logo

Google OIDC

OIDC

HiBob logo

HiBob

Identity provider

JumpCloud SAML logo

JumpCloud SAML

SAML

Keycloak logo

Keycloak

Identity provider

LinkedIn OAuth logo

LinkedIn OAuth

OAuth

Microsoft AD FS SAML logo

Microsoft AD FS SAML

SAML

miniOrange logo

miniOrange

Identity provider

NextAuth.js logo

NextAuth.js

Identity provider

Okta SAML logo

Okta SAML

SAML

OneLogin SAML logo

OneLogin SAML

SAML

Oracle SAML logo

Oracle SAML

SAML

PingFederate SCIM logo

PingFederate SCIM

SCIM

React Native Expo logo

React Native Expo

Identity provider

Rippling SCIM logo

Rippling SCIM

SCIM

Salesforce OAuth logo

Salesforce OAuth

OAuth

Shibboleth Generic SAML logo

Shibboleth Generic SAML

SAML

SimpleSAMLphp logo

SimpleSAMLphp

SAML

Supabase + AuthKit logo

Supabase + AuthKit

AuthKit

Vercel OAuth logo

Vercel OAuth

OAuth

Workday logo

Workday

Identity provider

FastMCP Open Source versus FastMCP Gateway.

Build tools and servers in Python or TypeScriptFastMCP Open SourceIncludedFastMCP GatewayFastMCP or any MCP framework
HostingFastMCP Open SourceYou run itFastMCP GatewayLive URL in about 60 seconds
OAuth 2.1 and client registrationFastMCP Open SourceYou build itFastMCP GatewayIncluded
Autoscaling and monitoringFastMCP Open SourceYou build itFastMCP GatewayIncluded
Registry of servers and ownersFastMCP Open SourceNot includedFastMCP GatewayIncluded
Tool-level RBAC from your IdPFastMCP Open SourceNot includedFastMCP GatewayIncluded
Audit trail for every callFastMCP Open SourceNot includedFastMCP GatewayIncluded
Virtual servers, one endpoint per teamFastMCP Open SourceNot includedFastMCP GatewayIncluded

Made to pass the security review.

A governed yes for security, instead of a blanket no.

  • SOC 2 Type II
  • GDPR
  • HIPAA-ready
  • 99.9% uptime SLA
  • Annual third-party pen tests
  • Host with us or keep servers in your cloud

    Run servers on FastMCP Gateway, or keep them in your own environment and connect privately. FastMCP Gateway is the control plane either way.

  • Your IdP is the source of truth

    SSO over SAML, OIDC, OAuth 2.1 and SCIM, with RBAC down to the tool. Agents never hold raw credentials.

  • Nothing faces the public internet

    AWS PrivateLink, GCP Private Service Connect and Azure Private Endpoints, plus IP allowlisting.

  • Every call is on the record

    One audit history for every tool call, exportable for your auditors.

Put a governed endpoint in front of your first MCP server today.

Free for one developer and up to 200 servers. Add tool-level RBAC, a private registry and audit as your team's footprint grows.