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 MCP Server

MCP server by M0-AR Verified · npm:keycloak-mcp-server

Keycloak MCP Server lets AI assistants manage Keycloak users, realms, clients, roles, groups, organizations and identity providers. It is built for Keycloak administrators who want to work from tools like Claude Desktop or Cursor AI.

  • Score 45
  • 6 stars
  • 46 a week
  • MIT
  • Updated

Install Keycloak MCP Server

Built from the published package, never by AI.

claude mcp add keycloak-mcp-server -- npx -y keycloak-mcp-server

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

Step-by-step: install Keycloak MCP Server 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-mcp-server block.

About

Keycloak MCP Server is a Model Context Protocol server for Keycloak administration. The README describes 80+ tools for managing users, realms, clients, roles, groups, sessions, events, organizations, protocol mappers, user attributes, client scopes, and identity providers. It works with AI assistants such as Claude Desktop and Cursor AI.

The server is configured with the Keycloak URL, admin username and admin password as environment variables. It can be run with npx, installed globally from npm, or built from the GitHub repository. The source is aimed at people who administer Keycloak and want to do so from an AI assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • create-userCreates a new user in a specified realm.
  • search-usersSearches users by username, email, first name or last name.
  • create-realmCreates a new realm with configurable settings.
  • create-clientRegisters a new client or application in a realm.
  • create-protocol-mapperCreates protocol mappers for clients, such as organization claims in JWT.
  • create-roleCreates roles at realm or client level.
  • create-organizationCreates a new organization in a realm.
  • add-organization-memberAdds a user to an organization.
  • list-clientsLists all clients in a realm.
  • create-client-scopeCreates a client scope for managing token scopes.

What you need

  • Node.js 18 or higher
  • A running Keycloak instance, local or remote
  • Keycloak admin credentials with appropriate permissions
  • An AI assistant that supports MCP, such as Claude Desktop or Cursor AI

Try asking

  • Create a user "john.doe" with email john@example.com in the master realm
  • Search for users with email containing wateen.io in the master realm
  • List all protocol mappers for client "my-app" in the master realm

Good to know

  • Requires Keycloak admin credentials with appropriate permissions.
  • Some tools delete users, realms, clients, roles or organizations.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Keycloak MCP Server

All alternatives →
Agentmesh MCP Proxy microsoft
94

Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.

AAA Local 6.6k
Bla qybaihe
94

Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.

AAA Local 7.3k
Bla Agents qybaihe
94

Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.

AAA Local 11k/wk
MCP Auth zgeoff
94

A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner

AAC Local 44k/wk
Agentos MCP Server microsoft
94

Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.

AAA Local 6.6k
Convex MCP Gateway tfohlmeister
93

Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.

AAC Local 37k/wk

Compare with Agentmesh MCP Proxy, Bla or Bla Agents

Keycloak MCP Server: common questions

Does Keycloak MCP Server work with Claude Desktop?

The README includes setup steps for Claude Desktop and Cursor AI. It describes the server as usable from AI assistants such as these.

What settings does it need to connect to Keycloak?

It needs KEYCLOAK_URL, KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD. The admin account needs appropriate permissions in Keycloak.

Which operating systems does Keycloak MCP Server support?

The README lists cross-platform support for Windows, macOS and Linux.

How do I install Keycloak MCP Server?

In Claude Code run claude mcp add keycloak-mcp-server -- npx -y keycloak-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Keycloak MCP Server the official server?

Keycloak MCP Server is published by npm:keycloak-mcp-server from its verified domain in the official MCP Registry.

Is Keycloak MCP Server free?

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

Is Keycloak MCP Server safe to use?

It scores 45 of 100. Grades: maintenance F, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Keycloak MCP Server?

Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.

Does Keycloak MCP Server 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 MCP Server Install

Add to stack

Loading.