Keycloak MCP

Securitystdio
Репозиторий

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.

Подключение

Добавьте эту конфигурацию в .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>"
      }
    }
  }
}

Инструменты (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"
    }
  }
}

Ресурсы

Этот сервер не предоставляет ресурсы.

Промпты

Этот сервер не предоставляет промпты.

Сведения о сервере

Автор
Christoph Englisch (@ChristophEnglisch)
Репозиторий
https://github.com/ChristophEnglisch/keycloak-model-context-protocol
Лицензия
MIT
Звёзды
0
Последнее обновление
28 июля 2026 г.