Home › Other › keycloak-model-context-protocol
keycloak-model-context-protocol
Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.
Connect
Review any command before running it. Package names and URLs come from the server's own registry entry.
Package (npm 1.1.0)
npx -y [email protected]
Or add to your MCP client config:
{
"mcpServers": {
"keycloak-model-context-protocol": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"KEYCLOAK_URL": "<YOUR_VALUE>",
"KEYCLOAK_AUTH_REALM": "<YOUR_VALUE>",
"KEYCLOAK_CLIENT_ID": "<YOUR_VALUE>",
"KEYCLOAK_CLIENT_SECRET": "<YOUR_VALUE>",
"KEYCLOAK_USERNAME": "<YOUR_VALUE>",
"KEYCLOAK_PASSWORD": "<YOUR_VALUE>",
"KEYCLOAK_GRANT_TYPE": "<YOUR_VALUE>",
"KEYCLOAK_MCP_READ_ONLY": "<YOUR_VALUE>",
"KEYCLOAK_MCP_REALMS": "<YOUR_VALUE>",
"KEYCLOAK_MCP_ALLOW_MASTER_WRITE": "<YOUR_VALUE>",
"KEYCLOAK_MCP_TOOLSETS": "<YOUR_VALUE>",
"KEYCLOAK_MCP_REQUIRE_CONFIRMATION": "<YOUR_VALUE>",
"KEYCLOAK_MCP_TIMEOUT_MS": "<YOUR_VALUE>",
"KEYCLOAK_MCP_LOG_LEVEL": "<YOUR_VALUE>"
}
}
}
}
KEYCLOAK_URLrequired — Base URL of the Keycloak server, e.g. https://keycloak.example.comKEYCLOAK_AUTH_REALM— Realm used to obtain the admin tokenKEYCLOAK_CLIENT_ID— Client ID used for login (default admin-cli for the password grant, required for client_credentials)KEYCLOAK_CLIENT_SECRETsecret — Client secret for the client_credentials grant (recommended: a dedicated service account)KEYCLOAK_USERNAME— Username for the password grant (alternative to client credentials)KEYCLOAK_PASSWORDsecret — Password for the password grantKEYCLOAK_GRANT_TYPE— Grant type; auto-detected if unset (client_credentials when a secret is set, else password)KEYCLOAK_MCP_READ_ONLY— If true, only read-only tools are registeredKEYCLOAK_MCP_REALMS— Comma-separated allowlist of target realms; empty means all realmsKEYCLOAK_MCP_ALLOW_MASTER_WRITE— If true, write tools may modify the master realmKEYCLOAK_MCP_TOOLSETS— Comma-separated enabled toolsets (core, groups, roles, clients, sessions, events, security) or allKEYCLOAK_MCP_REQUIRE_CONFIRMATION— If true, destructive tools require confirm=trueKEYCLOAK_MCP_TIMEOUT_MS— HTTP timeout for Keycloak requests in millisecondsKEYCLOAK_MCP_LOG_LEVEL— Log level written to stderr
Related servers
REA
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
browser-use
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
paperclip
Trending hip-hop artist momentum scores across four cultural dimensions.
World Monitor
Real-time global intelligence across conflict, markets, energy, trade, shipping and cyber. 99 tools.
ruflo
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
Data from the Official MCP Registry