What it does
The server gives an AI assistant tools for Keycloak administration through the Admin REST API. Core tools cover listing and editing users, groups and roles, and the realms the account can access. Optional toolsets add client and session tools, including logging a user out. Tools that delete, revoke or change identity, credentials or rights return a preview unless they are called with confirm set to true.
It suits cases where an assistant needs to look up or change Keycloak accounts, group memberships or role assignments. Guided prompts cover onboarding, offboarding, a security audit and investigating failed logins, and resources expose realms and users.
Running it needs a Node.js runtime, a Keycloak server the machine can reach, and an MCP client that uses stdio, such as Claude Desktop, Claude Code, VS Code or Cursor. Setup involves creating a client with service account roles in the target realm and supplying its credentials as environment variables. Read-only mode and a realm allowlist can be configured.
Limitations and requirements
The server acts with the permissions of the Keycloak account it is given, so a dedicated service account with only the required roles is recommended rather than the bootstrap admin. The model can set confirm to true on its first call; only the client's approval prompt confirms that a person agreed to a change. Writes to the master realm are blocked unless explicitly allowed. Requires a reachable Keycloak server and a Node.js runtime.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.ChristophEnglisch/keycloak-model-context-protocol
Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.
v1.1.0As shown on registry.modelcontextprotocol.io when we last read it