Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Keycloak Admin API

MCP server by sferarc Community

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

  • Score 30
  • 0 stars
  • ISC
  • Updated

Install Keycloak Admin API

Built from the published package, never by AI.

claude mcp add keycloak-admin-api -e KEYCLOAK_URL=YOUR_KEYCLOAK_URL -e KEYCLOAK_REALM=YOUR_KEYCLOAK_REALM -- npx -y keycloak-api

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Keycloak Admin API in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the keycloak-admin-api block.

What you need

SettingNeededWhat it is
KEYCLOAK_URLEnvironment variableRequiredBase URL of the server, such as https://keycloak.example.com
KEYCLOAK_REALMEnvironment variableRequiredRealm the tools act on
KEYCLOAK_TOKENEnvironment variable, secretOptionalA fixed access token; otherwise set KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET
KEYCLOAK_CLIENT_IDEnvironment variableOptionalA confidential client with a service account, for the client credentials grant
KEYCLOAK_CLIENT_SECRETEnvironment variable, secretOptionalSecret of that client
KEYCLOAK_TOKEN_REALMEnvironment variableOptionalRealm of that client, if not KEYCLOAK_REALM (for example master)
KEYCLOAK_MCP_ALLOW_WRITESEnvironment variableOptional1 to list the tools that change data
KEYCLOAK_MCP_RESOURCESEnvironment variableOptionalComma separated resources to list tools for, such as users,groups,roles

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Alternatives to Keycloak Admin API

All alternatives →

Compare with Medplum, mcp-server or Microsoft Fabric MCP Server

Keycloak Admin API: common questions

How do I install Keycloak Admin API?

In Claude Code run claude mcp add keycloak-admin-api -e KEYCLOAK_URL=YOUR_KEYCLOAK_URL -e KEYCLOAK_REALM=YOUR_KEYCLOAK_REALM -- npx -y keycloak-api. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Keycloak Admin API the official server?

Keycloak Admin API is a community project by sferarc, not verified by a company domain.

Is Keycloak Admin API free?

The code is published under the ISC licence. The service it connects to may have its own pricing.

Is Keycloak Admin API safe to use?

It scores 30 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to Keycloak Admin API?

Similar MCP servers: Medplum, mcp-server, Microsoft Fabric MCP Server, Template MCP Server.

Does Keycloak Admin API work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Keycloak Admin API Install

Add to stack

Loading.