Skip to main content
Glama
mcp-keycloak

mcp-keycloak

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KEYCLOAK_URLYesBase URL of your Keycloak server (e.g., https://keycloak.example.com). Required for authentication to Keycloak.
KEYCLOAK_MODENoAccess mode for the server: read-only (default), read-write, or admin. Higher modes expose additional tools.read-only
KEYCLOAK_DRY_RUNNoWhen true, write/admin tools validate and log intent without calling Keycloak.false
KEYCLOAK_AUDIT_LOGNoEmits a JSON line to stderr per guarded operation (ALLOW / DENY / DRY_RUN).true
KEYCLOAK_CLIENT_IDNoClient ID for the confidential-client service account authentication strategy.
KEYCLOAK_ALLOW_DELETENoSet to true to enable delete_* tools (requires admin mode).false
KEYCLOAK_CLIENT_SECRETNoClient secret for the confidential-client service account authentication strategy.
KEYCLOAK_ADMIN_PASSWORDNoPassword for the admin username/password authentication strategy.
KEYCLOAK_ADMIN_USERNAMENoUsername for the admin username/password authentication strategy.
KEYCLOAK_REALM_ALLOWLISTNoComma-separated allowlist of realms that can be accessed. If not set, all realms are allowed.
KEYCLOAK_PROTECTED_REALMSNoComma-separated list of realms that are read-only forever and cannot be mutated or deleted, regardless of mode.master

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_realmsA

List all realms visible to the configured credentials. Realms outside the allowlist are filtered out.

get_realmA

Fetch the configuration of a single realm. Secrets (SMTP password, codeSecret, identity-provider and LDAP credentials, secret-shaped attributes) are replaced with [REDACTED].

list_usersA

List users in a realm. Supports free-text search and pagination. Secret-shaped attribute values and credentials are replaced with [REDACTED].

get_userA

Fetch a single user representation by their Keycloak id. Secret-shaped attribute values and credentials are replaced with [REDACTED].

count_usersA

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

list_clientsA

List OAuth/OIDC clients configured in a realm. Client secrets, registration access tokens, rotated secrets, private keys and other secret-shaped fields are replaced with [REDACTED].

list_realm_rolesA

List the realm-level roles defined in a realm. Secret-shaped attribute values are replaced with [REDACTED].

list_groupsB

List groups in a realm. Secret-shaped attribute values are replaced with [REDACTED].

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 8 tools

Disambiguation5/5

Each tool maps to a distinct resource+action pair: list_realms/get_realm differ by scope, list_users/get_user/count_users differ by granularity and verb, and groups, clients, and realm roles are clearly separate resources. The only near-neighbors (list_groups vs list_realm_roles) are well differentiated by Keycloak's domain semantics and the descriptions reinforce it.

Naming Consistency5/5

All eight tools follow a strict snake_case verb_noun convention (get_realm, list_users, count_users, list_clients, list_realm_roles). No camelCase or verb-style mixing anywhere in the set.

Tool Count5/5

Eight tools is well within the ideal 3-15 range and each one corresponds to a meaningful inspection target (realms, groups, users, clients, roles). Nothing looks redundant or bolted on.

Completeness3/5

The surface is purely read-only: there is no way to create, update, or delete users, groups, clients, or roles, nor to assign/remove role mappings, which are core Keycloak admin operations. There are also smaller gaps such as no get_group, get_client, or group-membership listing, so agents needing any mutation will hit a dead end.

Maintenance

ActivityNo data
ResponsivenessOutdated data