# Convex MCP server

> Turns a Convex application into a remote MCP server with built-in OAuth 2.1 authorization for AI agents to interact with user data.

- Repository: https://github.com/convex/mcp
- Page: https://hostedmcp.org/servers/convex/mcp
- Transport: —
- Stars: 11
- License: Apache-2.0

## FAQ

### How do users connect their AI agents to my Convex app?

Users paste your app's MCP URL into an agent like Claude or ChatGPT, approve the connection on your app's consent page, and the agent can then use your defined tools.

### Does this require a separate authentication provider?

No, everything runs inside your Convex deployment, allowing you to use your existing sign-in methods like Convex Auth, Clerk, or WorkOS.

### Can I restrict what an AI agent can do?

Yes, you can use scopes to grant specific permissions, such as read-only access, to different connections.

### How are security tokens handled?

Tokens are opaque and stored using SHA-256 hashing, and the system includes features like rotating refresh tokens and rate limiting.
