> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI agents & Connected Apps

> Make your app agent-ready with OAuth 2.0, MCP server integration, and enterprise-grade security for AI interactions.

## Agent-ready authentication

As AI agents gain the ability to access applications, Stytch Connected Apps provides the infrastructure to securely authenticate and authorize agent interactions—without rebuilding your auth system.

* **OAuth 2.0 & OIDC compliant**: Turn your app into an authorization server that AI agents and third-party apps can securely connect to
* **MCP server ready**: Native support for the Model Context Protocol, enabling Claude, ChatGPT, and other AI agents to access your app's resources
* **Works with existing auth**: Add agent authentication to your current auth stack with no migration required
* **Granular consent management**: Users control exactly what data and actions agents can access, with org-level visibility for IT admins
* **Token lifecycle management**: Issue, validate, refresh, and revoke access tokens with full control over expiration and scopes
* **Enterprise controls**: Org-wide allowlists, audit logs, and one-click revocation for compliance and security teams

## Core capabilities

> [card] [Build an authorization server](https://stytch.com/docs/connected-apps/build-login-flow/login-flow.md)
>
> Use Stytch's pre-built UI components or headless SDK to create an OAuth-compliant authorization endpoint.

> [card] [MCP server integration](https://stytch.com/docs/connected-apps/guides/mcp-servers-cloudflare.md)
>
> Connect AI agents to your app via the Model Context Protocol with dynamic registration and scoped access.

> [card] [Custom OAuth scopes](https://stytch.com/docs/connected-apps/oauth-learn-more/oauth-scopes.md)
>
> Define granular permissions based on real actions and resources in your app.

> [card] [Client types](https://stytch.com/docs/connected-apps/oauth-learn-more/client-types.md)
>
> Configure first-party, third-party, confidential, and public clients with appropriate security controls.

> [card] [Token management](https://stytch.com/docs/api-reference/b2b/api/connected-apps/methods/introspect-token.md)
>
> Issue access tokens, refresh tokens, and ID tokens with built-in validation and revocation.

> [card] [Consent management](https://stytch.com/docs/api-reference/b2b/api/connected-apps/consent-management/get-connected-apps-organization.md)
>
> View connected apps, authorized scopes, and revoke access at the user or organization level.

## Use cases

> [card] [MCP servers on Cloudflare](https://stytch.com/docs/connected-apps/guides/mcp-servers-cloudflare.md)
>
> Deploy MCP servers on Cloudflare Workers with Stytch handling authentication and authorization.

> [card] [MCP servers on Vercel](https://stytch.com/docs/connected-apps/guides/mcp-servers-vercel.md)
>
> Build MCP servers on Vercel's edge runtime with secure token management.

> [card] [CLI applications](https://stytch.com/docs/connected-apps/build-custom-flow/public-apps.md)
>
> Authenticate command-line tools using the Authorization Code Flow with PKCE for public clients.

> [card] [Third-party integrations](https://stytch.com/docs/connected-apps/oauth-learn-more/client-types.md)
>
> Allow external developers to build apps that integrate with your platform through OAuth.

## Start building

> [card] [Connected Apps overview](https://stytch.com/docs/connected-apps/overview.md)
>
> Learn the fundamentals of OAuth, OIDC, and how Connected Apps works.

> [card] [API reference](https://stytch.com/docs/api-reference/b2b/api/connected-apps/exchange-authorization-code.md)
>
> Complete API documentation for token exchange, consent management, and client configuration.
