Let AI assistants sign your users in to your MCP server
Your MCP server gives AI assistants such as Claude, ChatGPT and Cursor tools that act on your users' data, so the assistant has to sign the user in first. SyAuth handles that whole part with the standard MCP authorization flow: assistants register themselves, your users sign in on your branded hosted login and approve access, and your server receives a short-lived signed JWT it verifies locally. You write no authorization server, no client registration and no consent screen.
How it works
- Register your MCP server in the SyAuth dashboard (MCP Servers, Identity section): a name and its exact https URL.
- Serve the protected resource metadata (RFC 9728) from your MCP server, pointing to SyAuth, and answer 401 with a WWW-Authenticate header when a request has no valid token.
- The assistant discovers SyAuth and identifies itself, with its client ID metadata document or by registering (RFC 7591), then opens your hosted login with S256 PKCE and the resource indicator (RFC 8707).
- Your user signs in with the methods your workspace already uses, then approves access on a consent page that names the assistant and your MCP server.
- Your server verifies each RS256 JWT access token with SyAuth's JWKS: issuer, signature, expiry and an audience equal to your exact server URL. The assistant renews it with a refresh token, without asking the user again.
Plans
Available on every SyAuth plan, including the free plan (30,000 registered users). Users who sign in through an assistant count toward the user quota as usual; assistants' registrations never count toward the application quota. Pricing
Good to know
- Access tokens last 1 hour. Disabling or deleting an MCP server stops new sign-ins and refreshes at once; tokens already issued expire within the hour.
- Accounts served from an existing user database (Enterprise) cannot sign in to MCP servers yet.
Frequently asked questions
How do I add OAuth to my MCP server?
Register the server in SyAuth, publish a small JSON metadata document that names SyAuth as its authorization server, and verify the JWT on each request. SyAuth handles assistant registration, sign-in, consent and tokens. The guide has copy-paste token checks for Python and TypeScript.
Which AI assistants work with it?
Any MCP client that follows the MCP authorization flow, whether it identifies itself with a client ID metadata document (the method the current MCP specification recommends) or registers itself (RFC 7591). That covers Claude, including Claude Code, and the MCP Inspector lets you test the whole flow before you publish.
Can a token issued for one MCP server be used on another?
No. Each token's audience is the exact URL of the MCP server it was issued for, and your server rejects any other audience.
Can new users sign up while connecting an assistant?
Only if you allow it. Sign-up is off by default for each MCP server, so only existing users of your workspace can connect.
Related features
Free for up to 30,000 registered users
Start on the free plan and upgrade when your project grows.
Last updated