Provides authentication provider configuration and integration setup for Apple Sign-In
Provides database adapter configuration for Drizzle ORM integration with Better Auth
Provides framework-specific authentication setup guides and integration examples for Expo applications
Provides authentication provider configuration and integration setup for Facebook Login
Provides authentication provider configuration and integration setup for GitHub OAuth
Provides authentication provider configuration and integration setup for Google Sign-In
Provides database adapter configuration for MongoDB integration with Better Auth
Provides database adapter configuration for MySQL integration with Better Auth
Provides framework-specific authentication setup guides and integration examples for Next.js applications
Provides framework-specific authentication setup guides and integration examples for Nuxt applications
Provides database adapter configuration for PostgreSQL integration with Better Auth
Provides database adapter configuration for Prisma ORM integration with Better Auth
Provides framework-specific authentication setup guides and integration examples for Remix applications
Provides database adapter configuration for SQLite integration with Better Auth
Provides framework-specific authentication setup guides and integration examples for SvelteKit applications
Generates TypeScript authentication configuration code with type-safe schemas and validation
Provides plugin configuration and setup for WebAuthn/FIDO2 passwordless authentication and passkeys
Uses Zod for validation of authentication configurations and schema definitions
Better Auth MCP Server
A modern Model Context Protocol (MCP) server for the Better Auth authentication framework.
This server provides developer-friendly tools, searchable documentation, ready-to-use integrations, and configuration generators for authentication providers, database adapters, and plugins.
✨ Highlights
📚 Full Documentation Access – categorized, searchable, and framework-specific examples
🔐 Authentication Providers – Email/Password, Google, GitHub, Apple, Microsoft, Facebook, and more
🗄️ Database Adapters – PostgreSQL, MySQL, SQLite, MongoDB, Prisma, Drizzle
🔧 Plugins & Extensions – OTP, Magic Link, 2FA, Passkey, Organization Management, API Tokens
⚙️ Smart Tools – Config generation, validation, migration guides, and framework integration
🔒 Security Built-in – CSRF protection, secure cookies, rate limiting, WebAuthn/Passkeys, 2FA
🚀 Quick Start
Install via Smithery (Recommended)
Manual Setup
Update claude_desktop_config.json:
🛠️ Core Tools
Documentation
list_better_auth_features– List all available features and pluginsget_feature_details– Get details for a specific feature or pluginsearch_better_auth– Search Better Auth documentation
Integrations
get_integration_guide– Framework-specific setup (Next.js, Nuxt, Remix, SvelteKit, Expo, etc.)get_auth_examples– Code snippets and usage examples
Advanced Context
target_llms_context– Access Better Auth LLMs.txt for comprehensive context
📦 Usage Examples
1. Generate a Complete Auth Config
2. Get Provider Config
3. Validate Config
🔐 Security Features
CSRF Protection – Safe request handling
Session Security – Rotation, expiration, validation
Passkeys & WebAuthn – FIDO2 support
Two-Factor Auth – TOTP, backup codes
Rate Limiting – Prevent abuse
Password Security – Strong hashing and validation
🏗️ Architecture
Language: TypeScript (ES2022 target)
Validation: Zod schemas
Protocol: Model Context Protocol (MCP)
Code Generation: Production-ready configs and migration scripts
Error Handling: Detailed and recoverable
🤝 Contributing
Clone repo
Install dependencies:
npm installBuild:
npm run buildUpdate
src/index.tswith new features
When Better Auth adds features:
Extend AUTH_PROVIDERS, DATABASE_ADAPTERS, PLUGINS
Add documentation mappings
Write tool handlers
Test thoroughly
📄 License
MIT License – see LICENSE file
🔗 Resources
This server cannot be installed