L'Agora
MCPLocal

io.github.ChristophEnglisch/keycloak-model-context-protocol

Manage Keycloak users, groups, roles and realms through the Keycloak Admin REST API.

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by ChristophEnglisch

Repository
github.com/ChristophEnglisch/keycloak-model-context-protocol
Version
1.1.0
Author
ChristophEnglisch (namespace verified by the registry)
Source
Official MCP registry (updated Oct 26, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: KEYCLOAK_URL, KEYCLOAK_AUTH_REALM, KEYCLOAK_CLIENT_ID, KEYCLOAK_CLIENT_SECRET, KEYCLOAK_USERNAME, KEYCLOAK_PASSWORD, KEYCLOAK_GRANT_TYPE, KEYCLOAK_MCP_READ_ONLY, KEYCLOAK_MCP_REALMS, KEYCLOAK_MCP_ALLOW_MASTER_WRITE, KEYCLOAK_MCP_TOOLSETS, KEYCLOAK_MCP_REQUIRE_CONFIRMATION, KEYCLOAK_MCP_TIMEOUT_MS, KEYCLOAK_MCP_LOG_LEVEL.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add keycloak-model-context-protocol -e KEYCLOAK_URL=YOUR_KEYCLOAK_URL -e KEYCLOAK_AUTH_REALM=YOUR_KEYCLOAK_AUTH_REALM -e KEYCLOAK_CLIENT_ID=YOUR_KEYCLOAK_CLIENT_ID -e KEYCLOAK_CLIENT_SECRET=YOUR_KEYCLOAK_CLIENT_SECRET -e KEYCLOAK_USERNAME=YOUR_KEYCLOAK_USERNAME -e KEYCLOAK_PASSWORD=YOUR_KEYCLOAK_PASSWORD -e KEYCLOAK_GRANT_TYPE=YOUR_KEYCLOAK_GRANT_TYPE -e KEYCLOAK_MCP_READ_ONLY=YOUR_KEYCLOAK_MCP_READ_ONLY -e KEYCLOAK_MCP_REALMS=YOUR_KEYCLOAK_MCP_REALMS -e KEYCLOAK_MCP_ALLOW_MASTER_WRITE=YOUR_KEYCLOAK_MCP_ALLOW_MASTER_WRITE -e KEYCLOAK_MCP_TOOLSETS=YOUR_KEYCLOAK_MCP_TOOLSETS -e KEYCLOAK_MCP_REQUIRE_CONFIRMATION=YOUR_KEYCLOAK_MCP_REQUIRE_CONFIRMATION -e KEYCLOAK_MCP_TIMEOUT_MS=YOUR_KEYCLOAK_MCP_TIMEOUT_MS -e KEYCLOAK_MCP_LOG_LEVEL=YOUR_KEYCLOAK_MCP_LOG_LEVEL -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "keycloak-model-context-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
        "KEYCLOAK_AUTH_REALM": "YOUR_KEYCLOAK_AUTH_REALM",
        "KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
        "KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
        "KEYCLOAK_USERNAME": "YOUR_KEYCLOAK_USERNAME",
        "KEYCLOAK_PASSWORD": "YOUR_KEYCLOAK_PASSWORD",
        "KEYCLOAK_GRANT_TYPE": "YOUR_KEYCLOAK_GRANT_TYPE",
        "KEYCLOAK_MCP_READ_ONLY": "YOUR_KEYCLOAK_MCP_READ_ONLY",
        "KEYCLOAK_MCP_REALMS": "YOUR_KEYCLOAK_MCP_REALMS",
        "KEYCLOAK_MCP_ALLOW_MASTER_WRITE": "YOUR_KEYCLOAK_MCP_ALLOW_MASTER_WRITE",
        "KEYCLOAK_MCP_TOOLSETS": "YOUR_KEYCLOAK_MCP_TOOLSETS",
        "KEYCLOAK_MCP_REQUIRE_CONFIRMATION": "YOUR_KEYCLOAK_MCP_REQUIRE_CONFIRMATION",
        "KEYCLOAK_MCP_TIMEOUT_MS": "YOUR_KEYCLOAK_MCP_TIMEOUT_MS",
        "KEYCLOAK_MCP_LOG_LEVEL": "YOUR_KEYCLOAK_MCP_LOG_LEVEL"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "keycloak-model-context-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
        "KEYCLOAK_AUTH_REALM": "YOUR_KEYCLOAK_AUTH_REALM",
        "KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
        "KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
        "KEYCLOAK_USERNAME": "YOUR_KEYCLOAK_USERNAME",
        "KEYCLOAK_PASSWORD": "YOUR_KEYCLOAK_PASSWORD",
        "KEYCLOAK_GRANT_TYPE": "YOUR_KEYCLOAK_GRANT_TYPE",
        "KEYCLOAK_MCP_READ_ONLY": "YOUR_KEYCLOAK_MCP_READ_ONLY",
        "KEYCLOAK_MCP_REALMS": "YOUR_KEYCLOAK_MCP_REALMS",
        "KEYCLOAK_MCP_ALLOW_MASTER_WRITE": "YOUR_KEYCLOAK_MCP_ALLOW_MASTER_WRITE",
        "KEYCLOAK_MCP_TOOLSETS": "YOUR_KEYCLOAK_MCP_TOOLSETS",
        "KEYCLOAK_MCP_REQUIRE_CONFIRMATION": "YOUR_KEYCLOAK_MCP_REQUIRE_CONFIRMATION",
        "KEYCLOAK_MCP_TIMEOUT_MS": "YOUR_KEYCLOAK_MCP_TIMEOUT_MS",
        "KEYCLOAK_MCP_LOG_LEVEL": "YOUR_KEYCLOAK_MCP_LOG_LEVEL"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "keycloak-model-context-protocol": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
        "KEYCLOAK_AUTH_REALM": "YOUR_KEYCLOAK_AUTH_REALM",
        "KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
        "KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
        "KEYCLOAK_USERNAME": "YOUR_KEYCLOAK_USERNAME",
        "KEYCLOAK_PASSWORD": "YOUR_KEYCLOAK_PASSWORD",
        "KEYCLOAK_GRANT_TYPE": "YOUR_KEYCLOAK_GRANT_TYPE",
        "KEYCLOAK_MCP_READ_ONLY": "YOUR_KEYCLOAK_MCP_READ_ONLY",
        "KEYCLOAK_MCP_REALMS": "YOUR_KEYCLOAK_MCP_REALMS",
        "KEYCLOAK_MCP_ALLOW_MASTER_WRITE": "YOUR_KEYCLOAK_MCP_ALLOW_MASTER_WRITE",
        "KEYCLOAK_MCP_TOOLSETS": "YOUR_KEYCLOAK_MCP_TOOLSETS",
        "KEYCLOAK_MCP_REQUIRE_CONFIRMATION": "YOUR_KEYCLOAK_MCP_REQUIRE_CONFIRMATION",
        "KEYCLOAK_MCP_TIMEOUT_MS": "YOUR_KEYCLOAK_MCP_TIMEOUT_MS",
        "KEYCLOAK_MCP_LOG_LEVEL": "YOUR_KEYCLOAK_MCP_LOG_LEVEL"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

io.github.ChristophEnglisch/keycloak-model-context-protocol · L’Agora

[io.github.ChristophEnglisch/keycloak-model-context-protocol — L’Agora](https://lagora.dev/en/entry/io.github.christophenglisch/keycloak-model-context-protocol)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.ChristophEnglisch/keycloak-model-context-protocol on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.ChristophEnglisch/keycloak-model-context-protocol on L’Agora](https://lagora.dev/badge/io.github.christophenglisch/keycloak-model-context-protocol.svg?lang=en)](https://lagora.dev/en/entry/io.github.christophenglisch/keycloak-model-context-protocol)

HTML

<a href="https://lagora.dev/en/entry/io.github.christophenglisch/keycloak-model-context-protocol"><img src="https://lagora.dev/badge/io.github.christophenglisch/keycloak-model-context-protocol.svg?lang=en" alt="io.github.ChristophEnglisch/keycloak-model-context-protocol on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

Report this entry