SSyncDev

Keycloak Admin API MCP Server

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

Local serverstdio

What is the Keycloak Admin API MCP Server?

Keycloak Admin API is an MCP integration. Unofficial: one tool per Keycloak admin operation on a realm, read-only unless writes are enabled.

Packages and local setup

The published npm package is keycloak-api, version 3.8.1. Its declared MCP transport is stdio.

The package declares KEYCLOAK_URL (required): Base URL of the server, such as https://keycloak.example.com; KEYCLOAK_REALM (required): Realm the tools act on; KEYCLOAK_TOKEN: A fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET; KEYCLOAK_CLIENT_ID: A confidential client with a service account, for the client credentials grant; KEYCLOAK_CLIENT_SECRET: Secret of that client; KEYCLOAK_TOKEN_REALM: Realm of that client, if not KEYCLOAK_REALM (for example master); KEYCLOAK_MCP_ALLOW_WRITES: 1 to list the tools that change data; KEYCLOAK_MCP_RESOURCES: Comma separated resources to list tools for, such as users,groups,roles.

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository · Project website. This profile uses version 3.8.1 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related security & identity MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
KEYCLOAK_URLBase URL of the server, such as https://keycloak.example.comYes
KEYCLOAK_REALMRealm the tools act onYes
KEYCLOAK_TOKENA fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRETCheck documentation
KEYCLOAK_CLIENT_IDA confidential client with a service account, for the client credentials grantCheck documentation
KEYCLOAK_CLIENT_SECRETSecret of that clientCheck documentation
KEYCLOAK_TOKEN_REALMRealm of that client, if not KEYCLOAK_REALM (for example master)Check documentation
KEYCLOAK_MCP_ALLOW_WRITES1 to list the tools that change dataCheck documentation
KEYCLOAK_MCP_RESOURCESComma separated resources to list tools for, such as users,groups,rolesCheck documentation