{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.sferarc/keycloak-api-mcp",
  "slug": "io.github.sferarc.keycloak-api-mcp",
  "title": "Keycloak Admin API",
  "summary": "Unofficial: one tool per Keycloak admin operation on a realm, read-only unless writes are enabled",
  "version": "3.8.2",
  "serverKey": "keycloak-api-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.sferarc.keycloak-api-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.sferarc.keycloak-api-mcp/install.md",
  "trust": {
    "score": 87,
    "grade": "A",
    "smokeStatus": "needs_credentials",
    "status": "active",
    "verifiedAt": "2026-12-01T11:00:55.893831481Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=keycloak-api@3.8.2",
        "keycloak-api-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add keycloak-api-mcp -e 'KEYCLOAK_REALM=<KEYCLOAK_REALM>' -e 'KEYCLOAK_URL=<KEYCLOAK_URL>' -- npx -y --package=keycloak-api@3.8.2 keycloak-api-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"keycloak-api-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=keycloak-api@3.8.2\",\n        \"keycloak-api-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"KEYCLOAK_REALM\": \"<KEYCLOAK_REALM>\",\n        \"KEYCLOAK_URL\": \"<KEYCLOAK_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"keycloak-api-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=keycloak-api@3.8.2\",\n        \"keycloak-api-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"KEYCLOAK_REALM\": \"<KEYCLOAK_REALM>\",\n        \"KEYCLOAK_URL\": \"<KEYCLOAK_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"KEYCLOAK_REALM\",\n      \"id\": \"keycloak-realm\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"KEYCLOAK_URL\",\n      \"id\": \"keycloak-url\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"keycloak-api-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=keycloak-api@3.8.2\",\n        \"keycloak-api-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"KEYCLOAK_REALM\": \"${input:keycloak-realm}\",\n        \"KEYCLOAK_URL\": \"${input:keycloak-url}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.keycloak-api-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=keycloak-api@3.8.2\", \"keycloak-api-mcp\"]\nenv = { \"KEYCLOAK_REALM\" = \"<KEYCLOAK_REALM>\", \"KEYCLOAK_URL\" = \"<KEYCLOAK_URL>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "KEYCLOAK_URL",
      "required": true,
      "secret": false,
      "description": "Base URL of the server, such as https://keycloak.example.com",
      "help": "Base URL of the server, such as https://keycloak.example.com",
      "placeholder": "<KEYCLOAK_URL>"
    },
    {
      "name": "KEYCLOAK_REALM",
      "required": true,
      "secret": false,
      "description": "Realm the tools act on",
      "help": "Realm the tools act on",
      "placeholder": "<KEYCLOAK_REALM>"
    },
    {
      "name": "KEYCLOAK_TOKEN",
      "required": false,
      "secret": true,
      "description": "A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET",
      "help": "A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET",
      "placeholder": "<KEYCLOAK_TOKEN>"
    },
    {
      "name": "KEYCLOAK_CLIENT_ID",
      "required": false,
      "secret": false,
      "description": "A confidential client with a service account, for the client credentials grant",
      "help": "A confidential client with a service account, for the client credentials grant",
      "placeholder": "<KEYCLOAK_CLIENT_ID>"
    },
    {
      "name": "KEYCLOAK_CLIENT_SECRET",
      "required": false,
      "secret": true,
      "description": "Secret of that client",
      "help": "Secret of that client",
      "placeholder": "<KEYCLOAK_CLIENT_SECRET>"
    },
    {
      "name": "KEYCLOAK_TOKEN_REALM",
      "required": false,
      "secret": false,
      "description": "Realm of that client, if not KEYCLOAK_REALM (for example master)",
      "help": "Realm of that client, if not KEYCLOAK_REALM (for example master)",
      "placeholder": "<KEYCLOAK_TOKEN_REALM>"
    },
    {
      "name": "KEYCLOAK_MCP_ALLOW_WRITES",
      "required": false,
      "secret": false,
      "description": "1 to list the tools that change data",
      "help": "1 to list the tools that change data",
      "placeholder": "<KEYCLOAK_MCP_ALLOW_WRITES>"
    },
    {
      "name": "KEYCLOAK_MCP_RESOURCES",
      "required": false,
      "secret": false,
      "description": "Comma separated resources to list tools for, such as users,groups,roles",
      "help": "Comma separated resources to list tools for, such as users,groups,roles",
      "placeholder": "<KEYCLOAK_MCP_RESOURCES>"
    }
  ],
  "agentSteps": [
    "Ask the user for: KEYCLOAK_URL, KEYCLOAK_REALM. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T11:00:55.893831481Z"
}
