Keycloak MCP

Securitystdio
Repositorio

An MCP server for Keycloak administration, enabling AI-assisted management of users and realms. Lets agents create, look up, and disable users, assign roles and groups, and inspect realm configuration through the Keycloak Admin API, which is useful for identity operations and onboarding or offboarding workflows.

Conectar

Añade esta configuración a .claude/mcp.json

{
  "mcpServers": {
    "keycloak": {
      "command": "npx",
      "args": [],
      "env": {
        "KEYCLOAK_URL": "<YOUR_KEYCLOAK_URL>",
        "KEYCLOAK_ADMIN": "<YOUR_KEYCLOAK_ADMIN>",
        "KEYCLOAK_ADMIN_PASSWORD": "<YOUR_KEYCLOAK_ADMIN_PASSWORD>"
      }
    }
  }
}

Herramientas (3)

list_realms

List the realms configured in the Keycloak instance.

{
  "type": "object",
  "properties": {}
}

create_user

Create a user in a given realm.

{
  "type": "object",
  "required": [
    "realm",
    "username"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "Email address"
    },
    "realm": {
      "type": "string",
      "description": "Target realm name"
    },
    "username": {
      "type": "string",
      "description": "Username for the new user"
    }
  }
}

delete_user

Delete a user from a realm.

{
  "type": "object",
  "required": [
    "realm",
    "user_id"
  ],
  "properties": {
    "realm": {
      "type": "string",
      "description": "Target realm name"
    },
    "user_id": {
      "type": "string",
      "description": "Identifier of the user to delete"
    }
  }
}

Recursos

Este servidor no expone ningún recurso.

Prompts

Este servidor no expone ningún prompt.

Información del servidor

Autor
Christoph Englisch (@ChristophEnglisch)
Repositorio
https://github.com/ChristophEnglisch/keycloak-model-context-protocol
Licencia
MIT
Estrellas
0
Última actualización
28 de julio de 2026