Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Keycloak Admin

by mrz1880version 0.2.3i★ –iRuns on your computer
Registry nameio.github.mrz1880/mcp-keycloak-admin

Install

Overview

Description from the maker (original English)

Administer Keycloak via its Admin REST API: users, roles, clients, groups, IdP, events.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Other
  • You need to fill in: KEYCLOAK_BASE_URL, KEYCLOAK_REALM, AUTH_MODE, KC_CLIENT_SECRET, KC_ADMIN_PASSWORD

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: KEYCLOAK_BASE_URL, KEYCLOAK_REALM, AUTH_MODE, KC_CLIENT_ID, KC_CLIENT_SECRET, KC_ADMIN_USERNAME, KC_ADMIN_PASSWORD, KC_ADMIN_REALM, READ_ONLY, ALLOWED_REALMS

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "keycloak-admin": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-keycloak-admin"
      ],
      "env": {
        "KEYCLOAK_BASE_URL": "your-value",
        "KEYCLOAK_REALM": "your-value",
        "AUTH_MODE": "your-value",
        "KC_CLIENT_ID": "your-value",
        "KC_CLIENT_SECRET": "your-value",
        "KC_ADMIN_USERNAME": "your-value",
        "KC_ADMIN_PASSWORD": "your-value",
        "KC_ADMIN_REALM": "your-value",
        "READ_ONLY": "your-value",
        "ALLOWED_REALMS": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add keycloak-admin --env KEYCLOAK_BASE_URL=your-value --env KEYCLOAK_REALM=your-value --env AUTH_MODE=your-value --env KC_CLIENT_ID=your-value --env KC_CLIENT_SECRET=your-value --env KC_ADMIN_USERNAME=your-value --env KC_ADMIN_PASSWORD=your-value --env KC_ADMIN_REALM=your-value --env READ_ONLY=your-value --env ALLOWED_REALMS=your-value -- npx -y mcp-keycloak-admin

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "keycloak-admin": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-keycloak-admin"
      ],
      "env": {
        "KEYCLOAK_BASE_URL": "your-value",
        "KEYCLOAK_REALM": "your-value",
        "AUTH_MODE": "your-value",
        "KC_CLIENT_ID": "your-value",
        "KC_CLIENT_SECRET": "your-value",
        "KC_ADMIN_USERNAME": "your-value",
        "KC_ADMIN_PASSWORD": "your-value",
        "KC_ADMIN_REALM": "your-value",
        "READ_ONLY": "your-value",
        "ALLOWED_REALMS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "keycloak-admin": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-keycloak-admin"
      ],
      "env": {
        "KEYCLOAK_BASE_URL": "your-value",
        "KEYCLOAK_REALM": "your-value",
        "AUTH_MODE": "your-value",
        "KC_CLIENT_ID": "your-value",
        "KC_CLIENT_SECRET": "your-value",
        "KC_ADMIN_USERNAME": "your-value",
        "KC_ADMIN_PASSWORD": "your-value",
        "KC_ADMIN_REALM": "your-value",
        "READ_ONLY": "your-value",
        "ALLOWED_REALMS": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • KEYCLOAK_BASE_URL required env
    Base URL of the Keycloak server (no trailing slash).
  • KEYCLOAK_REALM required env
    Realm the server operates on.
  • AUTH_MODE required env
    Authentication mode: service_account or password.
  • KC_CLIENT_ID env
    Confidential client id (service_account mode).
  • KC_CLIENT_SECRET secret env
    Client secret (service_account mode).
  • KC_ADMIN_USERNAME env
    Admin username (password mode).
  • KC_ADMIN_PASSWORD secret env
    Admin password (password mode).
  • KC_ADMIN_REALM env
    Realm holding the admin user (password mode; default master).
  • READ_ONLY env
    When true, write and destructive tools are not registered.
  • ALLOWED_REALMS env
    Comma-separated allow-list of realms the server may operate on.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account mrz1880, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Otheri

  • More stars than 0% of the other 18437 servers in this category
  • Published to the registry more recently than 12% of the other 18437 servers in this category
  • Basic checks equal to or better than 100% of the other 18437 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Keycloak Admin safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: KEYCLOAK_BASE_URL, KEYCLOAK_REALM, AUTH_MODE, KC_CLIENT_SECRET, KC_ADMIN_PASSWORD

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.2.3) reached the registry 4 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Spec Driven Development, Remote Desktop Commander, ProAgentStore

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Spec Driven Development

by formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

Runs on your computer★ 440MITUpdated 14 months ago
Install

Remote Desktop Commander

by desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

Runs in the cloud★ 211Updated 3 days ago
Install

ProAgentStore

by ProAgentStore

MCP-first control plane for ProAgentStore agents and private instances.

Runs in the cloudUpdated today
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

mcp-keycloak-admin

A Model Context Protocol (MCP) server to administer a Keycloak instance through its Admin REST API. Safe by default, configurable, and built with a clean, test-driven architecture.

Compatible with Keycloak 26.x (validated against 26.0.5).

Install

No install needed — run it straight from npm with npx:

npx -y mcp-keycloak-admin

The server speaks MCP over stdio, so you normally wire it into an MCP client rather than running it by hand — see Usage with an MCP client. New to it? The Quickstart spins up a local Keycloak and a client config in a couple of minutes.

Why

Administering Keycloak from an MCP client (an assistant, an IDE, a custom agent) means exposing day-to-day operations — searching users, managing roles, reading events — as MCP tools, without handing over a raw admin console. This server does that with strong guardrails so destructive actions never happen silently.

Features

  • Two authentication modes, selectable by configuration:
  • service_account — a confidential client with a service account (recommended; no admin password stored).
  • password — the admin-cli client with an admin username/password.
  • Safe by default:
  • READ_ONLY mode hides every write/destructive tool.
  • ALLOWED_REALMS restricts which realms the server may operate on.
  • Destructive operations require explicit confirmation (native MCP elicitation, with a confirm: true parameter fallback for clients that do not support elicitation).
  • Clean Architecture: a framework-free domain, application use cases, and infrastructure adapters. No business concept travels as a raw string or number — every one is a validated value object.

Requirements

  • Node.js >= 20
  • A reachable Keycloak 26.x server

Usage with an MCP client

Add the server to your MCP client configuration:

{

"mcpServers": { "keycloak-admin": { "command": "npx", "args": ["-y", "mcp-keycloak-admin"], "env": { "KEYCLOAK_BASE_URL": "http://localhost:8080", "KEYCLOAK_REALM": "demo-realm", "AUTH_MODE": "service_account", "KC_CLIENT_ID": "mcp-admin", "KC_CLIENT_SECRET": "your-secret" } } } }

See docs/setup-keycloak.md to create the mcp-admin client and grant it the least-privilege roles it needs.

Multiple Keycloak instances

Each server entry targets one Keycloak (one base URL + realm + auth). To manage several environments, add one entry per instance — each fully isolated, with its own credentials and guardrails:

{

"mcpServers": { "kc-preprod": { "command": "npx", "args": ["-y", "mcp-keycloak-admin"], "env": { "KEYCLOAK_BASE_URL": "https://preprod.example.com", "KEYCLOAK_REALM": "preprod-realm", "AUTH_MODE": "service_account", "KC_CLIENT_ID": "mcp-admin", "KC_CLIENT_SECRET": "…", "ALLOWED_REALMS": "preprod-realm" } }, "kc-prod": { "command": "npx", "args": ["-y", "mcp-keycloak-admin"], "env": { "KEYCLOAK_BASE_URL": "https://auth.example.com", "KEYCLOAK_REALM": "prod-realm", "AUTH_MODE": "service_account", "KC_CLIENT_ID": "mcp-admin", "KC_CLIENT_SECRET": "…", "READ_ONLY": "true", "ALLOWED_REALMS": "prod-realm" } } } }

The client namespaces the tools per server (e.g. kc-prod:keycloak_user_delete), so there's no risk of running an operation against the wrong environment. This is the recommended pattern: you can, for example, keep production READ_ONLY while preprod stays writable.

Configuration

VariableRequiredDescription
KEYCLOAK_BASE_URLyesBase URL of the Keycloak server (no trailing slash).
KEYCLOAK_REALMyesRealm the server operates on.
AUTH_MODEyesservice_account or password.
KC_CLIENT_IDif service_accountConfidential client id (e.g. mcp-admin).
KC_CLIENT_SECRETif service_accountClient secret.
KC_ADMIN_USERNAMEif passwordAdmin username.
KC_ADMIN_PASSWORDif passwordAdmin password.
KC_ADMIN_REALMno (default master)Realm holding the admin user (password mode).
READ_ONLYno (default false)When true, write/destructive tools are not registered.
ALLOWED_REALMSnoComma-separated allow-list of realms. Empty = all.

A full example lives in .env.example.

Tools

Levels: [R] read-only · [W] write · [D] destructive (requires confirmation). Every tool carries the matching MCP annotations (readOnlyHint / destructiveHint / idempotentHint).

Currently implemented:

Note: this table tracks the main branch, which can run ahead of the

latest npm release shown by the version badge above. To confirm what's

available in your install, check npm view mcp-keycloak-admin version and pin

mcp-keycloak-admin@latest.

ToolLevelDescription
keycloak_user_searchRSearch realm users by email, username or free text.
keycloak_user_getRFetch a single user by id.
keycloak_user_sessions_listRList a user's active sessions.
keycloak_user_createWCreate a realm user.
keycloak_user_updateWUpdate a user's email, name or enabled flag.
keycloak_user_set_enabledWEnable or disable a user.
keycloak_user_send_action_emailWSend a required-actions email.
keycloak_user_reset_passwordDSet a new password for a user.
keycloak_user_logoutDRevoke all of a user's sessions.
keycloak_user_deleteDPermanently delete a user (id + username must match).
keycloak_role_listRList realm roles.
keycloak_user_roles_getRList a user's realm roles.
keycloak_user_role_assignWGrant a realm role to a user.
keycloak_user_role_unassignDRevoke a realm role from a user.
keycloak_client_roles_listRList the roles defined on a client.
keycloak_user_client_roles_getRList a user's client roles.
keycloak_user_client_role_assignWGrant a client role to a user.
keycloak_user_client_role_unassignDRevoke a client role from a user.
keycloak_client_listRList the realm clients.
keycloak_client_createWCreate a realm client.
keycloak_client_updateWUpdate a client (enabled, public, redirect URIs, CORS web origins).
keycloak_client_deleteDDelete a client.
keycloak_client_getRFetch a client by its clientId.
keycloak_client_get_secretRRead a client secret (masked unless reveal).
keycloak_client_scopes_listRList the realm's client scopes.
keycloak_client_default_scopes_getRList a client's default scopes.
keycloak_client_mappers_listRList a client's protocol mappers.
keycloak_client_scope_assignWAdd a default scope to a client.
keycloak_client_scope_unassignDRemove a default scope from a client.
keycloak_client_regenerate_secretDRegenerate a client secret (old one stops working).
keycloak_group_listRList the realm's top-level groups.
keycloak_group_members_listRList the members of a group.
keycloak_user_groups_listRList the groups a user belongs to.
keycloak_group_createWCreate a top-level group.
keycloak_group_member_addWAdd a user to a group.
keycloak_group_role_assignWGrant a realm role to a group.
keycloak_group_member_removeDRemove a user from a group.
keycloak_group_deleteDDelete a group.
keycloak_idp_listRList identity providers.
keycloak_idp_getRFetch an identity provider by alias.
keycloak_idp_mappers_listRList an identity provider's mappers.
keycloak_idp_createWCreate an identity provider.
keycloak_idp_deleteDDelete an identity provider.
keycloak_federation_listRList user federation (LDAP/Kerberos) providers.

| `keyclo

Only the beginning is shown; read the rest in the repo

Ask PopNx