Home / Other / Keycloak Admin

Keycloak Admin

io.github.mrz1880/mcp-keycloak-admin · v0.2.3 stdio

Score 80. Maintenance 37 of 40, security 35 of 35, adoption 8 of 25.

Administer Keycloak via its Admin REST API: users, roles, clients, groups, IdP, events.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #372 of 1,794 Other servers on Socketlist by score, with 4 GitHub stars and a last code push 18d ago.

Install

npx -y mcp-keycloak-admin

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect Keycloak Admin to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env KEYCLOAK_BASE_URL=<keycloak_base_url> --env KEYCLOAK_REALM=<keycloak_realm> --env AUTH_MODE=<auth_mode> --env KC_CLIENT_SECRET=<kc_client_secret> --env KC_ADMIN_PASSWORD=<kc_admin_password> --transport stdio keycloak-admin -- npx -y mcp-keycloak-admin

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "keycloak-admin": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-keycloak-admin"
      ],
      "env": {
        "KEYCLOAK_BASE_URL": "${KEYCLOAK_BASE_URL}",
        "KEYCLOAK_REALM": "${KEYCLOAK_REALM}",
        "AUTH_MODE": "${AUTH_MODE}",
        "KC_CLIENT_SECRET": "${KC_CLIENT_SECRET}",
        "KC_ADMIN_PASSWORD": "${KC_ADMIN_PASSWORD}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "keycloak-admin": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-keycloak-admin"
      ],
      "env": {
        "KEYCLOAK_BASE_URL": "${env:KEYCLOAK_BASE_URL}",
        "KEYCLOAK_REALM": "${env:KEYCLOAK_REALM}",
        "AUTH_MODE": "${env:AUTH_MODE}",
        "KC_CLIENT_SECRET": "${env:KC_CLIENT_SECRET}",
        "KC_ADMIN_PASSWORD": "${env:KC_ADMIN_PASSWORD}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
KEYCLOAK_BASE_URLYesNoBase URL of the Keycloak server (no trailing slash).
KEYCLOAK_REALMYesNoRealm the server operates on.
AUTH_MODEYesNoAuthentication mode: service_account or password.
KC_CLIENT_IDNoNoConfidential client id (service_account mode).
KC_CLIENT_SECRETNoYesClient secret (service_account mode).
KC_ADMIN_USERNAMENoNoAdmin username (password mode).
KC_ADMIN_PASSWORDNoYesAdmin password (password mode).
KC_ADMIN_REALMNoNoRealm holding the admin user (password mode; default master).
READ_ONLYNoNoWhen true, write and destructive tools are not registered.
ALLOWED_REALMSNoNoComma-separated allow-list of realms the server may operate on.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "mcp-keycloak-admin"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance37/40Last push 18d ago, 0 open issuesStrong
Security hygiene35/35Licence MIT, SECURITY.md present, published package or hosted endpointStrong
Adoption8/254 GitHub stars, 44 npm downloads a weekWeak

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in Other. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars4
npm weekly downloads44
Last push18d ago
LicenceMIT
Open issues0
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-06-26

Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.

Similar servers

Compare all alternatives

keycloak-model-context-protocol

Score 84. Maintenance 34 of 40, security 35 of 35, adoption 15 of 25.

io.github.ChristophEnglisch/keycloak-model-context-protocol

Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.

★ 48↓ 620/wkMITpushed 1mo ago Other

Identity AIops

Score 70. Maintenance 35 of 40, security 35 of 35, adoption 0 of 25.

io.github.AIops-tools/identity-aiops

Governed Keycloak + authentik identity ops: users, events, clients, MFA, RCA. 29 tools.

★ 0MITpushed 1mo ago Other

Skycloak

Score 77. Maintenance 40 of 40, security 35 of 35, adoption 2 of 25.

io.skycloak/skycloak-mcp

Managed Keycloak from any MCP client: clusters, realms, apps, SSO, users, domains, audit events.

★ 2Apache-2.0pushed today RemoteOther