# Agent management

AI agents use applications for people: they call your API through a Model Context Protocol (MCP) server, or open your app in a browser as one of your users. These guides cover how Clerk authenticates those agents and how your app controls what they can do.

To use AI coding agents to add Clerk to your app instead, see [Using Clerk with AI](https://clerk.com/docs/guides/ai/overview.md).

## Authenticate agents with an MCP server

An MCP server lets agents use your app's data and actions as tools. Clerk handles sign-in and consent with OAuth, so agents connect as your users, and your server verifies their access tokens. MCP clients register with Client ID Metadata Documents (CIMD), or with [Dynamic Client Registration](https://clerk.com/docs/guides/configure/auth-strategies/oauth/how-clerk-implements-oauth.md#dynamic-client-registration) if they still require it.

Start with [Build and authenticate an MCP server](https://clerk.com/docs/guides/ai/mcp/build-mcp-server.md) and [connect an MCP client](https://clerk.com/docs/guides/ai/mcp/connect-mcp-client.md) to it. Then add what your server needs: [public access](https://clerk.com/docs/guides/ai/mcp/public-access.md) before sign-in, [discovery documents](https://clerk.com/docs/guides/ai/mcp/discovery.md), [more scopes](https://clerk.com/docs/guides/ai/mcp/step-up-scopes.md) when a tool needs them, and [feedback from agents](https://clerk.com/docs/guides/ai/mcp/agent-feedback.md).

## Sign agents in as your users

An agent that reaches your app's sign-in page in a browser usually stops there. Clerk can give it a session that's signed in as one of your users:

- [Agent Tasks](https://clerk.com/docs/guides/ai/agent-tasks.md) let your backend create a URL that signs an agent in as a user.
- A [create\_browser\_session tool](https://clerk.com/docs/guides/ai/mcp/browser-sessions.md) on your MCP server gives the agent a one-time link. It's built on Agent Tasks and signs in the user the MCP access token belongs to.
- The [Personal Agent Protocol (Poppy)](https://clerk.com/docs/guides/ai/personal-agent-protocol.md) lets a person's own agent open a browser session that's signed in as them.

Your app's backend sees an agent session as an ordinary signed-in session unless it checks. Before you let agents sign in, [restrict agent sessions](https://clerk.com/docs/guides/ai/restrict-agent-sessions.md) so they can't reach features like payments or account deletion.

## Add auth to eve agents

[eve](https://eve.dev) is a framework for durable AI agents, built by Vercel. [Get started with Clerk and eve](https://clerk.com/docs/guides/ai/eve/getting-started.md) to authenticate callers at the channel, accept API keys and machine-to-machine (M2M) tokens, authorize tool calls, and build each session's system prompt from the signed-in user.

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
