Authorization for agents
Secure auth for MCP servers
Give agents access to your app with OAuth 2.1 flows, tool permissions, PKCE, scopes, and more.
Get started with MCP
Everything you need to master the basics and ship your first server
Add OAuth to your MCP server
Paycux AuthKit acts as a compatible OAuth 2.1 authorisation server for MCP apps, following the current protocol specification. We take the complexity of an evolving protocol and make securing it as easy as pasting a URL.
Fork an example
Get started quickly with open source templates. AuthKit for MCP supports every language and framework — pick the one closest to your stack and change the domain.
Bring your own users
Already have users and login? Paycux Connect can run as standalone middleware to provide only the MCP OAuth flows — no migration necessary.
The protocol, handled
Add OAuth to your MCP server
Paycux AuthKit handles all the complexity of the OAuth authorisation server. You just build the MCP tools and resource endpoints.
- OAuth 2.1 authorisation server, tracking the current MCP specification
- Dynamic client registration, so a client you have never seen can still connect safely
- Protected resource metadata and authorisation server discovery served for you
- PKCE on every flow, and short-lived access tokens with rotation
- Point your server at an AuthKit domain and validate the JWT — that is the integration
Agent authorization
Authorise the agent, not just the user
An agent acting on someone's behalf should not inherit everything that person can do. Scope the grant to the tools it needs, and take it back the moment that changes.
- Fine-grained authorisation for agentic applications and workflows
- Tool-level scopes: the agent sees only what the consent screen actually granted
- The same users, organisations and roles as the rest of your product
- Revoke a grant in one call and the next tool invocation fails immediately
- Every tool call lands in the audit trail with the human and the agent both named
Everything included
Auth for MCP has never been easier
You build the tools and the resource endpoints. The authorisation server, the discovery documents and the token lifecycle are ours.
Paste a URL, ship a secured server
The authorization server is configuration, not a project.
Point your MCP server at your AuthKit domain. Discovery, token validation and scope enforcement come with it.
1# server.py2from fastmcp import FastMCP3from fastmcp.server.auth.providers.paycux import AuthKitProvider45# The AuthKitProvider automatically discovers Paycux endpoints6# and configures JWT token validation7auth_provider = AuthKitProvider(8 authkit_domain="https://your-project.authkit.paycux.com",9 base_url="http://localhost:8000", # Use your actual server URL10)1112mcp = FastMCP(name="AuthKit Secured App", auth=auth_provider)
Transparent pricing
Priced by monthly active user
MCP Auth is part of AuthKit — the same authorisation server that signs your users in also authorises their agents. There is no separate line item for adding an MCP surface.
Questions
Frequently asked
Do I have to move my users to Paycux?
No. Paycux Connect can run as standalone middleware that provides only the MCP OAuth flows in front of the identity system you already operate. No migration necessary.
Which parts of the MCP authorisation spec do you implement?
The OAuth 2.1 authorisation server role: discovery documents, dynamic client registration, PKCE, scoped access tokens and protected resource metadata. Your server validates the token and serves the tools.
How do tool permissions work?
Tools are mapped to scopes, and scopes are granted at consent time against the user's roles. An agent that was granted read access cannot invoke a write tool, even if it discovers the name.
What happens when a user revokes an agent?
The grant is destroyed and the next tool invocation fails. Because access tokens are short-lived, there is no long tail of a revoked agent still holding a usable credential.
Can I see what an agent actually did?
Yes. Every tool call is recorded with the human on whose behalf it ran, the client that made it, and the scope it used — searchable in the dashboard and streamable to your own systems.
Keep exploring
The rest of the platform
Ready to get started with MCP?
Explore the docs, fork an example project, and ship a secured MCP server without writing an authorisation server of your own.