Keycloak Admin API

io.github.sferarc/keycloak-api-mcp

Unofficial: one tool per Keycloak admin operation on a realm, read-only unless writes are enabled

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "keycloak-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "keycloak-api@3.8.0"
      ],
      "env": {
        "KEYCLOAK_URL": "<your KEYCLOAK_URL>",
        "KEYCLOAK_REALM": "<your KEYCLOAK_REALM>",
        "KEYCLOAK_TOKEN": "<your KEYCLOAK_TOKEN>",
        "KEYCLOAK_CLIENT_SECRET": "<your KEYCLOAK_CLIENT_SECRET>"
      }
    }
  }
}
Environment variables
  • KEYCLOAK_URLrequiredBase URL of the server, such as https://keycloak.example.com
  • KEYCLOAK_REALMrequiredRealm the tools act on
  • KEYCLOAK_TOKENsecretA fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET
  • KEYCLOAK_CLIENT_SECRETsecretSecret of that client

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
3.8.0
Registry
active
Published
11/6/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that Keycloak Admin API is listed here — it’s also the link we check for a free listing.

Keycloak Admin API — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-sferarc-keycloak-api-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Keycloak Admin API — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Keycloak Admin API — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-sferarc-keycloak-api-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.