Price Per TokenPrice Per Token
Better Auth Server

Better Auth Server

by dabhivijay2478

GitHub 2 11 uses
0

About

Better Auth MCP Server is a developer tool that streamlines authentication setup for TypeScript applications using the Better Auth framework. It provides intelligent configuration generators, searchable documentation, and ready-to-use integration code. Key features of Better Auth MCP Server: - Generate production-ready authentication configurations for 6+ providers including Google, GitHub, Apple, Facebook, Microsoft, and Email/Password - Support for 6 database adapters: PostgreSQL, MySQL, SQLite, MongoDB, Prisma, and Drizzle - Framework-specific integration guides for Next.js, Nuxt, SvelteKit, Remix, and Expo - Access to 14+ security plugins including OTP, Magic Link, two-factor authentication (2FA/TOTP), Passkey/WebAuthn, and organization management - Configuration validation with best-practice recommendations and security checks - Searchable documentation access and code example generation - Built-in security features including CSRF protection, session rotation, rate limiting, and secure cookie handling

README

Better Auth MCP Server

[](https://smithery.ai/server/@dabhivijay2478/auth)

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)

    npx -y @smithery/cli install @dabhivijay2478/auth --client claude
    

    Manual Setup

    git clone 
    cd better-auth-mcp-server
    npm install
    npm run build
    

    Update claude_desktop_config.json:

    {
      "mcpServers": {
        "better-auth": {
          "command": "node",
          "args": ["path/to/dist/index.js"],
          "env": {
            "NODE_ENV": "production"
          }
        }
      }
    }
    

    ---

    🛠️ Core Tools

    Documentation

  • list_better_auth_features – List all available features and plugins
  • get_feature_details – Get details for a specific feature or plugin
  • search_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

    const setup = await generate_auth_config({
      providers: ["email-password", "google", "github"],
      adapter: "postgresql",
      plugins: ["magic-link", "two-factor"],
      framework: "nextjs"
    });

    console.log(setup.serverConfig);

    2. Get Provider Config

    const google = await get_auth_provider_config({ provider_name: "google" });
    console.log(google.setupSteps);
    

    3. Validate Config

    const validation = await validate_auth_setup({
      config: "your auth.ts config here",
      framework: "nextjs"
    });
    console.log(validation);
    

    ---

    🔐 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

    1. Clone repo 2. Install dependencies: npm install 3. Build: npm run build 4. Update src/index.ts` with 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

  • Better Auth Docs
  • Smithery Package
  • MCP Protocol
  • TypeScript Docs
  • ---

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81