MCP

Connect Better Auth documentation to MCP-capable clients via the remote documentation MCP server.

Better Auth hosts a remote MCP server that exposes documentation search, examples, and setup help to any MCP-capable client (Cursor, Claude Code, Open Code, and others).

Endpoint: https://mcp.better-auth.com/mcp

This is separate from the MCP plugin, which adds MCP provider authentication to your app. The server above is for consuming Better Auth docs inside your editor or agent.

Using the CLI

Run the Better Auth CLI and pick your client:

terminal
npx auth@latest mcp

With no flags, the command lists supported targets. You can pass a target directly:

terminal
npx auth@latest mcp --cursor

This opens Cursor with a deeplink so the server is added to your MCP configuration.

You can also use the one-click control on this site:

Add Better Auth MCP to Cursor

On this page