MCP directory
KA

Keycloak Admin

by github.com/mrz1880 · v0.2.3 · updated Jun 26, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • KEYCLOAK_BASE_URLrequired

    Base URL of the Keycloak server (no trailing slash).

  • KEYCLOAK_REALMrequired

    Realm the server operates on.

  • AUTH_MODErequired

    Authentication mode: service_account or password.

  • KC_CLIENT_ID

    Confidential client id (service_account mode).

  • KC_CLIENT_SECRETsecret

    Client secret (service_account mode).

  • KC_ADMIN_USERNAME

    Admin username (password mode).

  • KC_ADMIN_PASSWORDsecret

    Admin password (password mode).

  • KC_ADMIN_REALM

    Realm holding the admin user (password mode; default master).

  • READ_ONLY

    When true, write and destructive tools are not registered.

  • ALLOWED_REALMS

    Comma-separated allow-list of realms the server may operate on.

More MCP servers