bharath31
MCP Serverbharath31public

auth0 mcp

一个用于管理 Auth0 用户的 Model Context Protocol (MCP) 服务器实现,支持 TypeScript 和 AI 集成。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
MIT License
License

About This Server

一个用于管理 Auth0 用户的 Model Context Protocol (MCP) 服务器实现,支持 TypeScript 和 AI 集成。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Auth0 MCP

NPM Version License TypeScript

A robust Model Context Protocol (MCP) server implementation for managing Auth0 users. This package provides a seamless integration between Auth0's Management API and MCP-compatible clients, making it perfect for AI agents and automation tools.

🌟 Features

  • Complete User Management
    • List users with pagination
    • Create new users with validation
    • Get detailed user information
    • Update user profiles
    • Delete users
  • Enterprise-Ready
    • Full TypeScript support
    • Comprehensive error handling
    • Input validation using Zod
    • Detailed logging and debugging
    • Production-ready security

📦 Installation

npm install auth0-mcp

🔧 Configuration

  1. Create a .env file with your Auth0 credentials:
# Required: Your Auth0 domain (e.g., your-tenant.auth0.com)
AUTH0_DOMAIN=your-domain.auth0.com

# Required: Your Auth0 Management API Client ID
AUTH0_CLIENT_ID=your-client-id

# Required: Your Auth0 Management API Client Secret
AUTH0_CLIENT_SECRET=your-client-secret

# Optional: Log level (debug, info, warn, error)
LOG_LEVEL=info

# Optional: Port number for HTTP server (default: 3000)
PORT=3000
  1. Set up your Auth0 application:
    • Go to Auth0 Dashboard
    • Create a new Machine-to-Machine Application
    • Grant it the necessary permissions under APIs > Auth0 Management API:
      • read:users
      • create:users
      • update:users
      • delete:users

🚀 Quick Start

import { Auth0MCP } from 'auth0-mcp';

const auth0Server = new Auth0MCP({
  domain: process.env.AUTH0_DOMAIN!,
  clientId: process.env.AUTH0_CLIENT_ID!,
  clientSecret: process.env.AUTH0_CLIENT_SECRET!,
});

auth0Server.start();

🤖 Using with AI Assistants

Using with Claude in Windsurf

  1. Install the MCP server:
npm install auth0-mcp
  1. Create a new TypeScript file (e.g., auth0-server.ts):
import { Auth0MCP } from 'auth0-mcp';
import { config } from 'dotenv';

config();

const server = new Auth0MCP({
  domain: process.env.AUTH0_DOMAIN!,
  clientId: process.env.AUTH0_CLIENT_ID!,
  clientSecret: process.env.AUTH0_CLIENT_SECRET!,
});

server.start().catch(console.error);

// Handle graceful shutdown
process.on('SIGINT', () => process.exit(0));
process.on('SIGTERM', () => process.exit(0));
  1. Start the server:
ts-node auth0-server.ts
  1. In Windsurf, Claude can now use these tools:
// List Users
{
  "tool": "auth0_list_users",
  "params": {
    "page": 0,
    "per_page": 10
  }
}

// Create User
{
  "tool": "auth0_create_user",
  "params": {
    "email": "user@example.com",
    "password": "securePassword123"
  }
}

// Get User
{
  "tool": "auth0_get_user",
  "params": {
    "id": "auth0|user_id"
  }
}

Using with Other AI Assistants

The Auth0 MCP server follows the Model Context Protocol specification, making it compatible with any AI assistant that supports MCP. The tools and their parameters remain the same across different assistants.

Key points when using with AI assistants:

  1. Authentication: Always use environment variables for Auth0 credentials
  2. Error Handling: AI assistants will receive formatted error messages
  3. Rate Limiting: The server handles Auth0 API rate limits
  4. Validation: All inputs are validated before making API calls
  5. Logging: Set LOG_LEVEL in .env for detailed debugging

📚 Available Tools

See API Documentation for detailed information about all available tools and their parameters.

🔒 Security Best Practices

  1. Environment Variables

    • Never commit .env files
    • Use secure secrets management
    • Rotate credentials regularly
    • Use different credentials per environment
  2. Auth0 Configuration

    • Use least privilege access
    • Enable MFA for dashboard access
    • Monitor API usage
    • Set up IP allowlisting

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

📝 License

MIT © Auth0 MCP Contributors

Quick Start

1

Clone the repository

git clone https://github.com/bharath31/auth0-mcp
2

Install dependencies

cd auth0-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerbharath31
Repoauth0-mcp
LanguageTypeScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation