GoCloak MCP
io.github.Nerzal/gocloak-mcp
Security-first, read-only Keycloak MCP server built in Go with GoCloak v15.
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Repository
- github.com/Nerzal/gocloak-mcp
- Version
- 0.3.0
- Author
- Nerzal (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 21, 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.
How to install it
Variables to fill in: KEYCLOAK_URL, KEYCLOAK_REALM, KEYCLOAK_CLIENT_ID, KEYCLOAK_CLIENT_SECRET, KEYCLOAK_ALLOWED_REALMS.
On your machine
Claude Code
The server runs on your machine (oci package). In a terminal:
claude mcp add gocloak-mcp -e KEYCLOAK_URL=YOUR_KEYCLOAK_URL -e KEYCLOAK_REALM=YOUR_KEYCLOAK_REALM -e KEYCLOAK_CLIENT_ID=YOUR_KEYCLOAK_CLIENT_ID -e KEYCLOAK_CLIENT_SECRET=YOUR_KEYCLOAK_CLIENT_SECRET -e KEYCLOAK_ALLOWED_REALMS=YOUR_KEYCLOAK_ALLOWED_REALMS -- docker run -i --rm -e KEYCLOAK_URL -e KEYCLOAK_REALM -e KEYCLOAK_CLIENT_ID -e KEYCLOAK_CLIENT_SECRET -e KEYCLOAK_ALLOWED_REALMS ghcr.io/nerzal/gocloak-mcp:0.3.0Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"gocloak-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KEYCLOAK_URL",
"-e",
"KEYCLOAK_REALM",
"-e",
"KEYCLOAK_CLIENT_ID",
"-e",
"KEYCLOAK_CLIENT_SECRET",
"-e",
"KEYCLOAK_ALLOWED_REALMS",
"ghcr.io/nerzal/gocloak-mcp:0.3.0"
],
"env": {
"KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
"KEYCLOAK_REALM": "YOUR_KEYCLOAK_REALM",
"KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
"KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
"KEYCLOAK_ALLOWED_REALMS": "YOUR_KEYCLOAK_ALLOWED_REALMS"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"gocloak-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KEYCLOAK_URL",
"-e",
"KEYCLOAK_REALM",
"-e",
"KEYCLOAK_CLIENT_ID",
"-e",
"KEYCLOAK_CLIENT_SECRET",
"-e",
"KEYCLOAK_ALLOWED_REALMS",
"ghcr.io/nerzal/gocloak-mcp:0.3.0"
],
"env": {
"KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
"KEYCLOAK_REALM": "YOUR_KEYCLOAK_REALM",
"KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
"KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
"KEYCLOAK_ALLOWED_REALMS": "YOUR_KEYCLOAK_ALLOWED_REALMS"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"gocloak-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"KEYCLOAK_URL",
"-e",
"KEYCLOAK_REALM",
"-e",
"KEYCLOAK_CLIENT_ID",
"-e",
"KEYCLOAK_CLIENT_SECRET",
"-e",
"KEYCLOAK_ALLOWED_REALMS",
"ghcr.io/nerzal/gocloak-mcp:0.3.0"
],
"env": {
"KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
"KEYCLOAK_REALM": "YOUR_KEYCLOAK_REALM",
"KEYCLOAK_CLIENT_ID": "YOUR_KEYCLOAK_CLIENT_ID",
"KEYCLOAK_CLIENT_SECRET": "YOUR_KEYCLOAK_CLIENT_SECRET",
"KEYCLOAK_ALLOWED_REALMS": "YOUR_KEYCLOAK_ALLOWED_REALMS"
}
}
}
}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.
[GoCloak MCP — L’Agora](https://lagora.dev/en/entry/io.github.nerzal/gocloak-mcp)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
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)
[](https://lagora.dev/en/entry/io.github.nerzal/gocloak-mcp)HTML
<a href="https://lagora.dev/en/entry/io.github.nerzal/gocloak-mcp"><img src="https://lagora.dev/badge/io.github.nerzal/gocloak-mcp.svg?lang=en" alt="io.github.Nerzal/gocloak-mcp on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.