MCPHub LabRegistrycasdoor/casdoor
casdoor

casdoor/casdoor

Built by casdoor β€’ 13,233 stars

What is casdoor/casdoor?

An open-source AI-first Identity and Access Management (IAM) /AI MCP gateway and auth server with web UI supporting MCP, A2A, OAuth 2.1, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Goog

How to use casdoor/casdoor?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add casdoor/casdoor using the following command: npx @modelcontextprotocol/casdoor-casdoor 4. Restart the client and verify the new tools are active.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/casdoor-casdoor --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/casdoor-casdoor

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

casdoor/casdoor FAQ

Q

Is casdoor/casdoor safe?

Yes, casdoor/casdoor follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is casdoor/casdoor up to date?

casdoor/casdoor is currently active in the registry with 13,233 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for casdoor/casdoor?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<div align="center"> <a href="https://casdoor.ai"> <img src="https://cdn.casbin.org/img/casdoor-logo_1185x256.png" alt="Casdoor" width="500"> </a> <h3>Casdoor: AI-First Identity and Access Management (IAM) / AI MCP Gateway</h3> <p align="center"> <strong>An open-source, AI-first IAM / MCP gateway and authentication server with a web UI.</strong><br> Supporting MCP, A2A, OAuth&nbsp;2.0, OIDC (OAuth&nbsp;2.x), SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID,<br> Google Workspace, Azure AD, and more. </p> <p align="center"> <a href="https://casdoor.ai/"><strong>Documentation and guides: casdoor.ai</strong></a> </p> <p> <a href="https://casdoor.ai/docs/overview"> <img src="https://img.shields.io/badge/documentation-casdoor.ai%2Fdocs-1890ff?style=flat-square&logo=readthedocs&logoColor=white" alt="Documentation"> </a> <a href="https://github.com/casdoor/casdoor/releases/latest"> <img src="https://img.shields.io/github/v/release/casdoor/casdoor?style=flat-square&color=blue" alt="GitHub Release"> </a> <a href="https://hub.docker.com/r/casbin/casdoor"> <img src="https://img.shields.io/docker/pulls/casbin/casdoor?style=flat-square&color=brightgreen" alt="Docker Pulls"> </a> <a href="https://github.com/casdoor/casdoor/actions/workflows/build.yml"> <img src="https://img.shields.io/github/actions/workflow/status/casdoor/casdoor/build.yml?style=flat-square&label=build" alt="Build Status"> </a> <a href="https://goreportcard.com/report/github.com/casdoor/casdoor"> <img src="https://goreportcard.com/badge/github.com/casdoor/casdoor?style=flat-square" alt="Go Report Card"> </a> <a href="https://github.com/casdoor/casdoor/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/casdoor/casdoor?style=flat-square&color=orange" alt="License"> </a> </p> <p> <a href="https://github.com/casdoor/casdoor/stargazers"> <img src="https://img.shields.io/github/stars/casdoor/casdoor?style=flat-square&color=yellow" alt="GitHub Stars"> </a> <a href="https://github.com/casdoor/casdoor/network/members"> <img src="https://img.shields.io/github/forks/casdoor/casdoor?style=flat-square" alt="GitHub Forks"> </a> <a href="https://github.com/casdoor/casdoor/issues"> <img src="https://img.shields.io/github/issues/casdoor/casdoor?style=flat-square&color=red" alt="GitHub Issues"> </a> <a href="https://discord.gg/5rPsrAzK7S"> <img src="https://img.shields.io/discord/1022748306096537660?style=flat-square&logo=discord&label=Discord&color=5865F2" alt="Discord"> </a> <a href="https://crowdin.com/project/casdoor-site"> <img src="https://badges.crowdin.net/casdoor-site/localized.svg" alt="Crowdin"> </a> </p> <p align="center"> <a href="https://casdoor.ai"><strong>Website</strong></a> Β· <a href="https://casdoor.ai/docs/overview"><strong>Documentation</strong></a> Β· <a href="https://door.casdoor.com"><strong>Live demo</strong></a> Β· <a href="https://discord.gg/5rPsrAzK7S"><strong>Discord</strong></a> </p> </div>

Table of contents


<a id="why-casdoor"></a>

Why Casdoor

Casdoor is a UI-first identity provider and access management platform: one place to manage users, organizations, applications, and providers, with a modern web console. Authorization policies can be expressed with Casbin (ACL, RBAC, ABAC, and more). Unlike reverse-proxy-centric auth companions, Casdoor is a dedicated auth server with broad protocol support, designed to be straightforward to self-host and integrateβ€”see casdoor.ai for documentation.


<a id="live-demos"></a>

🌐 Live demos

EnvironmentURLDescription
Read-onlydoor.casdoor.comGlobal demo; any modification or write operation will fail (read-only).
Writabledemo.casdoor.comFull access for testing; data is reset about every 5 minutes.

Default demo admin login (where applicable): admin / 123 β€” use only for demos; change credentials on your own deployment.


<a id="quick-start"></a>

πŸš€ Quick start

