Skip to main content
Glama
dockndevai

mcp-keycloak

by dockndevai

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.

list_usersA

List users in a realm. Supports free-text search and pagination. Passwords and secrets are never returned by Keycloak.

get_userA

Fetch a single user representation by their Keycloak id.

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 are not included.

list_realm_rolesA

List the realm-level roles defined in a realm.

list_groupsA

List groups in a realm.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dockndevai/mcp-keycloak'

If you have feedback or need assistance with the MCP directory API, please join our Discord server