About Keycloak
Keycloak is an MCP server published by idoyudha in the Developer Tools category: the Keycloak MCP Server designed for agentic applications to manage and search data in Keycloak efficiently. Conduid read 78 tools from its source: add_execution_to_flow, add_realm_default_group, add_subflow_to_flow, add_user_to_group, assign_client_role_to_user, assign_realm_role_to_user and 72 more. No package is published for it, so it installs from a source checkout.
The repository has 5 stars and 5 forks, is licensed MIT, and its last commit was on 23 Nov 2026. The latest release is v1.2.2 (27 Aug 2025). It follows v1.2.1 (27 Aug 2025), and the 5 most recent releases go back to v1.0.2 (11 Aug 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include keycloak, identity, access-management, authentication, authorization and octodet.
Install
git clone https://github.com/idoyudha/mcp-keycloakTools (78)
add_execution_to_flowAdd a new authentication execution to a flow.| Parameter | Type | Description |
|---|---|---|
| flow_alias * | string | The flow's alias |
| provider * | string | The authenticator provider |
| realm | string | Target realm (uses default if not specified) |
add_realm_default_groupAdd a default group to the realm.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID to add as default |
| realm | string | Target realm (uses default if not specified) |
add_subflow_to_flowAdd a new flow with new execution to existing flow.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The new subflow's alias |
| description | string | Subflow description |
| flow_alias * | string | The parent flow's alias |
| id | string | Subflow ID |
| provider | string | Provider ID |
| realm | string | Target realm (uses default if not specified) |
| type | string | Flow type (basic-flow, form-flow, etc.) |
add_user_to_groupAdd a user to a group.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID |
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | User ID |
assign_client_role_to_userAssign client roles to a user.| Parameter | Type | Description |
|---|---|---|
| client_id * | string | Client database ID |
| realm | string | Target realm (uses default if not specified) |
| role_names * | array | List of role names to assign |
| user_id * | string | User ID |
assign_realm_role_to_userAssign realm roles to a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| role_names * | array | List of role names to assign |
| user_id * | string | User ID |
copy_authentication_flowCopy an existing authentication flow under a new name.| Parameter | Type | Description |
|---|---|---|
| flow_alias * | string | The source flow's alias |
| new_name * | string | The new flow's name |
| realm | string | Target realm (uses default if not specified) |
count_usersUser statistics| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
create_authentication_flowCreate a new authentication flow.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The flow's alias |
| built_in | boolean | Whether it's built-in (default: False) |
| description * | string | Flow description |
| id | string | Flow ID |
| provider_id | string | Provider ID (default: "basic-flow") |
| realm | string | Target realm (uses default if not specified) |
| top_level | boolean | Whether it's a top-level flow (default: True) |
create_authenticator_configCreate new authenticator configuration.| Parameter | Type | Description |
|---|---|---|
| alias * | string | Configuration alias |
| config * | object | Configuration values |
| id | string | Configuration ID |
| realm | string | Target realm (uses default if not specified) |
create_clientCreate a new client.| Parameter | Type | Description |
|---|---|---|
| always_display_in_console | boolean | Always display in account console |
| authorization_services_enabled | boolean | Enable authorization services |
| bearer_only | boolean | Bearer-only client |
| client_id * | string | Client ID (unique identifier) |
| description | string | Client description |
| direct_access_grants_enabled | boolean | Enable direct access grants (password flow) |
| enabled | boolean | Whether the client is enabled |
| implicit_flow_enabled | boolean | Enable implicit flow |
| name | string | Display name |
| protocol | string | Protocol (openid-connect or saml) |
| public_client | boolean | Public client (no secret) |
| realm | string | Target realm (uses default if not specified) |
| redirect_uris | array | Valid redirect URIs |
| root_url | string | Root URL for relative URLs |
| service_accounts_enabled | boolean | Enable service accounts |
| standard_flow_enabled | boolean | Enable standard flow (authorization code) |
| web_origins | array | Allowed CORS origins |
create_client_roleCreate a new client role.| Parameter | Type | Description |
|---|---|---|
| client_id * | string | Client database ID |
| composite | boolean | Whether this is a composite role |
| description | string | Role description |
| name * | string | Role name |
| realm | string | Target realm (uses default if not specified) |
create_executionAdd a new authentication execution.| Parameter | Type | Description |
|---|---|---|
| authenticator | string | Authenticator name |
| authenticator_config | string | Authenticator configuration |
| authenticator_flow | boolean | Is this an authenticator flow |
| flow_id | string | Flow ID |
| id | string | Execution ID |
| parent_flow | string | Parent flow ID |
| priority | integer | Priority level |
| realm | string | Target realm (uses default if not specified) |
| requirement | string | Requirement level (DISABLED, ALTERNATIVE, REQUIRED, CONDITIONAL) |
create_groupCreate a new group.| Parameter | Type | Description |
|---|---|---|
| attributes | object | Group attributes |
| name * | string | Group name |
| path | string | Group path |
| realm | string | Target realm (uses default if not specified) |
create_realm_roleCreate a new realm role.| Parameter | Type | Description |
|---|---|---|
| client_role | boolean | Whether this is a client role |
| composite | boolean | Whether this is a composite role |
| description | string | Role description |
| name * | string | Role name |
| realm | string | Target realm (uses default if not specified) |
create_userCreate a new user.| Parameter | Type | Description |
|---|---|---|
| attributes | object | Additional user attributes |
| string | Email address | |
| email_verified | boolean | Whether the email is verified |
| enabled | boolean | Whether the user is enabled |
| first_name | string | First name |
| last_name | string | Last name |
| realm | string | Target realm (uses default if not specified) |
| temporary_password | string | Initial password (user will be required to change it) |
| username * | string | Username for the new user |
delete_authentication_flowDelete an authentication flow.| Parameter | Type | Description |
|---|---|---|
| flow_id * | string | The flow's ID |
| realm | string | Target realm (uses default if not specified) |
delete_authenticator_configDelete authenticator configuration.| Parameter | Type | Description |
|---|---|---|
| config_id * | string | The configuration's ID |
| realm | string | Target realm (uses default if not specified) |
delete_clientDelete a client.| Parameter | Type | Description |
|---|---|---|
| id * | string | The client's database ID |
| realm | string | Target realm (uses default if not specified) |
delete_executionDelete an authentication execution.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution's ID |
| realm | string | Target realm (uses default if not specified) |
delete_groupDelete a group.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID |
| realm | string | Target realm (uses default if not specified) |
delete_realm_roleDelete a realm role.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| role_name * | string | Role name to delete |
delete_userDelete a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | The user's ID |
get_accessible_realmsList of accessible realmsget_authentication_flowGet a specific authentication flow by ID.| Parameter | Type | Description |
|---|---|---|
| flow_id * | string | The flow's ID |
| realm | string | Target realm (uses default if not specified) |
get_authenticator_configGet authenticator configuration.| Parameter | Type | Description |
|---|---|---|
| config_id * | string | The configuration's ID |
| realm | string | Target realm (uses default if not specified) |
get_authenticator_providersGet authenticator providers.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_clientGet a specific client by database ID.| Parameter | Type | Description |
|---|---|---|
| id * | string | The client's database ID (not client_id) |
| realm | string | Target realm (uses default if not specified) |
get_client_authenticator_providersGet client authenticator providers.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_client_by_clientidGet a specific client by client ID.| Parameter | Type | Description |
|---|---|---|
| client_id * | string | The client's client_id |
| realm | string | Target realm (uses default if not specified) |
get_client_secretGet the client secret.| Parameter | Type | Description |
|---|---|---|
| id * | string | The client's database ID |
| realm | string | Target realm (uses default if not specified) |
get_client_service_accountService account access| Parameter | Type | Description |
|---|---|---|
| id * | string | The client's database ID |
| realm | string | Target realm (uses default if not specified) |
get_executionGet a single authentication execution.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution's ID |
| realm | string | Target realm (uses default if not specified) |
get_execution_configGet execution's configuration.| Parameter | Type | Description |
|---|---|---|
| config_id * | string | The configuration's ID |
| execution_id * | string | The execution's ID |
| realm | string | Target realm (uses default if not specified) |
get_flow_executionsGet authentication executions for a flow.| Parameter | Type | Description |
|---|---|---|
| flow_alias * | string | The flow's alias |
| realm | string | Target realm (uses default if not specified) |
get_groupGet a specific group by ID.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID |
| realm | string | Target realm (uses default if not specified) |
get_group_membersGet members of a group.| Parameter | Type | Description |
|---|---|---|
| first | integer | Pagination offset |
| group_id * | string | Group ID |
| max | integer | Maximum results size |
| realm | string | Target realm (uses default if not specified) |
get_provider_config_descriptionGet authenticator provider's configuration description.| Parameter | Type | Description |
|---|---|---|
| provider_id * | string | The provider's ID |
| realm | string | Target realm (uses default if not specified) |
get_realm_default_groupsGet default groups for the realm.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_realm_events_configGet realm events configuration.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_realm_infoGet information about the current realm.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_realm_roleGet a specific realm role by name.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| role_name * | string | Role name |
get_required_actionGet a specific required action by alias.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The required action's alias |
| realm | string | Target realm (uses default if not specified) |
get_required_actionsGet all required actions in the realm.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_unregistered_required_actionsGet unregistered required actions.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
get_userGet a specific user by ID.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | The user's ID |
get_user_groupsGet all groups for a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | User ID |
get_user_realm_rolesGet realm roles for a user.| Parameter | Type | Description |
|---|---|---|
| effective | boolean | Get effective roles (including composite roles) |
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | User ID |
get_user_sessionsGet active sessions for a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | The user's ID |
list_authentication_flowsGet authentication flows in the realm.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
list_client_rolesList roles for a specific client.| Parameter | Type | Description |
|---|---|---|
| client_id * | string | Client database ID |
| first | integer | Pagination offset |
| max | integer | Maximum results size |
| realm | string | Target realm (uses default if not specified) |
| search | string | Search string |
list_clientsList clients in the realm.| Parameter | Type | Description |
|---|---|---|
| client_id | string | Filter by client ID (partial match) |
| first | integer | Pagination offset |
| max | integer | Maximum results size |
| realm | string | Target realm (uses default if not specified) |
| viewable_only | boolean | Only return viewable clients |
list_groupsList all groups in the realm.| Parameter | Type | Description |
|---|---|---|
| first | integer | Pagination offset |
| max | integer | Maximum results size |
| realm | string | Target realm (uses default if not specified) |
| search | string | Search string |
list_realm_rolesList all realm roles.| Parameter | Type | Description |
|---|---|---|
| first | integer | Pagination offset |
| max | integer | Maximum results size |
| realm | string | Target realm (uses default if not specified) |
| search | string | Search string |
list_usersList users with pagination and filtering| Parameter | Type | Description |
|---|---|---|
| string | Email filter | |
| enabled | boolean | Filter by enabled/disabled users |
| first | integer | Pagination offset |
| max | integer | Maximum results size (defaults to 100) |
| realm | string | Target realm (uses default if not specified) |
| search | string | Search string for username, first/last name, or email |
| username | string | Username filter |
logout_userLogout all sessions for a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | The user's ID |
lower_execution_priorityLower an execution's priority.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution's ID |
| realm | string | Target realm (uses default if not specified) |
lower_required_action_priorityLower the priority of a required action.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The required action's alias |
| realm | string | Target realm (uses default if not specified) |
raise_execution_priorityRaise an execution's priority.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution's ID |
| realm | string | Target realm (uses default if not specified) |
raise_required_action_priorityRaise the priority of a required action.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The required action's alias |
| realm | string | Target realm (uses default if not specified) |
regenerate_client_secretRegenerate the client secret.| Parameter | Type | Description |
|---|---|---|
| id * | string | The client's database ID |
| realm | string | Target realm (uses default if not specified) |
register_required_actionRegister a new required action.| Parameter | Type | Description |
|---|---|---|
| name * | string | Action name |
| provider_id * | string | The provider ID |
| realm | string | Target realm (uses default if not specified) |
remove_all_user_sessionsRemove all sessions for all users in the realm.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
remove_realm_default_groupRemove a default group from the realm.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID to remove from defaults |
| realm | string | Target realm (uses default if not specified) |
remove_realm_role_from_userRemove realm roles from a user.| Parameter | Type | Description |
|---|---|---|
| realm | string | Target realm (uses default if not specified) |
| role_names * | array | List of role names to remove |
| user_id * | string | User ID |
remove_user_from_groupRemove a user from a group.| Parameter | Type | Description |
|---|---|---|
| group_id * | string | Group ID |
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | User ID |
reset_user_passwordPassword management| Parameter | Type | Description |
|---|---|---|
| password * | string | New password |
| realm | string | Target realm (uses default if not specified) |
| temporary | boolean | Whether the password is temporary (user must change on next login) |
| user_id * | string | The user's ID |
update_authentication_flowUpdate an authentication flow.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The flow's alias |
| built_in | boolean | Whether it's built-in |
| description | string | Flow description |
| flow_id * | string | The flow's ID (used in URL path) |
| id | string | Flow ID (for request body) |
| provider_id | string | Provider ID |
| realm | string | Target realm (uses default if not specified) |
| top_level | boolean | Whether it's a top-level flow |
update_authenticator_configUpdate authenticator configuration.| Parameter | Type | Description |
|---|---|---|
| alias * | string | Configuration alias |
| config * | object | Configuration values |
| config_id * | string | The configuration's ID (used in URL path) |
| id | string | Configuration ID (for request body) |
| realm | string | Target realm (uses default if not specified) |
update_clientUpdate an existing client.| Parameter | Type | Description |
|---|---|---|
| client_id | string | New client ID |
| description | string | New description |
| direct_access_grants_enabled | boolean | Enable direct access grants |
| enabled | boolean | Whether the client is enabled |
| id * | string | The client's database ID |
| name | string | New display name |
| public_client | boolean | Whether client is public |
| realm | string | Target realm (uses default if not specified) |
| redirect_uris | array | New redirect URIs |
| service_accounts_enabled | boolean | Enable service accounts |
| web_origins | array | New CORS origins |
update_execution_configUpdate execution with new configuration.| Parameter | Type | Description |
|---|---|---|
| authenticator_config * | object | New configuration data |
| execution_id * | string | The execution's ID |
| id | string | Configuration ID |
| realm | string | Target realm (uses default if not specified) |
update_flow_executionsUpdate authentication executions of a flow.| Parameter | Type | Description |
|---|---|---|
| executions * | array | List of execution objects with updated properties |
| flow_alias * | string | The flow's alias |
| realm | string | Target realm (uses default if not specified) |
update_groupUpdate a group.| Parameter | Type | Description |
|---|---|---|
| attributes | object | New group attributes |
| group_id * | string | Group ID |
| name | string | New group name |
| path | string | New group path |
| realm | string | Target realm (uses default if not specified) |
update_realm_events_configUpdate realm events configuration.| Parameter | Type | Description |
|---|---|---|
| admin_events_details_enabled | boolean | Include details in admin events |
| admin_events_enabled | boolean | Enable admin events |
| enabled_event_types | array | Types of events to record |
| events_enabled | boolean | Enable events |
| events_listeners | array | Event listener implementations |
| realm | string | Target realm (uses default if not specified) |
update_realm_roleUpdate a realm role.| Parameter | Type | Description |
|---|---|---|
| composite | boolean | Whether this is a composite role |
| description | string | New description |
| realm | string | Target realm (uses default if not specified) |
| role_name * | string | Current role name |
update_realm_settingsUpdate realm settings.| Parameter | Type | Description |
|---|---|---|
| account_theme | string | Account management theme |
| admin_theme | string | Admin console theme |
| brute_force_protected | boolean | Enable brute force protection |
| default_locale | string | Default locale |
| display_name | string | Display name for the realm |
| display_name_html | string | HTML display name |
| duplicate_emails_allowed | boolean | Allow duplicate emails |
| email_theme | string | Email theme |
| enabled | boolean | Whether realm is enabled |
| failure_factor | integer | Failure factor |
| login_theme | string | Login theme name |
| login_with_email_allowed | boolean | Allow login with email |
| max_delta_time_seconds | integer | Max time between failures |
| max_failure_wait_seconds | integer | Max wait after failures |
| minimum_quick_login_wait_seconds | integer | Min wait between quick logins |
| permanent_lockout | boolean | Permanent lockout on max failures |
| quick_login_check_milli_seconds | integer | Quick login check interval |
| realm | string | Target realm (uses default if not specified) |
| registration_allowed | boolean | Allow user registration |
| registration_email_as_username | boolean | Use email as username |
| remember_me | boolean | Enable remember me |
| reset_password_allowed | boolean | Allow password reset |
| ssl_required | string | SSL requirement (none, external, all) |
| verify_email | boolean | Require email verification |
| wait_increment_seconds | integer | Wait increment |
update_required_actionUpdate a required action.| Parameter | Type | Description |
|---|---|---|
| alias * | string | The required action's alias |
| config | object | Additional configuration |
| default_action | boolean | Whether this is a default action |
| enabled | boolean | Whether the action is enabled |
| name * | string | Display name |
| priority | integer | Action priority |
| realm | string | Target realm (uses default if not specified) |
update_userUpdate an existing user.| Parameter | Type | Description |
|---|---|---|
| attributes | object | Updated user attributes |
| string | New email address | |
| email_verified | boolean | Whether the email is verified |
| enabled | boolean | Whether the user is enabled |
| first_name | string | New first name |
| last_name | string | New last name |
| realm | string | Target realm (uses default if not specified) |
| user_id * | string | The user's ID |
| username | string | New username |
Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 15 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README