mcp-keycloak
v0.3.3Keycloak admin for AI agents — realms, users, clients, roles; safe-by-default governance.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_realms List realms
List all realms visible to the configured credentials. Realms outside the allowlist are filtered out.
get_realm Get realm settings
Fetch the configuration of a single realm.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
list_users List / search users
List users in a realm. Supports free-text search and pagination. Passwords and secrets are never returned by Keycloak.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
first | integer | Pagination offset |
max | integer | Max results (default 50) |
search | string | Free-text search across username, email, first and last name |
get_user Get user by id
Fetch a single user representation by their Keycloak id.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
userId * | string | Keycloak user id (UUID) |
count_users Count users
Return the number of users in a realm, optionally matching a search term.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
search | string | Optional search term |
list_clients List clients
List OAuth/OIDC clients configured in a realm. Client secrets are not included.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
clientId | string | Filter by clientId |
list_realm_roles List realm roles
List the realm-level roles defined in a realm.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
list_groups List groups
List groups in a realm.
| Parameter | Type | Description |
|---|---|---|
realm * | string | Realm name |
search | string | Optional search term |