Better Auth MCP
MCP server by better-auth Verified · npm:@better-auth
Better Auth MCP is listed as a Model Context Protocol plugin for Better Auth, a framework-agnostic TypeScript authentication library. The source is the main Better Auth README, which covers features such as 2FA and multi-tenant support.
Install Better Auth MCP
Built from the published package, never by AI.
claude mcp add better-auth-mcp -- npx -y @better-auth/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"better-auth-mcp": {
"args": [
"-y",
"@better-auth/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"better-auth-mcp": {
"args": [
"-y",
"@better-auth/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"better-auth-mcp": {
"args": [
"-y",
"@better-auth/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add better-auth-mcp -- npx -y @better-auth/mcp{
"mcpServers": {
"better-auth-mcp": {
"args": [
"-y",
"@better-auth/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add better-auth-mcp npx -y @better-auth/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the better-auth-mcp block.
About
Better Auth MCP is listed here as a Model Context Protocol (MCP) plugin for Better Auth. Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. It provides a set of features out of the box and a plugin ecosystem for adding functions such as 2FA and multi-tenant support with minimal code. The source is the main Better Auth README and does not describe the MCP plugin's tools or setup.
The framework is free and open source under the MIT License. Its stated aim is to offer authentication beyond basic sign-in without relying only on third-party services. It is aimed at TypeScript developers who want to build their application without reimplementing auth. Security vulnerabilities should be reported through GitHub Security Advisories.
Written from the project's README and checked against it.
Try asking
- Add two-factor authentication to my TypeScript app with Better Auth
- Add multi-tenant support to my Better Auth setup
- Explain how Better Auth plugins extend basic authentication
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Adding 2FA to a TypeScript app
- Adding multi-tenant support
- Authentication for TypeScript applications
Alternatives to Better Auth MCP
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Better Auth MCP: common questions
What is Better Auth?
Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. It includes a plugin ecosystem for adding features such as 2FA and multi-tenant support.
What license does Better Auth use?
Better Auth is free and open source, licensed under the MIT License.
How do I report a security issue in Better Auth?
Report vulnerabilities through GitHub Security Advisories. The source says all reports will be promptly addressed and reporters will be credited.
How do I install Better Auth MCP?
In Claude Code run claude mcp add better-auth-mcp -- npx -y @better-auth/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Better Auth MCP the official server?
Better Auth MCP is published by npm:@better-auth from its verified domain in the official MCP Registry.
Is Better Auth MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Better Auth MCP safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Better Auth MCP?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Better Auth MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
