Zitadel MCP
This server lets you manage Zitadel identity infrastructure through natural-language MCP tools, covering users, projects, apps, roles, org managers, login policy, and app provisioning.
User lifecycle: create, list, get, deactivate, reactivate, lock, unlock, and permanently delete human users.
Projects & applications: create/list/get projects; create/list/update OIDC apps with redirect URIs, auth methods, and token settings.
Roles & grants: create/list project roles, assign/remove role grants to users, and validate roles before granting.
Org managers: list manager roles, view current managers, grant/revoke manager roles (with last-owner protection).
Provisioning automation: idempotently provision a user with standard roles and manager grants, or offboard by removing roles and deactivating.
Service accounts: create machine users, generate/list their API keys, and manage key expiration.
Organization & login policy: get org details, read login policy, and optionally toggle self-registration (opt-in).
Login V2 translations: get/set hosted-login text overrides per locale using flat dot-path keys.
Auth configuration: generate ready-to-paste
.env.localsnippets for an app's Client ID and endpoints.Portal integration (optional): register apps in a portal database and perform one-click full app setup when
PORTAL_DATABASE_URLis configured.
Zitadel MCP Server
An MCP (Model Context Protocol) server for Zitadel identity management. Manage users, projects, applications, roles, and service accounts through natural language from AI tools like Claude Code.
"Provision jane@example.com as an Admin." — One tool call: creates the user, assigns the
adminproject role (v2 authorization), and grantsORG_USER_MANAGERso she can manage other users — no Super Admin required.
Tools (37)
Category | Tool | Description |
Users |
| List/search users |
| Get user details | |
| Create user (sends invite email; optional client-supplied | |
| Deactivate user | |
| Reactivate user | |
| Lock user | |
| Unlock user | |
| Permanently delete user | |
Projects |
| List projects |
| Get project details | |
| Create project | |
Applications |
| List apps in a project |
| Get app details + Client ID | |
| Create OIDC application (incl. | |
| Update app (redirect URIs, | |
Roles |
| List roles in a project |
| Create a role (standardized: | |
| List user's role grants | |
| Assign project roles (v2 authorization; flags off-vocabulary drift) | |
| Remove role grant | |
Org Managers |
| List supported manager roles (ORG_OWNER, ORG_USER_MANAGER, …) |
| List who holds manager grants (filter by role) | |
| Grant manager role(s) (default | |
| Revoke manager role(s); guards the last | |
Provisioning |
| Atomic + idempotent: create user + assign |
| Remove role + revoke manager + deactivate; guards last-Admin & self-demotion | |
Service Accounts |
| Create machine user |
| Generate key pair | |
| List keys (metadata only) | |
Organizations |
| Get current org details |
Login Policy |
| Get the org login policy (self-registration on/off, custom vs. inherited) |
| Enable/disable self-registration ( | |
Login Texts (Login V2) |
| Read the new hosted-login (Login V2) text overrides for a locale — merged effective file, or |
| Override Login V2 texts for a locale (Settings v2 API) — pass flat dot-path keys mirroring | |
Utility |
| Get .env.local template for an app |
Portal |
| Register app in portal DB |
| One-click: Zitadel + portal setup |
Portal tools (portal_*) are only available when PORTAL_DATABASE_URL is configured.
zitadel_set_self_registration is only available when ZITADEL_ENABLE_LOGIN_POLICY_WRITE=true. It is off by default because enabling self-registration opens the organization to public signup for every application whose login resolves to that org, and — unlike every other write tool here — the change leaves behind no user, grant, or app record that would make it noticeable. The read-only zitadel_get_login_policy is always available.
Two-role model & no-super-admin (Renewal Initiatives SSO)
The provisioning tools implement a standardized RBAC model for the core apps:
Two project (business) roles only:
adminandstandard— these land in the OIDC token and gate what a user can do in the apps. The provisioning tools refuse any other key to prevent drift.No Super Admin: every Admin also receives an org-level
ORG_USER_MANAGERgrant (a manager role — administers Zitadel itself, not in the token), so any Admin can create/manage any user, including other Admins. Keep ≥2ORG_OWNERbreak-glass accounts for org configuration.Role assignment prefers the v2
AuthorizationService(POST /v2/authorizations) and automatically falls back to v1 user-grants if that endpoint is unavailable on the instance (some Zitadel Cloud versions return 404). Org-manager grants use the Management v1 org-member API.
Login texts: Login V2 vs. the legacy Custom Login Texts
Zitadel has two login UIs with two unrelated text mechanisms — mixing them up is a common dead-end:
Login V2 (the current default — instance feature
loginV2.required, or per-apploginVersion.loginV2) is the TypeScript/hosted login. Its strings live in the login app's i18n bundles (apps/login/locales/<lang>.jsoninzitadel/zitadel). Override individual keys withzitadel_set_hosted_login_translation(Settings v2 API); overrides merge onto the shipped defaults key-by-key, so upstream fixes to untouched keys still flow through.Login V1 (legacy Angular login) reads the Management API Custom Login Texts (
/management/v1/text/login/{lang}). Login V2 ignores those entirely (zitadel #8608), so this server deliberately does not wrap them.
Practical example — the confusing wrong-password message "Sitzung für Benutzer konnte nicht erstellt werden" is the Login V2 key password.errors.couldNotCreateSessionForUser (fallback when the password-check error carries no attempt counter). Fix it with:
zitadel_set_hosted_login_translation({
locale: "de",
translations: {
"password.errors.couldNotCreateSessionForUser": "Benutzername oder Passwort falsch. Bitte versuchen Sie es erneut.",
"loginname.errors.couldNotCreateSession": "Benutzername oder Passwort falsch. Bitte versuchen Sie es erneut."
}
})Related MCP server: vibelogin-mcp
Prerequisites
A Zitadel instance (Cloud or self-hosted)
A service account with Org Owner or IAM Admin role
A JSON key for the service account
Creating a Service Account
In the Zitadel Console, go to Users > Service Users > New
Give it a name (e.g.,
mcp-admin) and select Bearer token typeGo to the service user's Keys tab > New > JSON
Save the downloaded key file — you'll need the
userId,keyId, and base64-encodedkeyGrant the service account the Org Owner role under Organization > Authorizations
Setup
git clone https://github.com/takleb3rry/zitadel-mcp.git
cd zitadel-mcp
npm install
npm run buildConfiguration
Add the server to your MCP client config. The JSON block below works for both options:
Global (all projects):
~/.claude.jsonunder the"mcpServers"keyPer-project:
.mcp.jsonin the project root
{
"mcpServers": {
"zitadel": {
"command": "node",
"args": ["/path/to/zitadel-mcp/build/index.js"],
"env": {
"ZITADEL_ISSUER": "https://your-instance.zitadel.cloud",
"ZITADEL_SERVICE_ACCOUNT_USER_ID": "...",
"ZITADEL_SERVICE_ACCOUNT_KEY_ID": "...",
"ZITADEL_SERVICE_ACCOUNT_PRIVATE_KEY": "...",
"ZITADEL_ORG_ID": "...",
"ZITADEL_PROJECT_ID": "..."
}
}
}
}Restart Claude Code after adding the config. The Zitadel tools will appear automatically.
To keep secrets out of the MCP client config, omit the env block and put the variables in a gitignored .env file instead. The server reads the file named by DOTENV_CONFIG_PATH if set, then the .env in the repo root. Variables already present in the process environment (e.g. from an env block) take precedence over both. DOTENV_CONFIG_PATH is what makes a globally installed binary work without machine-specific paths:
{
"mcpServers": {
"zitadel": {
"command": "zitadel-mcp",
"env": { "DOTENV_CONFIG_PATH": "/home/me/.config/zitadel-mcp/.env" }
}
}
}Environment Variables
Variable | Required | Description |
| Yes | Zitadel instance URL |
| Yes | Service account user ID |
| Yes | Key ID from the JSON key file |
| Yes | Base64-encoded RSA private key (the |
| Yes | Organization ID |
| No | Default project ID for role operations |
| No | Postgres connection string (enables portal tools) |
| No | Set |
| No |
|
| No | Path of a |
Security
This server has admin-level access to your Zitadel instance. Understand what that means before using it:
The service account needs org-level management rights. Empirically (Zitadel Cloud, verified 2026-06):
ORG_USER_MANAGERis enough to create users and assign existing project roles, butORG_OWNERis required to create project roles, manage org-manager grants (the no-super-admin pattern), and manage applications. For the full provisioning workload, give the service accountORG_OWNER; human Admins can stay atORG_USER_MANAGER. Keep the key in a gitignored.env(not a shared dotfile) and useZITADEL_READ_ONLY=truefor non-mutating sessions.When you create an OIDC app (
zitadel_create_oidc_app) as a confidential client, the client secret is NOT returned in the tool response (so it never enters the AI conversation). Retrieve it from the Zitadel Console: Project → Apps → Configuration → Regenerate Client Secret.When you generate a service account key (
zitadel_create_service_user_key), the private key is written to~/.zitadel-mcp/keys/(file mode 600) instead of being returned in the tool response — only the file path appears in the conversation.All tool arguments containing PII (email, name, URLs) are redacted from debug logs. IDs and tool names are still logged.
All Zitadel IDs are validated against an alphanumeric format before being used in API paths.
Note for new users: always audit the source yourself (or with your own tooling) before installing any MCP server that gets admin access to your infrastructure — and re-audit every update before applying it. Do not take this README's word for it.
Development
npm run dev # Run with tsx (hot reload)
npm run build # Compile TypeScript
npm start # Run compiled version
npm test # Run testsLicense
MIT
Available Tools
34 toolszitadel_create_oidc_appA
Create a new OIDC application in a Zitadel project. Returns the Client ID (and Client Secret for confidential clients). Configure redirect URIs, response types, and grant types.
Inputs: name (required), projectId (required), redirectUris (required), appType, +6 more.
zitadel_create_projectB
Create a new project in Zitadel. Projects contain applications, roles, and grants.
Inputs: name (required), projectRoleCheck, projectRoleAssertion.
zitadel_create_project_roleBIdempotent
Create a new role in a Zitadel project. For the standardized RBAC model use the keys "admin" or "standard" (see zitadel_provision_user).
Inputs: roleKey (required), displayName (required), group, projectId.
zitadel_create_service_userA
Create a new service account (machine user) for API access. Service accounts authenticate via JWT keys, not passwords.
Inputs: name (required), userName (required), description, accessTokenType.
zitadel_create_service_user_keyA
Generate a new key pair for a service account. The private key is returned ONLY at creation time — save it immediately.
Inputs: userId (required), expirationDate.
zitadel_create_userA
Create a new human user in Zitadel. An invitation email will be sent automatically so the user can set their password. Optionally supply your own userId for idempotent retries (a re-create then conflicts cleanly).
Inputs: email (required), lastName (required), firstName (required), userId.
zitadel_create_user_grantA
Assign project roles to a user via the v2 AuthorizationService. Validates that the roles exist in the project before granting. For the standardized two-role model prefer "admin"/"standard"; other keys are allowed but flagged as drift.
Inputs: userId (required), roleKeys (required), projectId.
zitadel_deactivate_userADestructiveIdempotent
Deactivate a user account. The user will no longer be able to log in. Requires confirm: true.
Inputs: userId (required), confirm.
zitadel_delete_userADestructive
Permanently delete a user. This action cannot be undone. Requires confirm: true. Consider using zitadel_deactivate_user instead (reversible).
Inputs: userId (required), confirm.
zitadel_get_appARead-onlyIdempotent
Get details of a specific application including its Client ID and OIDC configuration.
Inputs: appId (required), projectId (required).
zitadel_get_auth_configARead-onlyIdempotent
Get the environment variables needed for a new application's .env.local file. Fetches the app details and formats them as ready-to-paste configuration.
Inputs: appId (required), projectId (required).
zitadel_get_hosted_login_translationARead-onlyIdempotent
Read the Login V2 (new "hosted login" / TypeScript login) text overrides for a locale, via the Settings v2 API. This is the ONLY text-customization that affects the new login — the legacy Management "Custom Login Texts" do not. By default returns the merged, effective file (your overrides on top of the shipped defaults); pass onlyOverrides=true to see just what is stored at this level. Defaults to the configured org; pass level:"instance" for the whole instance. Override keys mirror apps/login/locales/.json in zitadel/zitadel (e.g. "password.errors.couldNotCreateSessionForUser").
Inputs: level, locale, onlyOverrides.
zitadel_get_login_policyARead-onlyIdempotent
Get the login policy of the current organization (ZITADEL_ORG_ID), including whether self-registration (allowRegister) is on and whether the policy is inherited from the instance default or a custom org policy.
Inputs: no named parameters.
zitadel_get_orgARead-onlyIdempotent
Get details of the current organization (based on the configured ZITADEL_ORG_ID).
Inputs: no named parameters.
zitadel_get_projectBRead-onlyIdempotent
Get details of a specific project by its ID.
Inputs: projectId (required).
zitadel_get_userARead-onlyIdempotent
Get detailed information about a specific user by their user ID.
Inputs: userId (required).
zitadel_grant_org_managerAIdempotent
Grant org-level manager (administrator) role(s) to a user. For the no-super-admin pattern, grant ORG_USER_MANAGER to every Admin so they can manage any user. Idempotent: merges with any existing manager roles. Defaults to ["ORG_USER_MANAGER"].
Inputs: userId (required), roles.
zitadel_list_appsBRead-onlyIdempotent
List all applications in a Zitadel project.
Inputs: projectId (required).
zitadel_list_org_manager_rolesARead-onlyIdempotent
List the org-level manager (administrator) role keys this Zitadel org supports (e.g. ORG_OWNER, ORG_USER_MANAGER, ORG_USER_PERMISSION_EDITOR). Use to confirm the exact keys before granting.
Inputs: no named parameters.
zitadel_list_org_managersARead-onlyIdempotent
List users who hold org-level manager (administrator) grants, with their manager roles. Optionally filter to a single role key (e.g. ORG_OWNER) to see who holds it.
Inputs: role.
zitadel_list_project_rolesBRead-onlyIdempotent
List all roles defined in a Zitadel project (e.g., "admin", "standard").
Inputs: projectId.
zitadel_list_projectsBRead-onlyIdempotent
List all projects in the Zitadel organization.
Inputs: limit.
zitadel_list_service_user_keysARead-onlyIdempotent
List existing keys for a service account. Shows key metadata only (not private keys).
Inputs: userId (required).
zitadel_list_user_grantsBRead-onlyIdempotent
List role grants (authorizations) for a specific user, showing which project roles they have been assigned.
Inputs: userId (required), projectId.
zitadel_list_usersBRead-onlyIdempotent
List or search users in the Zitadel instance. Returns user details including name, email, status, and login names.
Inputs: limit, query.
zitadel_lock_userADestructiveIdempotent
Lock a user account. The user will not be able to log in until unlocked. Requires confirm: true.
Inputs: userId (required), confirm.
zitadel_offboard_userADestructiveIdempotent
Offboard a user: remove their Admin|Standard project role assignment, revoke any org-manager grant, and deactivate the account. Guards: cannot remove the last Admin, cannot self-demote (pass actingUserId), cannot remove the last ORG_OWNER. Requires confirm: true.
Inputs: email, userId, confirm, projectId, +3 more.
zitadel_provision_userAIdempotent
Atomically provision a user for the core SSO apps (the app-portal cascade-up). Creates the human user (idempotent by email or supplied userId), assigns the Admin|Standard project role via the v2 AuthorizationService, and — for Admins — grants ORG_USER_MANAGER so they can manage any user (no-super-admin pattern). Returns { zitadelUserId, role, authorizationId }. Safe to re-run.
Inputs: role (required), email (required), lastName (required), firstName (required), +3 more.
zitadel_reactivate_userBIdempotent
Reactivate a previously deactivated user account.
Inputs: userId (required).
zitadel_remove_user_grantADestructiveIdempotent
Remove a role grant (authorization) from a user by grant ID. Requires confirm: true.
Inputs: userId (required), grantId (required), confirm.
zitadel_revoke_org_managerADestructiveIdempotent
Revoke org-level manager role(s) from a user. Omit roles to remove the entire manager membership. Guards against removing the last ORG_OWNER. Requires confirm: true.
Inputs: userId (required), roles, confirm.
zitadel_set_hosted_login_translationAIdempotent
Override texts of the Login V2 (new "hosted login" / TypeScript login) for a locale, via the Settings v2 API — the correct lever for the new login (the legacy Management "Custom Login Texts" are ignored by it). Pass translations as flat dot-path keys mirroring apps/login/locales/.json in zitadel/zitadel, e.g. {"password.errors.couldNotCreateSessionForUser":"Benutzername oder Passwort falsch."}. Only the keys you send are changed: the tool reads this level's existing overrides, deep-merges yours in, and writes the result — so other overrides and untouched defaults stay intact (idempotent). Defaults to the configured org (ORG-LEVEL — affects every app whose login resolves to this org); pass level:"instance" for the whole instance (needs an IAM-level grant). Set one locale per call; repeat for each language you support.
Inputs: locale (required), translations (required), level.
zitadel_unlock_userAIdempotent
Unlock a previously locked user account.
Inputs: userId (required).
zitadel_update_appBIdempotent
Update an OIDC application's configuration (redirect URIs, auth method, grant types, etc.).
Inputs: appId (required), projectId (required), devMode, grantTypes, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 34 tools
Tools are mostly distinct: user lifecycle, grants, org managers, projects, apps, and translations each have clear boundaries. The only mild overlap is between composite helpers (provision_user, offboard_user) and their constituent low-level operations, but descriptions make the intended use clear.
All tools use the zitadel_ prefix with snake_case verb_noun naming (e.g. zitadel_list_users, zitadel_create_user_grant, zitadel_grant_org_manager). Conventions are consistent across the entire set.
34 tools is above the 25-tool threshold for 'too many' in the rubric; while Zitadel is broad, the surface feels heavy and includes several composite wrappers alongside granular operations.
User lifecycle is complete (create, list, get, deactivate, reactivate, lock, unlock, delete), and grants/managers are well covered. However, projects and apps lack update/delete operations, login policy is read-only, and service-user keys have no delete/revoke, leaving notable gaps.
Maintenance
Related MCP Connectors
Users, organizations, roles, permissions, applications and feature flags.
Single sign-on and identity service for the Elite AI Empire suite.
Hosted login, teams, billing and feature flags for your SaaS app, set up by your AI assistant.
Send and verify one-time passcodes over SMS, WhatsApp and Telegram.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables remote MCP server connections with WorkOS AuthKit authentication and user management. Supports organization-centric authentication and permission-based tool access control.-
- AlicenseNot gradedqualityDmaintenanceAdd authentication to your app without leaving your IDE. Creates projects, configures auth methods, wires up OAuth, and scaffolds sign-in flows - all from your editor's chat.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables centralized authentication and authorization for MCP servers, with OAuth 2.1, static API keys, and JWT verification via drop-in middleware.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to connect to Authentik and securely query users, groups, applications, events, and system status, with an optional gated tool to enable or disable user accounts.MIT