mcp-keycloak
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KEYCLOAK_URL | Yes | Base URL of your Keycloak server (e.g., https://keycloak.example.com). Required for authentication to Keycloak. | |
| KEYCLOAK_MODE | No | Access mode for the server: read-only (default), read-write, or admin. Higher modes expose additional tools. | read-only |
| KEYCLOAK_DRY_RUN | No | When true, write/admin tools validate and log intent without calling Keycloak. | false |
| KEYCLOAK_AUDIT_LOG | No | Emits a JSON line to stderr per guarded operation (ALLOW / DENY / DRY_RUN). | true |
| KEYCLOAK_CLIENT_ID | No | Client ID for the confidential-client service account authentication strategy. | |
| KEYCLOAK_ALLOW_DELETE | No | Set to true to enable delete_* tools (requires admin mode). | false |
| KEYCLOAK_CLIENT_SECRET | No | Client secret for the confidential-client service account authentication strategy. | |
| KEYCLOAK_ADMIN_PASSWORD | No | Password for the admin username/password authentication strategy. | |
| KEYCLOAK_ADMIN_USERNAME | No | Username for the admin username/password authentication strategy. | |
| KEYCLOAK_REALM_ALLOWLIST | No | Comma-separated allowlist of realms that can be accessed. If not set, all realms are allowed. | |
| KEYCLOAK_PROTECTED_REALMS | No | Comma-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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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