Keycloak MCP Server
Exposes the full Keycloak Admin REST API (415 endpoints) as typed MCP tools, letting an agent administer a Keycloak server: realms, users, clients, client scopes and role mappings, groups, roles, authentication management, authorization services, identity providers, protocol mappers, scope mappings, organizations (members, groups, invitations), attack detection, keys, workflows and client certificates. Authenticates with the password (admin-cli) or client credentials flow with automatic token refresh, and reports per-tool version requirements for Keycloak 24 through 26.8.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Keycloak MCP Server list all users in the master realm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Keycloak MCP Server
Features
Complete API coverage: All 415 Keycloak Admin REST API endpoints
Dual transport: stdio (Claude Code, Claude Desktop) and Streamable HTTP (GitHub Copilot, other MCP clients)
MCP SDK 2.x: built on the
mcp2.x Python SDKAuto-authentication: Supports both password and client credentials flows with automatic token refresh
Zero configuration tools: Each tool is self-describing with full input schemas
API Categories
Category | Tools |
Attack Detection | 3 |
Authentication Management | 39 |
Authorization Services | 31 |
Client Certificates | 7 |
Client Initial Access | 3 |
Client Registration Policy | 1 |
Client Role Mappings | 10 |
Client Scopes | 10 |
Clients | 35 |
Components | 6 |
Groups | 11 |
Identity Providers | 17 |
Keys | 1 |
Organizations | 49 |
Protocol Mappers | 21 |
Realms Admin | 45 |
Roles | 28 |
Roles by ID | 10 |
Scope Mappings | 45 |
Users | 34 |
Workflows | 9 |
Total | 415 |
Related MCP server: mcp-keycloak-admin
Compatibility
The tools follow the Keycloak Admin REST API of Keycloak 26.8, where all 415 work. They were also run against real containers of Keycloak 24.0.5, 25.0.6, 26.0.8, 26.2.5, 26.3.5, 26.4.7, 26.5.3, 26.6.1, 26.7.5 and 26.8.2. Versions older than 24 were not tested.
On an older server the tools that do not exist there simply return Keycloak's 404/405 error; everything else keeps working. Tools that need a newer version say so in their description ("Requires Keycloak X+"). The version is the first one where the tool was seen working; it may have appeared in an earlier patch release of the same line.
Tools | First tested version |
Everything not listed below (users, clients, roles, groups, realms, authentication, ...) | 24.0.5 |
Organizations (CRUD, members, identity providers) and | 25 (organizations are a preview feature in 25, stable in 26.0) |
| 26.0 |
| 26.3 |
Organization invitations, Workflows, | 26.5 |
Organization groups, | 26.6 |
Organization group role mappings, | 26.7 |
| 26.8 |
Some features are disabled by default and must be enabled on the server (--features=...): workflows (Workflows), client-types (list_client_types, update_client_types) and admin-fine-grained-authz (the *_permissions tools). Without them Keycloak answers 501 or 404.
Install with AI
Give your AI (Claude Code, Copilot, Cursor, ...) this prompt and it will install and register the server for you:
Install the Keycloak MCP server from https://github.com/Cayetano97/Keycloack-MCP-Server in this environment. Follow the section "Instructions for the AI agent" of its README.
Instructions for the AI agent
Goal: the keycloak MCP server runs over stdio in the user's MCP client and can reach their Keycloak. Do the steps in order and stop to ask the user where indicated.
Check prerequisites. Run
uv --version. If it is missing, ask the user before installing it (Windows:powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"; macOS/Linux:curl -LsSf https://astral.sh/uv/install.sh | sh).uvfetches Python 3.11+ by itself, so Python is not a separate requirement.Ask the user for the connection details. Never invent or guess them.
KEYCLOAK_URL: base URL of the server, withhttp://orhttps://, no trailing/realms/...(e.g.https://sso.example.com).Credentials, one of:
Password flow:
KEYCLOAK_ADMIN_USERNAME+KEYCLOAK_ADMIN_PASSWORD(clientadmin-cliby default).Client credentials flow (recommended for anything beyond local use):
KEYCLOAK_CLIENT_ID+KEYCLOAK_CLIENT_SECRET. The client needs "Service accounts roles" enabled and the realm-management roles it will use.
Optional:
KEYCLOAK_ADMIN_REALM(defaultmaster) andKEYCLOAK_VERIFY_SSL=falseonly for self-signed certificates.
Register the server in the user's MCP client. Do not run a separate install step:
uvxdownloads and runs it on demand.Claude Code:
claude mcp add keycloak \ -e KEYCLOAK_URL=<url> \ -e KEYCLOAK_ADMIN_USERNAME=<user> -e KEYCLOAK_ADMIN_PASSWORD=<password> \ -- uvx --from git+https://github.com/Cayetano97/Keycloack-MCP-Server keycloak-mcp-serverReplace the two credential variables with
-e KEYCLOAK_CLIENT_ID=<id> -e KEYCLOAK_CLIENT_SECRET=<secret>for the client credentials flow. Add--scope userto make it available in every project.Any other client (Claude Desktop, Cursor, VS Code, ...): add this to its MCP config file (
claude_desktop_config.json,.cursor/mcp.json,.vscode/mcp.json, ...; VS Code uses a top-levelserverskey instead ofmcpServers):{ "mcpServers": { "keycloak": { "command": "uvx", "args": ["--from", "git+https://github.com/Cayetano97/Keycloack-MCP-Server", "keycloak-mcp-server"], "env": { "KEYCLOAK_URL": "<url>", "KEYCLOAK_ADMIN_USERNAME": "<user>", "KEYCLOAK_ADMIN_PASSWORD": "<password>" } } } }Merge into the existing file; do not overwrite other servers.
Verify.
Check that the server starts:
uvx --from git+https://github.com/Cayetano97/Keycloack-MCP-Server keycloak-mcp-server --helpmust print usage without errors.Check the credentials against Keycloak (replace the values; a JSON response with an
access_tokenmeans they work):curl -s -X POST "<url>/realms/master/protocol/openid-connect/token" \ -d grant_type=password -d client_id=admin-cli -d username=<user> -d password=<password>For the client credentials flow use
-d grant_type=client_credentials -d client_id=<id> -d client_secret=<secret>.Tell the user to restart or reload their MCP client, then call
list_realmsto confirm the tools work.
Handle secrets carefully. Never print the password or secret back in your replies, never commit them, and if the config file lives inside a git repository, make sure it is git-ignored (or use
--scope user/ the user's global config).
Common failures:
Symptom | Cause |
|
|
| Wrong credentials, or the client does not allow that grant (enable "Direct access grants" for password flow, "Service accounts roles" for client credentials). |
SSL certificate errors | Self-signed certificate: set |
Connection refused / timeout | Wrong |
| The account lacks the matching |
| The feature is disabled on the server or the Keycloak version is too old (see Compatibility). |
Installation
Option 1: Run directly with uvx (Recommended)
You can run the server without a manual installation using astral's uv:
uvx --from git+https://github.com/Cayetano97/Keycloack-MCP-Server keycloak-mcp-server(You can pass environment variables inline or keep them in your MCP config file. Note: the name keycloak-mcp-server on PyPI belongs to a different project, so install from this repository.)
Option 2: Install via pip
If you prefer a global or virtual environment installation:
pip install git+https://github.com/Cayetano97/Keycloack-MCP-Server.gitOption 3: Install from source (For development)
git clone https://github.com/Cayetano97/Keycloack-MCP-Server.git
cd Keycloack-MCP-Server
uv syncConfiguration
Set environment variables (or create a .env file based on .env.example):
# Required
export KEYCLOAK_URL=http://localhost:8080
# Authentication - Option A: Password flow
export KEYCLOAK_ADMIN_USERNAME=admin
export KEYCLOAK_ADMIN_PASSWORD=admin
# Authentication - Option B: Client credentials flow
export KEYCLOAK_CLIENT_ID=my-client
export KEYCLOAK_CLIENT_SECRET=my-secret
# Optional
export KEYCLOAK_ADMIN_REALM=master # default: master
export KEYCLOAK_VERIFY_SSL=true # default: trueUsage
Claude Code (stdio)
Add to your Claude Code MCP configuration (a project-level .mcp.json, or claude mcp add), or to claude_desktop_config.json for Claude Desktop:
{
"mcpServers": {
"keycloak": {
"command": "python",
"args": ["-m", "keycloak_mcp_server"],
"env": {
"KEYCLOAK_URL": "http://localhost:8080",
"KEYCLOAK_ADMIN_USERNAME": "admin",
"KEYCLOAK_ADMIN_PASSWORD": "admin"
}
}
}
}Or if installed with uv:
{
"mcpServers": {
"keycloak": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/keycloak-mcp-server",
"python",
"-m",
"keycloak_mcp_server"
],
"env": {
"KEYCLOAK_URL": "http://localhost:8080",
"KEYCLOAK_ADMIN_USERNAME": "admin",
"KEYCLOAK_ADMIN_PASSWORD": "admin"
}
}
}
}Command Line
# stdio mode (default)
python -m keycloak_mcp_server
# Streamable HTTP mode
python -m keycloak_mcp_server --transport streamable-http --host 127.0.0.1 --port 8080
# Using the entry point
keycloak-mcp-server --transport streamable-http --port 8080Examples
Once connected, you can use natural language to interact with Keycloak:
"List all realms" → calls
list_realms"Create a user called john in the master realm" → calls
create_user"Show me all clients in the production realm" → calls
list_clients"What roles does user X have?" → calls
get_user_role_mappings"Add the admin role to the developers group" → calls
add_group_realm_role_mappings
Project Structure
src/keycloak_mcp_server/
├── __init__.py # Package entry point
├── __main__.py # CLI entry point
├── config.py # Environment-based configuration
├── client.py # Async HTTP client with auto-auth
├── server.py # MCP server setup and tool registration
└── endpoints/ # Endpoint definitions by category
├── __init__.py # Base classes (EndpointDef, Param)
├── attack_detection.py
├── authentication.py
├── authorization_services.py
├── certificates.py
├── client_initial_access.py
├── client_registration_policy.py
├── client_role_mappings.py
├── client_scopes.py
├── clients.py
├── component.py
├── groups.py
├── identity_providers.py
├── key.py
├── organizations.py
├── protocol_mappers.py
├── realms.py
├── roles.py
├── roles_by_id.py
├── scope_mappings.py
├── users.py
└── workflows.pyLicense
MIT
Available Tools
415 toolsactivate_workflow_for_resourceC
Activate workflow for resource. Requires Keycloak 26.5+.
Inputs: type (required), realm (required), resource_id (required), workflow_id (required), +1 more.
add_auth_executionB
Add a new authentication execution to the realm.
Inputs: realm (required), execution_data (required).
add_client_client_scope_mappingsC
Add client-level roles to the client's scope.
Inputs: realm (required), roles (required), client_uuid (required), target_client_uuid (required).
add_client_default_scopeC
Add a default client scope to a client.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
add_client_optional_scopeC
Add an optional client scope to a client.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
add_client_protocol_mappers_batchB
Add multiple protocol mappers to a client in batch.
Inputs: realm (required), client_uuid (required), mappers_data (required).
add_client_realm_scope_mappingsC
Add realm-level roles to a client's scope.
Inputs: realm (required), roles (required), client_uuid (required).
add_client_role_compositesB
Add composites to a client role.
Inputs: realm (required), roles (required), role_name (required), client_uuid (required).
add_client_scope_client_scope_mappingsC
Add client-level roles to a client scope's scope.
Inputs: realm (required), roles (required), client_uuid (required), client_scope_id (required).
add_client_scope_protocol_mappers_batchC
Add multiple protocol mappers to a client scope in batch.
Inputs: realm (required), mappers_data (required), client_scope_id (required).
add_client_scope_realm_scope_mappingsB
Add realm-level roles to a client scope's scope.
Inputs: realm (required), roles (required), client_scope_id (required).
add_client_template_client_scope_mappingsC
Add client-level roles to the client's scope.
Inputs: realm (required), roles (required), client_uuid (required), client_scope_id (required).
add_client_template_protocol_mappers_batchD
Create multiple mappers.
Inputs: realm (required), mappers (required), client_scope_id (required).
add_client_template_realm_scope_mappingsC
Add a set of realm-level roles to the client's scope.
Inputs: realm (required), roles (required), client_scope_id (required).
add_default_default_client_scopeC
Add a client scope to the default default client scopes of the realm.
Inputs: realm (required), client_scope_id (required).
add_default_groupB
Add a group to the default groups of the realm.
Inputs: realm (required), group_id (required).
add_default_optional_client_scopeA
Add a client scope to the default optional client scopes of the realm.
Inputs: realm (required), client_scope_id (required).
add_execution_to_flowC
Add a new execution to an authentication flow.
Inputs: realm (required), flow_alias (required), execution_data (required).
add_flow_with_executionC
Add a new flow with a new execution to an existing authentication flow.
Inputs: realm (required), flow_data (required), flow_alias (required).
add_group_client_role_mappingsB
Add client-level role mappings to the group.
Inputs: realm (required), roles (required), group_id (required), client_id (required).
add_group_realm_role_mappingsB
Add realm-level role mappings to a group.
Inputs: realm (required), roles (required), group_id (required).
add_organization_group_client_role_mappingsC
Add client-level roles to the user or group role mapping. Requires Keycloak 26.7+.
Inputs: realm (required), roles (required), org_id (required), group_id (required), +1 more.
add_organization_group_memberB
Add a user to this organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), user_id (required), group_id (required).
add_organization_group_realm_role_mappingsC
Add realm-level role mappings to the user. Requires Keycloak 26.7+.
Inputs: realm (required), roles (required), org_id (required), group_id (required).
add_organization_memberB
Add a member to an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), member_data (required).
add_realm_role_compositesC
Add composites to a realm role.
Inputs: realm (required), roles (required), role_name (required).
add_role_by_id_compositesC
Add composites to a role by ID.
Inputs: realm (required), roles (required), role_id (required).
add_user_client_role_mappingsB
Add client-level role mappings to the user.
Inputs: realm (required), roles (required), user_id (required), client_id (required).
add_user_federated_identityB
Add a federated identity to a user.
Inputs: realm (required), user_id (required), provider (required), identity_data (required).
add_user_realm_role_mappingsB
Add realm-level role mappings to a user.
Inputs: realm (required), roles (required), user_id (required).
add_user_to_groupC
Add a user to a group.
Inputs: realm (required), user_id (required), group_id (required).
clear_admin_eventsC
Clear all admin events for the realm.
Inputs: realm (required).
clear_all_brute_force_failuresB
Clear all user login failures for the realm, allowing all users to attempt login again.
Inputs: realm (required).
clear_realm_eventsC
Clear all events for the realm.
Inputs: realm (required).
clear_user_brute_force_failuresA
Clear login failures for a specific user, allowing them to attempt login again.
Inputs: realm (required), user_id (required).
convert_client_descriptionC
Convert a client description (OpenID Connect or SAML metadata, JSON/XML/text) into a client representation.
Inputs: realm (required), description_data (required).
copy_auth_flowB
Copy an existing authentication flow under a new name.
Inputs: realm (required), flow_alias (required), new_name_data (required).
count_groupsC
Get the number of groups in the realm.
Inputs: realm (required), top, search.
count_organization_membersA
Returns number of members in the organization. Requires Keycloak 26.0+.
Inputs: realm (required), org_id (required).
count_organizationsB
Returns the organizations counts. Requires Keycloak 26.3+.
Inputs: realm (required), q, exact, search, +1 more.
count_user_groupsB
Get the number of groups a user belongs to.
Inputs: realm (required), user_id (required), search.
count_usersC
Get the number of users in the realm matching the given criteria.
Inputs: realm (required), q, email, exact, +10 more.
create_authenticator_configC
Create new authenticator configuration.
Inputs: realm (required), config_data (required).
create_auth_flowC
Create a new authentication flow in the realm.
Inputs: realm (required), flow_data (required).
create_authz_permissionC
Create an authorization permission for a client's resource server.
Inputs: realm (required), client_uuid (required), permission_data (required).
create_authz_policyC
Create an authorization policy for a client's resource server.
Inputs: realm (required), client_uuid (required), policy_data (required).
create_authz_resourceC
Create a resource in a client's resource server.
Inputs: realm (required), client_uuid (required), resource_data (required).
create_authz_scopeC
Create an authorization scope in a client's resource server.
Inputs: realm (required), scope_data (required), client_uuid (required).
create_clientB
Create a new client in the realm.
Inputs: realm (required), client_data (required).
create_client_initial_access_tokenB
Create a new client initial access token.
Inputs: realm (required), token_config (required).
create_client_protocol_mapperC
Create a protocol mapper for a client.
Inputs: realm (required), client_uuid (required), mapper_data (required).
create_client_roleC
Create a new client role.
Inputs: realm (required), role_data (required), client_uuid (required).
create_client_scopeC
Create a new client scope.
Inputs: realm (required), scope_data (required).
create_client_scope_protocol_mapperC
Create a protocol mapper for a client scope.
Inputs: realm (required), mapper_data (required), client_scope_id (required).
create_client_templateC
Create a new client template (legacy).
Inputs: realm (required), template_data (required).
create_client_template_protocol_mapperD
Create a mapper.
Inputs: realm (required), mapper_data (required), client_scope_id (required).
create_componentD
Create a new component.
Inputs: realm (required), component_data (required).
create_execution_configB
Create a new configuration for an authentication execution.
Inputs: realm (required), config_data (required), execution_id (required).
create_groupC
Create a new group in the realm.
Inputs: realm (required), group_data (required).
create_group_childC
Create a child group under a parent group.
Inputs: realm (required), group_id (required), group_data (required).
create_identity_providerB
Create a new identity provider.
Inputs: realm (required), provider_data (required).
create_identity_provider_mapperC
Create a new mapper for an identity provider.
Inputs: alias (required), realm (required), mapper_data (required).
create_organizationC
Create a new organization. Requires Keycloak 25+.
Inputs: realm (required), org_data (required).
create_organization_groupA
Creates a new top-level group or moves an existing group to top-level. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_data (required).
create_organization_group_childC
Create or move a subgroup. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required), group_data (required).
create_realmC
Create a new realm.
Inputs: realm_data (required).
create_realm_roleC
Create a new realm role.
Inputs: realm (required), role_data (required).
create_userC
Create a new user in the realm.
Inputs: realm (required), user_data (required).
create_workflowC
Create workflow. Requires Keycloak 26.5+.
Inputs: realm (required), workflow_data (required).
deactivate_workflow_for_resourceC
Deactivate workflow for resource. Requires Keycloak 26.5+.
Inputs: type (required), realm (required), resource_id (required), workflow_id (required).
delete_authenticator_configB
Delete an authenticator configuration by ID.
Inputs: id (required), realm (required).
delete_auth_executionC
Delete an authentication execution by ID.
Inputs: realm (required), execution_id (required).
delete_auth_flowB
Delete an authentication flow by ID.
Inputs: id (required), realm (required).
delete_authz_resourceC
Delete a resource of a client's resource server.
Inputs: realm (required), client_uuid (required), resource_id (required).
delete_authz_scopeC
Delete an authorization scope of a client's resource server.
Inputs: realm (required), scope_id (required), client_uuid (required).
delete_clientC
Delete a client.
Inputs: realm (required), client_uuid (required).
delete_client_initial_access_tokenB
Delete a client initial access token.
Inputs: id (required), realm (required).
delete_client_protocol_mapperB
Delete a protocol mapper from a client.
Inputs: realm (required), mapper_id (required), client_uuid (required).
delete_client_roleB
Delete a client role.
Inputs: realm (required), role_name (required), client_uuid (required).
delete_client_scopeC
Delete a client scope.
Inputs: realm (required), client_scope_id (required).
delete_client_scope_protocol_mapperB
Delete a protocol mapper from a client scope.
Inputs: realm (required), mapper_id (required), client_scope_id (required).
delete_client_templateC
Delete a client template (legacy).
Inputs: realm (required), client_scope_id (required).
delete_client_template_protocol_mapperC
Delete the mapper.
Inputs: realm (required), mapper_id (required), client_scope_id (required).
delete_componentC
Delete a component.
Inputs: realm (required), component_id (required).
delete_groupC
Delete a group.
Inputs: realm (required), group_id (required).
delete_group_client_role_mappingsB
Delete client-level role mappings from the group.
Inputs: realm (required), roles (required), group_id (required), client_id (required).
delete_identity_providerB
Delete an identity provider by alias.
Inputs: alias (required), realm (required).
delete_identity_provider_mapperB
Delete a mapper for an identity provider.
Inputs: alias (required), realm (required), mapper_id (required).
delete_organizationC
Delete an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required).
delete_organization_groupC
Delete the organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required).
delete_organization_invitationC
Delete an invitation. Requires Keycloak 26.5+.
Inputs: realm (required), org_id (required), invitation_id (required).
delete_realmB
Delete a realm.
Inputs: realm (required).
delete_realm_localization_localeA
Delete all localization texts for a locale in the realm.
Inputs: realm (required), locale (required).
delete_realm_localization_textB
Delete a specific localization text by locale and key.
Inputs: key (required), realm (required), locale (required).
delete_realm_roleC
Delete a realm role.
Inputs: realm (required), role_name (required).
delete_realm_sessionC
Remove a specific user session.
Inputs: realm (required), session (required), isOffline.
delete_required_actionC
Delete a required action by alias.
Inputs: alias (required), realm (required).
delete_required_action_configB
Delete the configuration for a required action by alias.
Inputs: alias (required), realm (required).
delete_role_by_idB
Delete a role by ID.
Inputs: realm (required), role_id (required).
delete_userC
Delete a user.
Inputs: realm (required), user_id (required).
delete_user_client_role_mappingsB
Delete client-level role mappings from the user.
Inputs: realm (required), roles (required), user_id (required), client_id (required).
delete_user_credentialC
Delete a credential for a user.
Inputs: realm (required), user_id (required), credential_id (required).
delete_workflowC
Delete workflow. Requires Keycloak 26.5+.
Inputs: realm (required), workflow_id (required).
disable_user_credential_typesC
Disable credential types for a user.
Inputs: realm (required), user_id (required), credential_types (required).
download_client_keystoreC
Download the keystore file for a client certificate, using the provided keystore configuration.
Inputs: attr (required), realm (required), config (required), client_uuid (required).
evaluate_authz_permissionsC
Evaluate authorization permissions for a client's resource server.
Inputs: realm (required), client_uuid (required), evaluation_request (required).
evaluate_authz_policiesC
Evaluate authorization policies for a client's resource server.
Inputs: realm (required), client_uuid (required), evaluation_request (required).
export_identity_provider_broker_configC
Export the broker configuration for an identity provider.
Inputs: alias (required), realm (required), format.
generate_and_download_client_keypairB
Generate a new keypair and certificate for the client, and download the resulting keystore.
Inputs: attr (required), realm (required), config (required), client_uuid (required).
generate_client_certificateC
Generate a new certificate and keypair for a client attribute.
Inputs: attr (required), realm (required), client_uuid (required).
generate_client_example_saml_responseB
Create JSON with an example SAML response as payload. Requires Keycloak 26.7+.
Inputs: realm (required), client_uuid (required), scope, userId, +1 more.
generate_client_registration_access_tokenA
Generate a new registration access token for a client.
Inputs: realm (required), client_uuid (required).
generate_client_secretB
Generate a new secret for a client.
Inputs: realm (required), client_uuid (required).
generate_example_access_tokenC
Generate an example access token for evaluating client scopes.
Inputs: realm (required), client_uuid (required), scope, userId, +1 more.
generate_example_id_tokenC
Generate an example ID token for evaluating client scopes.
Inputs: realm (required), client_uuid (required), scope, userId, +1 more.
generate_example_userinfoC
Generate example userinfo for evaluating client scopes.
Inputs: realm (required), client_uuid (required), scope, userId.
get_authenticator_configB
Get an authenticator configuration by ID.
Inputs: id (required), realm (required).
get_authenticator_config_descriptionB
Get the configuration description for a specific authenticator provider.
Inputs: realm (required), provider_id (required).
get_auth_executionC
Get an authentication execution by ID.
Inputs: realm (required), execution_id (required).
get_auth_flowB
Get an authentication flow by ID.
Inputs: id (required), realm (required).
get_authz_resourceC
Get a resource of a client's resource server by ID.
Inputs: realm (required), client_uuid (required), resource_id (required).
get_authz_resource_attributesC
Get the attributes of a resource of a client's resource server.
Inputs: realm (required), client_uuid (required), resource_id (required).
get_authz_resource_serverC
Get the authorization services (resource server) settings of a client.
Inputs: realm (required), client_uuid (required).
get_authz_resource_server_settingsA
Export the authorization settings (resources, scopes, policies) of a client's resource server.
Inputs: realm (required), client_uuid (required).
get_authz_scopeC
Get an authorization scope of a client's resource server by ID.
Inputs: realm (required), scope_id (required), client_uuid (required).
get_available_client_client_scope_mappingsC
The available client-level roles Returns the roles for the client that can be associated with the client's scope.
Inputs: realm (required), client_uuid (required), target_client_uuid (required).
get_available_client_realm_scope_mappingsB
Get realm-level roles available to add to a client's scope.
Inputs: realm (required), client_uuid (required).
get_available_client_scope_client_scope_mappingsB
Get available client-level roles that can be added to a client scope's scope.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
get_available_client_scope_realm_scope_mappingsA
Get realm-level roles available to add to a client scope's scope.
Inputs: realm (required), client_scope_id (required).
get_available_client_template_client_scope_mappingsC
The available client-level roles Returns the roles for the client that can be associated with the client's scope.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
get_available_client_template_realm_scope_mappingsC
Get realm-level roles that are available to attach to this client's scope.
Inputs: realm (required), client_scope_id (required).
get_available_group_client_rolesB
Get available client-level roles that can be mapped to the group.
Inputs: realm (required), group_id (required), client_id (required).
get_available_group_realm_rolesA
Get realm-level roles available to map to a group.
Inputs: realm (required), group_id (required).
get_available_organization_group_client_rolesB
Get available client-level roles that can be mapped to the user or group. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required), client_id (required).
get_available_organization_group_realm_rolesC
Get realm-level roles that can be mapped. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required).
get_available_user_client_rolesB
Get available client-level roles that can be mapped to the user.
Inputs: realm (required), user_id (required), client_id (required).
get_available_user_realm_rolesB
Get realm-level roles available to map to a user.
Inputs: realm (required), user_id (required).
get_clientB
Get a client by UUID.
Inputs: realm (required), client_uuid (required).
get_client_client_scope_mappingsC
Get the roles associated with a client's scope Returns roles for the client.
Inputs: realm (required), client_uuid (required), target_client_uuid (required).
get_client_evaluated_protocol_mappersB
Get evaluated protocol mappers for a client.
Inputs: realm (required), client_uuid (required), scope.
get_client_granted_scope_mappingsC
Get granted scope mappings for a client by role container.
Inputs: realm (required), client_uuid (required), role_container_id (required).
get_client_installation_providerC
Get the installation provider configuration for a client.
Inputs: realm (required), client_uuid (required), provider_id (required).
get_client_key_infoC
Get key information for a client certificate attribute, including certificate and key metadata.
Inputs: attr (required), realm (required), client_uuid (required).
get_client_management_permissionsB
Get management permissions for a client.
Inputs: realm (required), client_uuid (required).
get_client_not_granted_scope_mappingsC
Get not-granted scope mappings for a client by role container.
Inputs: realm (required), client_uuid (required), role_container_id (required).
get_client_offline_session_countB
Get application offline session count Returns a number of offline user sessions associated with this client { "count": number }.
Inputs: realm (required), client_uuid (required).
get_client_policiesC
Get the client policies of the realm.
Inputs: realm (required), include-global-policies.
get_client_profilesB
Get the client profiles of the realm.
Inputs: realm (required), include-global-profiles.
get_client_protocol_mapperA
Get a protocol mapper for a client by ID.
Inputs: realm (required), mapper_id (required), client_uuid (required).
get_client_realm_scope_mappingsB
Get realm-level roles associated with a client's scope.
Inputs: realm (required), client_uuid (required).
get_client_roleC
Get a client role by name.
Inputs: realm (required), role_name (required), client_uuid (required).
get_client_role_client_compositesC
Get client-level composites of a client role for a specific target client.
Inputs: realm (required), role_name (required), client_uuid (required), target_client_uuid (required).
get_client_role_compositesC
Get composites of a client role.
Inputs: realm (required), role_name (required), client_uuid (required).
get_client_role_permissionsB
Get management permissions for a client role.
Inputs: realm (required), role_name (required), client_uuid (required).
get_client_role_realm_compositesC
Get realm-level composites of a client role.
Inputs: realm (required), role_name (required), client_uuid (required).
get_client_scopeC
Get a client scope by ID.
Inputs: realm (required), client_scope_id (required).
get_client_scope_client_scope_mappingsB
Get client-level roles associated with a client scope's scope.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
get_client_scope_mappings_allC
Get all scope mappings for a client.
Inputs: realm (required), client_uuid (required).
get_client_scope_protocol_mapperB
Get a protocol mapper for a client scope by ID.
Inputs: realm (required), mapper_id (required), client_scope_id (required).
get_client_scope_realm_scope_mappingsC
Get realm-level roles associated with a client scope's scope.
Inputs: realm (required), client_scope_id (required).
get_client_scope_scope_mappingsC
Get all scope mappings for a client scope.
Inputs: realm (required), client_scope_id (required).
get_client_secretC
Get the client secret for a client.
Inputs: realm (required), client_uuid (required).
get_client_service_account_userB
Get the service account user for a client.
Inputs: realm (required), client_uuid (required).
get_client_session_countB
Get the number of active sessions for a client.
Inputs: realm (required), client_uuid (required).
get_client_session_statsC
Get client session stats for the realm.
Inputs: realm (required).
get_client_templateC
Get a client template by ID (legacy).
Inputs: realm (required), client_scope_id (required).
get_client_template_client_scope_mappingsC
Get the roles associated with a client's scope Returns roles for the client.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
get_client_template_protocol_mapperD
Get mapper by id.
Inputs: realm (required), mapper_id (required), client_scope_id (required).
get_client_template_realm_scope_mappingsC
Get realm-level roles associated with the client's scope.
Inputs: realm (required), client_scope_id (required).
get_client_template_scope_mappings_allC
Get all scope mappings for the client.
Inputs: realm (required), client_scope_id (required).
get_componentB
Get a component by ID.
Inputs: realm (required), component_id (required).
get_effective_client_client_scope_mappingsC
Get effective client roles Returns the roles for the client that are associated with the client's scope.
Inputs: realm (required), client_uuid (required), target_client_uuid (required), briefRepresentation.
get_effective_client_realm_scope_mappingsB
Get effective (composite) realm-level roles for a client's scope.
Inputs: realm (required), client_uuid (required), briefRepresentation.
get_effective_client_scope_client_scope_mappingsC
Get effective (composite) client-level roles for a client scope's scope.
Inputs: realm (required), client_uuid (required), client_scope_id (required), briefRepresentation.
get_effective_client_scope_realm_scope_mappingsA
Get effective (composite) realm-level roles for a client scope's scope.
Inputs: realm (required), client_scope_id (required), briefRepresentation.
get_effective_client_template_client_scope_mappingsC
Get effective client roles Returns the roles for the client that are associated with the client's scope.
Inputs: realm (required), client_uuid (required), client_scope_id (required), briefRepresentation.
get_effective_client_template_realm_scope_mappingsC
Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.
Inputs: realm (required), client_scope_id (required), briefRepresentation.
get_effective_group_client_role_mappingsB
Get effective (composite) client-level role mappings for the group.
Inputs: realm (required), group_id (required), client_id (required), briefRepresentation.
get_effective_group_realm_role_mappingsB
Get effective (composite) realm-level role mappings for a group.
Inputs: realm (required), group_id (required), briefRepresentation.
get_effective_organization_group_client_role_mappingsB
Get effective client-level role mappings This recurses any composite roles. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required), client_id (required), +1 more.
get_effective_organization_group_realm_role_mappingsB
Get effective realm-level role mappings This will recurse all composite roles to get the result. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required), briefRepresentation.
get_effective_user_client_role_mappingsB
Get effective (composite) client-level role mappings for the user.
Inputs: realm (required), user_id (required), client_id (required), briefRepresentation.
get_effective_user_realm_role_mappingsB
Get effective (composite) realm-level role mappings for a user.
Inputs: realm (required), user_id (required), briefRepresentation.
get_execution_configB
Get the configuration for an authentication execution by execution ID and config ID.
Inputs: id (required), realm (required), execution_id (required).
get_flow_executionsC
Get all executions for an authentication flow.
Inputs: realm (required), flow_alias (required).
get_groupA
Get a group by ID.
Inputs: realm (required), group_id (required).
get_group_by_pathC
Get a group by its path.
Inputs: path (required), realm (required).
get_group_client_role_mappingsC
Get client-level role mappings for the group.
Inputs: realm (required), group_id (required), client_id (required).
get_group_management_permissionsB
Get management permissions for a group.
Inputs: realm (required), group_id (required).
get_group_realm_role_mappingsB
Get realm-level role mappings for a group.
Inputs: realm (required), group_id (required).
get_group_role_mappingsC
Get all role mappings for a group.
Inputs: realm (required), group_id (required).
get_identity_providerC
Get an identity provider by alias.
Inputs: alias (required), realm (required).
get_identity_provider_by_provider_idB
Get an identity provider by provider ID.
Inputs: realm (required), provider_id (required).
get_identity_provider_mapperB
Get a mapper for an identity provider by mapper ID.
Inputs: alias (required), realm (required), mapper_id (required).
get_identity_provider_permissionsC
Get the management permissions for an identity provider.
Inputs: alias (required), realm (required).
get_organizationA
Get an organization by ID. Requires Keycloak 25+.
Inputs: realm (required), org_id (required).
get_organization_groupC
Get organization group representation. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required), subGroupsCount.
get_organization_group_by_pathC
Get organization group by path. Requires Keycloak 26.6+.
Inputs: path (required), realm (required), org_id (required), subGroupsCount, +1 more.
get_organization_group_client_role_mappingsC
Get client-level role mappings for the user or group, and the app. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required), client_id (required).
get_organization_group_realm_role_mappingsC
Get realm-level role mappings. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required).
get_organization_group_role_mappingsC
Get role mappings. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), group_id (required).
get_organization_identity_providerA
Get an identity provider linked to an organization by alias. Requires Keycloak 25+.
Inputs: alias (required), realm (required), org_id (required).
get_organization_invitationB
Get invitation by ID. Requires Keycloak 26.5+.
Inputs: realm (required), org_id (required), invitation_id (required).
get_organization_memberB
Get a specific member of an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), user_id (required).
get_per_client_config_descriptionB
Get the per-client configuration description for authentication.
Inputs: realm (required).
get_realmC
Get a realm by name.
Inputs: realm (required).
get_realm_events_configB
Get the events configuration for the realm.
Inputs: realm (required).
get_realm_keysB
Get the keys for the realm, including active and passive keys and their details.
Inputs: realm (required).
get_realm_localization_textA
Get a specific localization text by locale and key.
Inputs: key (required), realm (required), locale (required).
get_realm_localization_textsA
Get all localization texts for a locale in the realm.
Inputs: realm (required), locale (required), useRealmDefaultLocaleFallback.
get_realm_roleB
Get a realm role by name.
Inputs: realm (required), role_name (required).
get_realm_role_client_compositesB
Get client-level composites of a realm role for a specific client.
Inputs: realm (required), role_name (required), client_uuid (required).
get_realm_role_compositesC
Get composites of a realm role.
Inputs: realm (required), role_name (required).
get_realm_role_permissionsB
Get management permissions for a realm role.
Inputs: realm (required), role_name (required).
get_realm_role_realm_compositesA
Get realm-level composites of a realm role.
Inputs: realm (required), role_name (required).
get_required_actionB
Get a required action by alias.
Inputs: alias (required), realm (required).
get_required_action_configB
Get the configuration for a required action by alias.
Inputs: alias (required), realm (required).
get_required_action_config_descriptionB
Get the configuration description for a required action by alias.
Inputs: alias (required), realm (required).
get_role_by_idB
Get a role by ID.
Inputs: realm (required), role_id (required).
get_role_by_id_client_compositesA
Get client-level composites of a role by ID for a specific client.
Inputs: realm (required), role_id (required), client_uuid (required).
get_role_by_id_compositesC
Get composites of a role by ID.
Inputs: realm (required), role_id (required), max, first, +1 more.
get_role_by_id_permissionsB
Get management permissions for a role by ID.
Inputs: realm (required), role_id (required).
get_role_by_id_realm_compositesC
Get realm-level composites of a role by ID.
Inputs: realm (required), role_id (required).
get_rotated_client_secretC
Get the rotated secret for a client.
Inputs: realm (required), client_uuid (required).
get_userC
Get a user by ID.
Inputs: realm (required), user_id (required), userProfileMetadata.
get_user_brute_force_statusB
Get the brute force detection status for a specific user, including number of failures and disabled state.
Inputs: realm (required), user_id (required).
get_user_client_role_mappingsB
Get client-level role mappings for the user.
Inputs: realm (required), user_id (required), client_id (required).
get_user_profileC
Get the user profile configuration for the realm.
Inputs: realm (required).
get_user_profile_metadataB
Get the user profile metadata (attribute definitions and groups) of the realm.
Inputs: realm (required).
get_user_realm_role_mappingsC
Get realm-level role mappings for a user.
Inputs: realm (required), user_id (required).
get_user_role_mappingsC
Get all role mappings for a user.
Inputs: realm (required), user_id (required).
get_users_management_permissionsC
Get users management permissions for the realm.
Inputs: realm (required).
get_user_unmanaged_attributesB
Get the unmanaged attributes of a user. Requires Keycloak 25+.
Inputs: realm (required), user_id (required).
get_workflowC
Get workflow. Requires Keycloak 26.5+.
Inputs: realm (required), workflow_id (required), includeId.
impersonate_userC
Impersonate a user.
Inputs: realm (required), user_id (required).
import_authz_resource_serverB
Import authorization settings (resources, scopes, policies) into a client's resource server. Requires Keycloak 26.5+.
Inputs: realm (required), client_uuid (required), resource_server_data (required).
import_identity_provider_configC
Import identity provider from JSON body.
Inputs: realm (required), config_data (required).
invalidate_rotated_client_secretB
Invalidate the rotated secret for a client.
Inputs: realm (required), client_uuid (required).
invite_existing_user_to_organizationB
Invites an existing user to the organization, using the specified user id. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), invitation_data (required).
invite_user_to_organizationB
Invites an existing user or sends a registration link to a new user, based on the provided e-mail address. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), invitation_data (required), client_id.
link_organization_identity_providerC
Link an identity provider to an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), idp_data (required).
list_admin_eventsC
List admin events for the realm.
Inputs: realm (required), max, first, dateTo, +9 more.
list_authenticator_providersB
List all authenticator providers available in the realm.
Inputs: realm (required).
list_auth_flowsB
List all authentication flows in the realm.
Inputs: realm (required).
list_authz_permission_providersC
List the available permission provider types of a client's resource server.
Inputs: realm (required), client_uuid (required).
list_authz_permissionsC
List the authorization permissions of a client's resource server.
Inputs: realm (required), client_uuid (required), max, name, +9 more.
list_authz_policiesC
List the authorization policies of a client's resource server.
Inputs: realm (required), client_uuid (required), max, name, +9 more.
list_authz_policy_providersC
List the available policy provider types of a client's resource server.
Inputs: realm (required), client_uuid (required).
list_authz_resource_permissionsB
List the permissions that apply to a resource of a client's resource server.
Inputs: realm (required), client_uuid (required), resource_id (required).
list_authz_resourcesC
List the resources of a client's resource server.
Inputs: realm (required), client_uuid (required), _id, max, +9 more.
list_authz_resource_scopesC
List the scopes of a resource of a client's resource server.
Inputs: realm (required), client_uuid (required), resource_id (required).
list_authz_scope_permissionsC
List the permissions that apply to an authorization scope.
Inputs: realm (required), scope_id (required), client_uuid (required).
list_authz_scope_resourcesC
List the resources that use an authorization scope.
Inputs: realm (required), scope_id (required), client_uuid (required).
list_authz_scopesC
List the authorization scopes of a client's resource server.
Inputs: realm (required), client_uuid (required), max, name, +2 more.
list_client_authenticator_providersA
List all client authenticator providers available in the realm.
Inputs: realm (required).
list_client_default_scopesC
List default client scopes for a client.
Inputs: realm (required), client_uuid (required).
list_client_initial_access_tokensB
List all client initial access tokens for the realm.
Inputs: realm (required).
list_client_mappers_by_protocolC
List protocol mappers for a client filtered by protocol.
Inputs: realm (required), protocol (required), client_uuid (required).
list_client_offline_sessionsB
Get offline sessions for client. Returns a list of offline user sessions associated with this client.
Inputs: realm (required), client_uuid (required), max, first.
list_client_optional_scopesC
List optional client scopes for a client.
Inputs: realm (required), client_uuid (required).
list_client_protocol_mappersB
List all protocol mappers for a client.
Inputs: realm (required), client_uuid (required).
list_client_registration_policy_providersA
List all client registration policy providers for the realm.
Inputs: realm (required).
list_client_role_groupsB
List groups that have the specified client role.
Inputs: realm (required), role_name (required), client_uuid (required), max, +2 more.
list_client_rolesC
List all roles for a client.
Inputs: realm (required), client_uuid (required), max, first, +2 more.
list_client_role_usersB
List users that have the specified client role.
Inputs: realm (required), role_name (required), client_uuid (required), max, +2 more.
list_clientsC
List all clients in the realm.
Inputs: realm (required), q, max, first, +3 more.
list_client_scope_mappers_by_protocolA
List protocol mappers for a client scope filtered by protocol.
Inputs: realm (required), protocol (required), client_scope_id (required).
list_client_scope_protocol_mappersA
List all protocol mappers for a client scope.
Inputs: realm (required), client_scope_id (required).
list_client_scopesB
List all client scopes for the realm.
Inputs: realm (required).
list_client_template_mappers_by_protocolC
Get mappers by name for a specific protocol.
Inputs: realm (required), protocol (required), client_scope_id (required).
list_client_template_protocol_mappersD
Get mappers.
Inputs: realm (required), client_scope_id (required).
list_client_templatesA
List all client templates for the realm (legacy).
Inputs: realm (required).
list_client_typesB
List all client types available in the current realm.
Inputs: realm (required).
list_client_user_sessionsB
List active user sessions for a client.
Inputs: realm (required), client_uuid (required), max, first.
list_componentsB
List all components for the realm, optionally filtered by name, parent, or type.
Inputs: realm (required), name, type, parent, +1 more.
list_credential_registratorsC
List credential registrators for the realm.
Inputs: realm (required).
list_default_default_client_scopesC
List default default client scopes for the realm.
Inputs: realm (required).
list_default_groupsB
List default groups for the realm.
Inputs: realm (required).
list_default_optional_client_scopesB
List default optional client scopes for the realm.
Inputs: realm (required).
list_form_action_providersC
List all form action providers available in the realm.
Inputs: realm (required).
list_form_providersB
List all form providers available in the realm.
Inputs: realm (required).
list_group_childrenC
List children of a group.
Inputs: realm (required), group_id (required), max, exact, +4 more.
list_group_membersC
List members of a group.
Inputs: realm (required), group_id (required), max, first, +1 more.
list_groupsC
List all groups for the realm.
Inputs: realm (required), q, max, exact, +5 more.
list_identity_provider_mappersB
List all mappers for an identity provider.
Inputs: alias (required), realm (required).
list_identity_provider_mapper_typesB
List available mapper types for an identity provider.
Inputs: alias (required), realm (required).
list_identity_providersC
List all identity providers for the realm.
Inputs: realm (required), max, type, first, +4 more.
list_member_organizationsB
Returns the organizations associated with the user that has the specified id. Requires Keycloak 26.0+.
Inputs: realm (required), org_id (required), member_id (required), briefRepresentation.
list_organization_group_childrenB
Get subgroups of this organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required), max, +4 more.
list_organization_group_membersB
Get members of this organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required), max, +2 more.
list_organization_groupsC
Get organization groups. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), q, max, +6 more.
list_organization_identity_provider_groupsB
Returns organization groups for the identity provider. Requires Keycloak 26.6+.
Inputs: alias (required), realm (required), org_id (required), q, +6 more.
list_organization_identity_providersB
List identity providers linked to an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required).
list_organization_invitationsC
Get invitations for the organization. Requires Keycloak 26.5+.
Inputs: realm (required), org_id (required), max, email, +5 more.
list_organization_member_groupsB
Returns the organization group memberships for a member with the specified id. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), member_id (required), max, +3 more.
list_organization_membersB
List members of an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), max, exact, +4 more.
list_organizationsA
List organizations for the realm, optionally filtered by search criteria. Requires Keycloak 25+.
Inputs: realm (required), q, max, exact, +4 more.
list_realm_eventsC
List events for the realm.
Inputs: realm (required), max, type, user, +6 more.
list_realm_localization_localesB
List all locales that have localization texts configured for the realm.
Inputs: realm (required).
list_realm_role_groupsB
List groups that have the specified realm role.
Inputs: realm (required), role_name (required), max, first, +1 more.
list_realm_rolesC
List all roles for the realm.
Inputs: realm (required), max, first, search, +1 more.
list_realm_role_usersC
List users that have the specified realm role.
Inputs: realm (required), role_name (required), max, first, +1 more.
list_realmsB
List all realms accessible to the caller.
Inputs: briefRepresentation.
list_required_actionsC
List all required actions in the realm.
Inputs: realm (required).
list_resource_scheduled_workflowsC
List scheduled workflows for resource. Requires Keycloak 26.5+.
Inputs: realm (required), resource_id (required).
list_sub_component_typesC
List sub-component types available for a component.
Inputs: realm (required), component_id (required), type.
list_unregistered_required_actionsB
List all unregistered required actions in the realm.
Inputs: realm (required).
list_user_configured_credential_typesC
List configured user storage credential types for a user.
Inputs: realm (required), user_id (required).
list_user_consentsC
List consents granted by a user.
Inputs: realm (required), user_id (required).
list_user_credentialsB
List credentials for a user.
Inputs: realm (required), user_id (required).
list_user_federated_identitiesB
List federated identities for a user.
Inputs: realm (required), user_id (required).
list_user_groupsB
List groups that a user belongs to.
Inputs: realm (required), user_id (required), max, first, +2 more.
list_user_offline_sessionsB
List offline sessions for a user and client.
Inputs: realm (required), user_id (required), client_uuid (required).
list_user_organizations_by_memberB
Returns the organizations associated with the user that has the specified id. Requires Keycloak 26.0+.
Inputs: realm (required), member_id (required), briefRepresentation.
list_usersB
List users in the realm, with optional filtering.
Inputs: realm (required), q, max, email, +13 more.
list_user_sessionsC
List sessions for a user.
Inputs: realm (required), user_id (required).
list_workflowsC
List workflows. Requires Keycloak 26.5+.
Inputs: realm (required), max, exact, first, +1 more.
logout_all_realm_sessionsB
Log out all sessions for the realm.
Inputs: realm (required).
logout_userA
Log out a user by revoking all sessions.
Inputs: realm (required), user_id (required).
lower_auth_execution_priorityB
Lower the priority of an authentication execution (move it down in the flow).
Inputs: realm (required), execution_id (required).
lower_required_action_priorityA
Lower the priority of a required action (move it down in the list).
Inputs: alias (required), realm (required).
migrate_workflow_scheduled_resourcesB
Migrate scheduled resources from one step to another. Requires Keycloak 26.6+.
Inputs: realm (required), to, from.
move_user_credential_afterC
Move a user credential after another credential.
Inputs: realm (required), user_id (required), credential_id (required), after_credential_id (required).
move_user_credential_to_firstB
Move a user credential to the first position.
Inputs: realm (required), user_id (required), credential_id (required).
partial_export_realmC
Partial export of the realm configuration.
Inputs: realm (required), exportClients, exportGroupsAndRoles.
partial_import_realmC
Partial import into the realm.
Inputs: realm (required), import_data (required).
push_client_revocation_policyB
Push the revocation policy to all registered cluster nodes for the client.
Inputs: realm (required), client_uuid (required).
push_realm_revocation_policyA
Push the realm's revocation policy to any client that has an admin URL.
Inputs: realm (required).
raise_auth_execution_priorityC
Raise the priority of an authentication execution (move it up in the flow).
Inputs: realm (required), execution_id (required).
raise_required_action_priorityB
Raise the priority of a required action (move it up in the list).
Inputs: alias (required), realm (required).
register_client_cluster_nodeB
Register a cluster node with the client.
Inputs: realm (required), node_data (required), client_uuid (required).
register_required_actionC
Register a new required action in the realm.
Inputs: realm (required), action_data (required).
reload_identity_provider_keysB
Reaload keys for the identity provider if the provider supports it, "true" is returned if reload was performed, "false" if not.
Inputs: alias (required), realm (required).
remove_client_client_scope_mappingsC
Remove client-level roles from the client's scope.
Inputs: realm (required), roles (required), client_uuid (required), target_client_uuid (required).
remove_client_default_scopeB
Remove a default client scope from a client.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
remove_client_optional_scopeA
Remove an optional client scope from a client.
Inputs: realm (required), client_uuid (required), client_scope_id (required).
remove_client_realm_scope_mappingsB
Remove realm-level roles from a client's scope.
Inputs: realm (required), roles (required), client_uuid (required).
remove_client_role_compositesB
Remove composites from a client role.
Inputs: realm (required), roles (required), role_name (required), client_uuid (required).
remove_client_scope_client_scope_mappingsC
Remove client-level roles from a client scope's scope.
Inputs: realm (required), roles (required), client_uuid (required), client_scope_id (required).
remove_client_scope_realm_scope_mappingsC
Remove realm-level roles from a client scope's scope.
Inputs: realm (required), roles (required), client_scope_id (required).
remove_client_template_client_scope_mappingsC
Remove client-level roles from the client's scope.
Inputs: realm (required), roles (required), client_uuid (required), client_scope_id (required).
remove_client_template_realm_scope_mappingsC
Remove a set of realm-level roles from the client's scope.
Inputs: realm (required), roles (required), client_scope_id (required).
remove_default_default_client_scopeB
Remove a client scope from the default default client scopes of the realm.
Inputs: realm (required), client_scope_id (required).
remove_default_groupB
Remove a group from the default groups of the realm.
Inputs: realm (required), group_id (required).
remove_default_optional_client_scopeB
Remove a client scope from the default optional client scopes of the realm.
Inputs: realm (required), client_scope_id (required).
remove_group_realm_role_mappingsC
Remove realm-level role mappings from a group.
Inputs: realm (required), roles (required), group_id (required).
remove_organization_group_client_role_mappingsC
Delete client-level roles from user or group role mapping. Requires Keycloak 26.7+.
Inputs: realm (required), roles (required), org_id (required), group_id (required), +1 more.
remove_organization_group_memberB
Remove a user from this organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), user_id (required), group_id (required).
remove_organization_group_realm_role_mappingsC
Delete realm-level role mappings. Requires Keycloak 26.7+.
Inputs: realm (required), roles (required), org_id (required), group_id (required).
remove_organization_memberC
Remove a member from an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), user_id (required).
remove_realm_role_compositesC
Remove composites from a realm role.
Inputs: realm (required), roles (required), role_name (required).
remove_role_by_id_compositesB
Remove composites from a role by ID.
Inputs: realm (required), roles (required), role_id (required).
remove_user_federated_identityB
Remove a federated identity from a user.
Inputs: realm (required), user_id (required), provider (required).
remove_user_from_groupB
Remove a user from a group.
Inputs: realm (required), user_id (required), group_id (required).
remove_user_realm_role_mappingsB
Remove realm-level role mappings from a user.
Inputs: realm (required), roles (required), user_id (required).
resend_organization_invitationC
Resend an invitation. Requires Keycloak 26.5+.
Inputs: realm (required), org_id (required), invitation_id (required).
reset_user_passwordC
Reset a user's password.
Inputs: realm (required), user_id (required), credential_data (required).
revoke_user_consentB
Revoke consent and offline tokens for a particular client from a user.
Inputs: realm (required), user_id (required), client_id (required).
search_authz_permissionsC
Find an authorization permission by name in a client's resource server.
Inputs: realm (required), client_uuid (required), name, fields.
search_authz_policiesB
Find an authorization policy by name in a client's resource server.
Inputs: realm (required), client_uuid (required), name, fields.
search_authz_resourcesC
Find a resource by name in a client's resource server.
Inputs: realm (required), client_uuid (required), name.
search_authz_scopesA
Find an authorization scope by name in a client's resource server.
Inputs: realm (required), client_uuid (required), name.
send_user_actions_emailB
Send required actions email to a user.
Inputs: realm (required), user_id (required), actions_data (required), lifespan, +2 more.
send_user_reset_password_emailC
Send an email to the user with a link they can click to reset their password.
Inputs: realm (required), user_id (required), client_id, redirect_uri.
send_user_verify_emailC
Send an email-verification email to the user An email contains a link the user can click to verify their email address.
Inputs: realm (required), user_id (required), lifespan, client_id, +1 more.
set_realm_localization_textC
Set a specific localization text by locale and key.
Inputs: key (required), realm (required), locale (required), text_value (required).
test_client_nodes_availableC
Test if registered cluster nodes for the client are available.
Inputs: realm (required), client_uuid (required).
test_smtp_connectionB
Test SMTP connection with the given configuration.
Inputs: realm (required), smtp_config (required).
unlink_organization_identity_providerC
Unlink an identity provider from an organization. Requires Keycloak 25+.
Inputs: alias (required), realm (required), org_id (required).
unregister_client_cluster_nodeB
Unregister a cluster node from the client.
Inputs: node (required), realm (required), client_uuid (required).
update_authenticator_configB
Update an authenticator configuration by ID.
Inputs: id (required), realm (required), config_data (required).
update_auth_flowB
Update an authentication flow by ID.
Inputs: id (required), realm (required), flow_data (required).
update_authz_resourceC
Update a resource of a client's resource server.
Inputs: realm (required), client_uuid (required), resource_id (required), resource_data (required).
update_authz_resource_serverC
Update the authorization services (resource server) settings of a client.
Inputs: realm (required), client_uuid (required), resource_server_data (required).
update_authz_scopeC
Update an authorization scope of a client's resource server.
Inputs: realm (required), scope_id (required), scope_data (required), client_uuid (required).
update_clientC
Update a client.
Inputs: realm (required), client_data (required), client_uuid (required).
update_client_management_permissionsC
Update management permissions for a client.
Inputs: realm (required), client_uuid (required), permissions_data (required).
update_client_policiesC
Update the client policies of the realm.
Inputs: realm (required), policies_data (required).
update_client_profilesC
Update the client profiles of the realm.
Inputs: realm (required), profiles_data (required).
update_client_protocol_mapperC
Update a protocol mapper for a client.
Inputs: realm (required), mapper_id (required), client_uuid (required), mapper_data (required).
update_client_roleC
Update a client role.
Inputs: realm (required), role_data (required), role_name (required), client_uuid (required).
update_client_role_permissionsC
Update management permissions for a client role.
Inputs: realm (required), role_name (required), client_uuid (required), permissions_data (required).
update_client_scopeB
Update a client scope.
Inputs: realm (required), scope_data (required), client_scope_id (required).
update_client_scope_protocol_mapperC
Update a protocol mapper for a client scope.
Inputs: realm (required), mapper_id (required), mapper_data (required), client_scope_id (required).
update_client_templateC
Update a client template (legacy).
Inputs: realm (required), template_data (required), client_scope_id (required).
update_client_template_protocol_mapperD
Update the mapper.
Inputs: realm (required), mapper_id (required), mapper_data (required), client_scope_id (required).
update_client_typesD
Update a client type.
Inputs: realm (required), client_types_data (required).
update_componentC
Update a component.
Inputs: realm (required), component_id (required), component_data (required).
update_flow_executionsC
Update the executions of an authentication flow.
Inputs: realm (required), flow_alias (required), execution_data (required).
update_groupC
Update a group.
Inputs: realm (required), group_id (required), group_data (required).
update_group_management_permissionsC
Update management permissions for a group.
Inputs: realm (required), group_id (required), permissions_data (required).
update_identity_providerB
Update an identity provider.
Inputs: alias (required), realm (required), provider_data (required).
update_identity_provider_mapperC
Update a mapper for an identity provider.
Inputs: alias (required), realm (required), mapper_id (required), mapper_data (required).
update_identity_provider_permissionsC
Update the management permissions for an identity provider.
Inputs: alias (required), realm (required), permissions_data (required).
update_organizationC
Update an organization. Requires Keycloak 25+.
Inputs: realm (required), org_id (required), org_data (required).
update_organization_groupC
Update organization group. Requires Keycloak 26.6+.
Inputs: realm (required), org_id (required), group_id (required), group_data (required).
update_organization_identity_provider_linkB
Updates the per-association config for the identity provider linked to the organization. Requires Keycloak 26.8+.
Inputs: alias (required), realm (required), org_id (required), link_data (required).
update_organization_member_membership_typeC
Updates the membership type of the member with the specified id. Requires Keycloak 26.7+.
Inputs: realm (required), org_id (required), member_id (required), membership_type (required).
update_realmC
Update a realm.
Inputs: realm (required), realm_data (required).
update_realm_events_configB
Update the events configuration for the realm.
Inputs: realm (required), events_config (required).
update_realm_localization_textsB
Import (replace) localization texts for a locale in the realm.
Inputs: realm (required), locale (required), texts_data (required).
update_realm_roleC
Update a realm role.
Inputs: realm (required), role_data (required), role_name (required).
update_realm_role_permissionsB
Update management permissions for a realm role.
Inputs: realm (required), role_name (required), permissions_data (required).
update_required_actionC
Update a required action by alias.
Inputs: alias (required), realm (required), action_data (required).
update_required_action_configC
Update the configuration for a required action by alias.
Inputs: alias (required), realm (required), config_data (required).
update_role_by_idC
Update a role by ID.
Inputs: realm (required), role_id (required), role_data (required).
update_role_by_id_permissionsB
Update management permissions for a role by ID.
Inputs: realm (required), role_id (required), permissions_data (required).
update_userC
Update a user.
Inputs: realm (required), user_id (required), user_data (required).
update_user_credential_labelC
Update the label of a user credential.
Inputs: realm (required), user_id (required), label_data (required), credential_id (required).
update_user_profileC
Update the user profile configuration for the realm.
Inputs: realm (required), profile_data (required).
update_users_management_permissionsC
Update users management permissions for the realm.
Inputs: realm (required), permissions_data (required).
update_workflowC
Update workflow. Requires Keycloak 26.5+.
Inputs: realm (required), workflow_id (required), workflow_data (required).
upload_client_certificate_and_keyC
Upload a certificate and its private key for a client attribute.
Inputs: attr (required), realm (required), upload (required), client_uuid (required).
upload_client_certificate_onlyB
Upload only a certificate for a client attribute, without updating the private key.
Inputs: attr (required), realm (required), upload (required), client_uuid (required).
upload_identity_provider_certificateB
Uploads a certificate, prepares the jwks or public key associated, and returns the certificate representation. Requires Keycloak 26.5+.
Inputs: realm (required), upload (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 415 tools
The tool set is enormous and riddled with near-duplicate scope/role-mapping operations (e.g., client, client template, client scope, and organization group scope mappings) whose descriptions are almost indistinguishable. Many tools differ only by resource qualifier or version, making misselection highly likely.
Most names use a snake_case verb_noun pattern, but the convention is stretched by very long compound names and inconsistent orderings such as get_client_template_scope_mappings_all versus get_client_scope_mappings_all. A few tools also use 'delete_' where sibling tools use 'remove_' for the same operation.
415 tools is an extreme mismatch for any practical MCP surface. Even for the broad Keycloak admin domain, this volume forces excessive tool selection overhead and strongly suggests raw API exposure rather than a curated set.
The surface appears to cover nearly every Keycloak administrative area: users, groups, roles, clients, client scopes, identity providers, organizations, authorization services, workflows, events, and localization. No obvious major domain gap is apparent.
Maintenance
Related MCP Connectors
Managed Keycloak from any MCP client: clusters, realms, apps, SSO, users, domains, audit events.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Foundations MCP: Elements, Personas, and admin Spells corpus tools for agents (OAuth).
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server for Keycloak Admin REST API, enabling user, group, event, and security management through service account authentication.3380 PyPIMIT
- AlicenseAqualityCmaintenanceEnables administrators to manage Keycloak realms, users, roles, clients, groups, and more through its Admin REST API, with safe-by-default configuration and destructive operation confirmation.5670 npm4MIT
- AlicenseNot gradedqualityCmaintenanceExposes Keycloak admin operations as tools via the Model Context Protocol, allowing management of users, clients, groups, roles, and more through natural language.ISC
- AlicenseNot gradedqualityDmaintenanceEnables administration of Keycloak identity and access management through MCP, allowing management of realms, clients, users, roles, groups, identity providers, and sessions from any MCP client.Apache 2.0