Keycloak Admin API
Unofficial: one tool per Keycloak admin operation on a realm, read-only unless writes are enabled
Documentation & Preview
{ "mcpServers": { "mcp-keycloak-api-mcp-7169d93a600f6bce313e": { "command": "npx", "args": [ "-y", "--package", "keycloak-api@3.8.2", "keycloak-api-mcp" ], "env": { "KEYCLOAK_URL": "${ENV_KEYCLOAK_URL}", "KEYCLOAK_REALM": "${ENV_KEYCLOAK_REALM}", "KEYCLOAK_TOKEN": "${ENV_KEYCLOAK_TOKEN}", "KEYCLOAK_CLIENT_ID": "${ENV_KEYCLOAK_CLIENT_ID}", "KEYCLOAK_CLIENT_SECRET": "${ENV_KEYCLOAK_CLIENT_SECRET}", "KEYCLOAK_TOKEN_REALM": "${ENV_KEYCLOAK_TOKEN_REALM}", "KEYCLOAK_MCP_ALLOW_WRITES": "${ENV_KEYCLOAK_MCP_ALLOW_WRITES}", "KEYCLOAK_MCP_RESOURCES": "${ENV_KEYCLOAK_MCP_RESOURCES}" } } }, "setup": { "fields": [ { "id": "ENV_KEYCLOAK_URL", "label": "KEYCLOAK_URL", "description": "Base URL of the server, such as https://keycloak.example.com", "required": true, "secret": false, "default": "" }, { "id": "ENV_KEYCLOAK_REALM", "label": "KEYCLOAK_REALM", "description": "Realm the tools act on", "required": true, "secret": false, "default": "" }, { "id": "ENV_KEYCLOAK_TOKEN", "label": "KEYCLOAK_TOKEN", "description": "A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET", "required": false, "secret": true, "default": "" }, { "id": "ENV_KEYCLOAK_CLIENT_ID", "label": "KEYCLOAK_CLIENT_ID", "description": "A confidential client with a service account, for the client credentials grant", "required": false, "secret": false, "default": "" }, { "id": "ENV_KEYCLOAK_CLIENT_SECRET", "label": "KEYCLOAK_CLIENT_SECRET", "description": "Secret of that client", "required": false, "secret": true, "default": "" }, { "id": "ENV_KEYCLOAK_TOKEN_REALM", "label": "KEYCLOAK_TOKEN_REALM", "description": "Realm of that client, if not KEYCLOAK_REALM (for example master)", "required": false, "secret": false, "default": "" }, { "id": "ENV_KEYCLOAK_MCP_ALLOW_WRITES", "label": "KEYCLOAK_MCP_ALLOW_WRITES", "description": "1 to list the tools that change data", "required": false, "secret": false, "default": "" }, { "id": "ENV_KEYCLOAK_MCP_RESOURCES", "label": "KEYCLOAK_MCP_RESOURCES", "description": "Comma separated resources to list tools for, such as users,groups,roles", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.sferarc/keycloak-api-mcp", "registryVersion": "3.8.2", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.sferarc%2Fkeycloak-api-mcp/versions/3.8.2", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "keycloak-api", "version": "3.8.2", "integrity": "sha512-ixRIRyZ9SOahZxXAihaw9xGEFv1g5Ghq/LdcGRk4MTWxXV1IxhPjgJsu+qgukxQwEU+v4M7XTBUEkeQMC70cTQ==", "registryNameMatched": "io.github.sferarc/keycloak-api-mcp", "checkedAt": "2026-11-24T17:21:12.595Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }