mcp-keycloak

v0.3.3
io.github.dockndevai/mcp-keycloak Checked 2 days ago Published 1 month ago

Keycloak 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.

ParameterTypeDescription
realm *stringRealm 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.

ParameterTypeDescription
realm *stringRealm name
firstintegerPagination offset
maxintegerMax results (default 50)
searchstringFree-text search across username, email, first and last name

get_user Get user by id

Fetch a single user representation by their Keycloak id.

ParameterTypeDescription
realm *stringRealm name
userId *stringKeycloak user id (UUID)

count_users Count users

Return the number of users in a realm, optionally matching a search term.

ParameterTypeDescription
realm *stringRealm name
searchstringOptional search term

list_clients List clients

List OAuth/OIDC clients configured in a realm. Client secrets are not included.

ParameterTypeDescription
realm *stringRealm name
clientIdstringFilter by clientId

list_realm_roles List realm roles

List the realm-level roles defined in a realm.

ParameterTypeDescription
realm *stringRealm name

list_groups List groups

List groups in a realm.

ParameterTypeDescription
realm *stringRealm name
searchstringOptional search term