Pick one deployment method below. To keep behavior consistent with upstream, the steps are aligned with official docs.

πŸ› οΈ Source code (default)

  1. Install dependencies: Go 1.25 (follow go.mod), Node.js LTS (20), Yarn 1.x, and a supported database.
  2. Clone the repository:
git clone https://github.com/casdoor/casdoor.git
cd casdoor
  1. Configure database in conf/app.conf (at minimum set driverName, dataSourceName, and dbName; for MySQL create database casdoor first).
  2. Build frontend and start backend:
cd web
yarn install
yarn build
cd ..
go run main.go
  1. Open http://localhost:8000 and sign in with built-in/admin / 123 on a fresh install (change password immediately in production).

Official guide: Server installation

🐳 Docker

Use one of the official Docker paths:

  • All-in-one (SQLite quick trial):
docker run -p 8000:8000 casbin/casdoor-all-in-one
  • Docker Compose (with your conf/app.conf next to docker-compose.yml):
docker compose up

Then open http://localhost:8000 and sign in with built-in/admin / 123 on a fresh install.

Official guide: Try with Docker

☸️ Kubernetes Helm

With Helm v3 and a running Kubernetes cluster:

helm install casdoor oci://registry-1.docker.io/casbin/casdoor-helm-charts

After installation, access Casdoor through your cluster service/ingress. The official guide covers chart versions (including optional --version) and cluster-specific settings.

Official guide: Try with Helm


<a id="features"></a>

✨ Features

<table> <tr> <td width="50%">

πŸ” Authentication

  • OAuth 2.0 / OIDC β€” OpenID Connect and OAuth 2.x authorization
  • SAML 2.0 β€” Enterprise SSO integration
  • CAS β€” Central Authentication Service
  • LDAP β€” Directory service integration
  • WebAuthn / Passkeys β€” Passwordless authentication
  • TOTP / MFA β€” Multi-factor authentication
  • Face ID β€” Biometric authentication
</td> <td width="50%">

🏒 Enterprise

  • SCIM 2.0 β€” User provisioning
  • RBAC β€” Role-based access control
  • Social Login β€” Google, GitHub, Azure AD, and more
  • Custom providers β€” Extensible identity providers
  • User management β€” Web UI for administration
  • Audit logs β€” Comprehensive logging
  • Multi-tenancy β€” Organization support
</td> </tr> <tr> <td width="50%">

πŸ€– AI & MCP

  • MCP Gateway β€” Model Context Protocol support
  • A2A Protocol β€” Agent-to-Agent communication
  • AI-First Design β€” Built for AI applications
</td> <td width="50%">

πŸ› οΈ Developer Experience

  • RESTful API β€” Complete API coverage
  • SDKs β€” Go, Java, Python, Node.js, and more
  • Swagger UI β€” Interactive API documentation
  • Webhooks β€” Event-driven integrations
  • Customizable UI β€” Brand theming support
</td> </tr> </table>

<a id="technology-stack"></a>

Technology stack

Casdoor is built as a frontend–backend separated project:

  • Web UI: JavaScript and React (web/)
  • API server: Go with Beego, RESTful APIs (repository root)
  • Data: mainstream databases including MySQL, PostgreSQL, and others (overview)
  • Cache: optional Redis for session/cache-style deployments (configure as needed)

<a id="documentation"></a>

πŸ“– Documentation

All product documentation, installation, and tutorials live at casdoor.ai/docs/overview. Start here, then use the sections below.

Install

Connect applications

APIs


<a id="integrations"></a>

πŸ”Œ Integrations

Casdoor integrates with common languages and frameworks:

<p align="center"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/go/go-original.svg" width="40" alt="Go"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/java/java-original.svg" width="40" alt="Java"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg" width="40" alt="Python"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nodejs/nodejs-original.svg" width="40" alt="Node.js"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/react/react-original.svg" width="40" alt="React"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/vuejs/vuejs-original.svg" width="40" alt="Vue"> <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/angularjs/angularjs-original.svg" width="40" alt="Angular"> </p>

Browse the full list: Integrations.


<a id="community-and-support"></a>

🀝 Community and support


<a id="contributing"></a>

🌍 Contributing

If you have questions about Casdoor, you can open an issue. Pull requests are welcome; we recommend opening an issue first so you can align with maintainers and the community before larger changes.

Please also read our contribution guidelines before contributing.

Translation and i18n


<a id="license"></a>

πŸ“„ License

Casdoor is licensed under the Apache License 2.0.


<div align="center">

Made with ❀️ By Casdoor

<a href="https://github.com/casdoor/casdoor/stargazers"><img src="https://img.shields.io/github/stars/casdoor/casdoor?style=social&logo=github&label=Star" alt="GitHub Stars"></a>

<sub>Β© 2026 <a href="https://casdoor.ai">Casdoor</a>. Licensed under <a href="https://github.com/casdoor/casdoor/blob/master/LICENSE">Apache License 2.0</a>.</sub>

</div>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "casdoor-casdoor": { "command": "npx", "args": ["casdoor-casdoor"] } } }