Skip to main content

Keycloak Admin API

io.github.sferarc/keycloak-api-mcp

v3.8.2Updated Nov 24, 2026stdio · npm

Unofficial: one tool per Keycloak admin operation on a realm, read-only unless writes are enabled

Install

Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add keycloak-api-mcp -e 'KEYCLOAK_URL=<your-keycloak-url>' -e 'KEYCLOAK_REALM=<your-keycloak-realm>' -- npx -y [email protected]

Configuration

8 settings.

  • KEYCLOAK_URL
    Env var· required
    Base URL of the server, such as https://keycloak.example.com
  • KEYCLOAK_REALM
    Env var· required
    Realm the tools act on
  • KEYCLOAK_TOKEN
    Env var· optional· secret
    A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET
  • KEYCLOAK_CLIENT_SECRET
    Env var· optional· secret
    Secret of that client
  • KEYCLOAK_CLIENT_ID
    Env var· optional
    A confidential client with a service account, for the client credentials grant
  • KEYCLOAK_TOKEN_REALM
    Env var· optional
    Realm of that client, if not KEYCLOAK_REALM (for example master)
Show 2 more
  • KEYCLOAK_MCP_ALLOW_WRITES
    Env var· optional
    1 to list the tools that change data
  • KEYCLOAK_MCP_RESOURCES
    Env var· optional
    Comma separated resources to list tools for, such as users,groups,roles

Listed in the official MCP Registry since Nov 24, 2026. Mirrored daily; last checked Nov 26, 2026.