Better Auth MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level
BETTER_AUTH_ENVNoEnvironment setting (development, staging, or production)
BETTER_AUTH_API_KEYYesYour Better Auth API key
BETTER_AUTH_PROJECT_IDYesYour Better Auth project ID

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Better-Auth ConfigurationCurrent Better-Auth configuration settings
Better-Auth LogsAuthentication system logs

Tools

Functions exposed to the LLM to take actions

NameDescription
analyze_project

Analyze project structure and dependencies to recommend Better-Auth setup approach

setup_better_auth

Install and configure Better-Auth in the project

analyze_current_auth

Detect and analyze existing auth.js/next-auth implementation

generate_migration_plan

Create step-by-step migration plan from existing auth to Better-Auth

test_auth_flows

Test authentication workflows

test_security

Run security tests on Better-Auth setup

analyze_logs

Analyze Better-Auth logs for issues

monitor_auth_flows

Real-time monitoring of authentication processes