keycloak-model-context-protocol MCP Server

A Model Context Protocol server for Keycloak administration, providing tools to manage users and realms.

Local serverstdioMIT

What is the keycloak-model-context-protocol MCP Server?

keycloak-model-context-protocol source profile. From the maintainer documentation: “A Model Context Protocol server for Keycloak administration, providing tools to manage users and realms.”

Installation

The documented npm package is keycloak-model-context-protocol. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares KEYCLOAK_URL, KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
realmThe realm name
usernameUsername for the new user
emailEmail address for the user
firstNameUser's first name
lastNameUser's last name
userIdThe ID of the user to delete

How to install the keycloak-model-context-protocol MCP Server

{
  "mcpServers": {
    "keycloak": {
      "command": "npx",
      "args": [
        "-y",
        "keycloak-model-context-protocol"
      ],
      "env": {
        "KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
        "KEYCLOAK_ADMIN": "YOUR_KEYCLOAK_ADMIN",
        "KEYCLOAK_ADMIN_PASSWORD": "YOUR_KEYCLOAK_ADMIN_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
KEYCLOAK_URLDeclared in the maintainer’s client configuration.Check documentation
KEYCLOAK_ADMINDeclared in the maintainer’s client configuration.Check documentation
KEYCLOAK_ADMIN_PASSWORDDeclared in the maintainer’s client configuration.Check documentation