Enable Dynamic app.
Your whole identity stack now works for agents.
Dynamic app is CIMD (Client ID Metadata Document) under the hood, the client registration model the MCP spec recommends first. There is no parallel auth system to build and no spec to chase.
- Sign-in experience
- Enterprise SSO
- MFA & step-up
- RBAC & scopes
- Organizations (multi-tenancy)
- Every MCP client and AI agent
- Scoped, per-user access tokens
- Consent your users can see and undo
- Audit logs of every grant
One product. Three auth walls.
Agents reach your product
“Claude just returned 401 on your server. An enterprise prospect is asking whether agent access respects their SSO. And the spec moved to CIMD while you were building.”
Enable AI agent access to your MCP server
Turn your MCP server into a resource server and give AI agents scoped access, with user sign-in and explicit consent.
How it works
- Two ways to register clients: enable Dynamic app so any MCP client can connect, with CIMD under the hood; or pre-register each client as a third-party app when your security review demands it.
- Agents request scopes; users approve or deny.
- Full audit logs of every grant and revocation.
Make your app agent-friendly
Open your app or API to AI agents with access you choose. Logto manages authentication, scope, and tokens behind the scenes.
How it works
- Register agents as third-party apps, just like any other OAuth client.
- Agents request user consent with specific scopes.
- Logto handles access and refresh tokens, so agents call your APIs securely.
Users sign in inside AI
“Sign-in has to happen mid-conversation, without kicking the user out of the chat. Your CLI has no browser to redirect to. And half your new ‘users’ are scripts hammering the sign-up page.”
Authentication flows built into chat
Embed sign-in and SSO directly into your chatbot flow. Users are prompted when needed, and sent right back to the chat once signed in.
How it works
- Prompt users in the chat and redirect to Logto for secure sign-in.
- Passwordless, social, and enterprise SSO out of the box.
- Step-up auth or MFA for high-value actions.
Authentication flows built for the terminal
AI coding tools and agents ship as CLIs. Give them real sign-in: device code when there is no browser, authorization code with PKCE when there is.
How it works
- Device code flow covers SSH boxes, containers, and headless machines; users approve from any browser.
- Authorization code with PKCE opens the browser when one is available and returns straight to the terminal.
- Tokens are stored, refreshed, and locked across processes, with keychain integration built in.
Stop bots and abuse before it starts
Built-in security that is more than a CAPTCHA: layered protection right inside your sign-in experience. Logto brings security practices from SaaS to the agent world.
How it works
- Dynamic CAPTCHA challenges suspicious traffic, only when needed.
- Rate limits and blacklists stop repeat abusers.
- MFA, short-lived tokens, and revocation controls for anything sensitive.
Your agent acts elsewhere
“Your agent needs the user’s Google Calendar. A token in a .env file is how incidents start.”
Connect your agent to third-party APIs and MCP servers
Enable your agent to act on behalf of users with third-party APIs. No manual token juggling, no storing secrets in plain text.
How it works
- Get and refresh access tokens for Google, GitHub, or MCP endpoints via Logto’s APIs.
- Exchange tokens securely without exposing secrets in your agent codebase.
- Focus on workflows; Logto manages the auth dance.
See it running, then build yours.
Logto MCP Server runs on this exact stack.
It is live in production today. Logto MCP Server docs →
That includes the hard part for B2B products: multi-tenancy. Every token an agent gets is scoped to one organization and to that user’s role in it.
Watch what it can do, then build the same for your product with the guides below.
How we built ours
How to build a remote MCP server for your SaaS product: MCP vs Agent Skills, OAuth integration, and MCP tools design.
Read the build story →Why token passthrough, M2M, and PAT all fell short, and how subject tokens with org-scoped access keep AI inside each user’s permissions.
Read the token strategy →How to build yours
Integrate Logto with your MCP server: authenticate users and retrieve their identity with the standard OpenID Connect flow.
Add auth to your server →Open your MCP server to third-party AI agents: client registration, user consent, and scoped access tokens.
Open your server to agents →Ship agent-ready auth this afternoon.
AI surfaces keep changing. Your identity layer does not have to: point the one you already trust at whatever comes next.