mcp-keycloak
An MCP server for Keycloak that enables AI agents to perform multi-realm administration tasks including managing users, clients, and roles. It features configurable security modes (read-only, read-write, admin) and access-control flags to ensure safe-by-default governance, allowing agents to list, create, update, and delete identities within specified realms.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- List and manage Keycloak realms and users
- Create and update client applications
- Assign and manage realm roles and groups
- Reset user passwords and handle logout
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@dockndevai/mcp-keycloak 0.3.3
{
"version": "0.3.3",
"transport": "stdio",
"identifier": "@dockndevai/mcp-keycloak",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "KEYCLOAK_URL",
"isRequired": true,
"description": "Base URL of the Keycloak server (no trailing slash)."
},
{
"name": "KEYCLOAK_CLIENT_ID",
"description": "Client id used to authenticate (default admin-cli)."
},
{
"name": "KEYCLOAK_CLIENT_SECRET",
"description": "Service-account client secret (or use KEYCLOAK_USERNAME/PASSWORD)."
},
{
"name": "KEYCLOAK_MODE",
"description": "Access mode: read-only | read-write | admin."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-keycloak": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-keycloak@0.3.3"
],
"env": {
"KEYCLOAK_URL": "<YOUR_KEYCLOAK_URL>",
"KEYCLOAK_CLIENT_ID": "<YOUR_KEYCLOAK_CLIENT_ID>",
"KEYCLOAK_CLIENT_SECRET": "<YOUR_KEYCLOAK_CLIENT_SECRET>",
"KEYCLOAK_MODE": "<YOUR_KEYCLOAK_MODE>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-keycloak": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-keycloak@0.3.3"
],
"env": {
"KEYCLOAK_URL": "<YOUR_KEYCLOAK_URL>",
"KEYCLOAK_CLIENT_ID": "<YOUR_KEYCLOAK_CLIENT_ID>",
"KEYCLOAK_CLIENT_SECRET": "<YOUR_KEYCLOAK_CLIENT_SECRET>",
"KEYCLOAK_MODE": "<YOUR_KEYCLOAK_MODE>"
}
}
}
}VS Code
{
"servers": {
"mcp-keycloak": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-keycloak@0.3.3"
],
"env": {
"KEYCLOAK_URL": "<YOUR_KEYCLOAK_URL>",
"KEYCLOAK_CLIENT_ID": "<YOUR_KEYCLOAK_CLIENT_ID>",
"KEYCLOAK_CLIENT_SECRET": "<YOUR_KEYCLOAK_CLIENT_SECRET>",
"KEYCLOAK_MODE": "<YOUR_KEYCLOAK_MODE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-keycloak": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-keycloak@0.3.3"
],
"env": {
"KEYCLOAK_URL": "<YOUR_KEYCLOAK_URL>",
"KEYCLOAK_CLIENT_ID": "<YOUR_KEYCLOAK_CLIENT_ID>",
"KEYCLOAK_CLIENT_SECRET": "<YOUR_KEYCLOAK_CLIENT_SECRET>",
"KEYCLOAK_MODE": "<YOUR_KEYCLOAK_MODE>"
}
}
}
}Let your agent find its tools
Find servers like mcp-keycloak from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.