MCP低风险未认领

keycloak-model-context-protocol

Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.

ChristophEnglischchristophenglisch/keycloak-model-context-protocol★ 46更新于 2026年10月26日

server.json

{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.ChristophEnglisch/keycloak-model-context-protocol",
  "description": "Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.",
  "repository": {
    "url": "https://github.com/ChristophEnglisch/keycloak-model-context-protocol",
    "source": "github"
  },
  "version": "1.1.0",
  "packages": [
    {
      "registryType": "npm",
      "identifier": "keycloak-model-context-protocol",
      "version": "1.1.0",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "Base URL of the Keycloak server, e.g. https://keycloak.example.com",
          "isRequired": true,
          "format": "string",
          "name": "KEYCLOAK_URL"
        },
        {
          "description": "Realm used to obtain the admin token",
          "format": "string",
          "default": "master",
          "name": "KEYCLOAK_AUTH_REALM"
        },
        {
          "description": "Client ID used for login (default admin-cli for the password grant, required for client_credentials)",
          "format": "string",
          "name": "KEYCLOAK_CLIENT_ID"
        },
        {
          "description": "Client secret for the client_credentials grant (recommended: a dedicated service account)",
          "format": "string",
          "isSecret": true,
          "name": "KEYCLOAK_CLIENT_SECRET"
        },
        {
          "description": "Username for the password grant (alternative to client credentials)",
          "format": "string",
          "name": "KEYCLOAK_USERNAME"
        },
        {
          "description": "Password for the password grant",
          "format": "string",
          "isSecret": true,
          "name": "KEYCLOAK_PASSWORD"
        },
        {
          "description": "Grant type; auto-detected if unset (client_credentials when a secret is set, else password)",
          "format": "string",
          "choices": [
            "client_credentials",
            "password"
          ],
          "name": "KEYCLOAK_GRANT_TYPE"
        },
        {
          "description": "If true, only read-only tools are registered",
          "format": "boolean",
          "default": "false",
          "name": "KEYCLOAK_MCP_READ_ONLY"
        },
        {
          "description": "Comma-separated allowlist of target realms; empty means all realms",
          "format": "string",
          "name": "KEYCLOAK_MCP_REALMS"
        },
        {
          "description": "If true, write tools may modify the master realm",
          "format": "boolean",
          "default": "false",
          "name": "KEYCLOAK_MCP_ALLOW_MASTER_WRITE"
        },
        {
          "description": "Comma-separated enabled toolsets (core, groups, roles, clients, sessions, events, security) or all",
          "format": "string",
          "default": "core,groups,roles",
          "name": "KEYCLOAK_MCP_TOOLSETS"
        },
        {
          "description": "If true, destructive tools require confirm=true",
          "format": "boolean",
          "default": "true",
          "name": "KEYCLOAK_MCP_REQUIRE_CONFIRMATION"
        },
        {
          "description": "HTTP timeout for Keycloak requests in milliseconds",
          "format": "number",
          "default": "30000",
          "name": "KEYCLOAK_MCP_TIMEOUT_MS"
        },
        {
          "description": "Log level written to stderr",
          "format": "string",
          "default": "info",
          "choices": [
            "debug",
            "info",
            "warn",
            "error"
          ],
          "name": "KEYCLOAK_MCP_LOG_LEVEL"
        }
      ]
    }
  ]
}

权限

声明检测
运行代码—node
安装—npm:keycloak-model-context-protocol@1.1.0
安装时运行脚本—无
网络无无
需要的凭据KEYCLOAK_CLIENT_SECRETKEYCLOAK_PASSWORDKEYCLOAK_CLIENT_SECRETKEYCLOAK_PASSWORD
工作区外的路径—无
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

版本

  1. #31.1.0最新2026年10月26日
  2. #21.0.32026年10月26日
  3. #11.0.22026年10月24日

在 Codeg 中打开

也可以复制地址,在 Codeg 的「发现」里搜索。

christophenglisch/keycloak-model-context-protocol

还没有 Codeg?下载