MCP directory
KA

Keycloak Admin API

by github.com/sferarc · v3.8.2 · updated Nov 24, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • KEYCLOAK_URLrequired

    Base URL of the server, such as https://keycloak.example.com

  • KEYCLOAK_REALMrequired

    Realm the tools act on

  • KEYCLOAK_TOKENsecret

    A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET

  • KEYCLOAK_CLIENT_ID

    A confidential client with a service account, for the client credentials grant

  • KEYCLOAK_CLIENT_SECRETsecret

    Secret of that client

  • KEYCLOAK_TOKEN_REALM

    Realm of that client, if not KEYCLOAK_REALM (for example master)

  • KEYCLOAK_MCP_ALLOW_WRITES

    1 to list the tools that change data

  • KEYCLOAK_MCP_RESOURCES

    Comma separated resources to list tools for, such as users,groups,roles

More MCP servers