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.
Connect
Add this configuration to .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>"
}
}
}
}Tools (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"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server information
- License
- MIT
- Stars
- 0
- Last updated
- July 28, 2026