1. Conduid
  2. Developer Tools
  3. Keycloak MCP Server
MCP server · Developer Tools

Keycloak MCP Server

An MCP server for Keycloak, designed to work with Keycloak for identity and access management, covering, Users, Realms, Clients, Roles, Groups, IDPs, Authentication. Searching keycloak discourse, Native builds available.

Unclaimed security
39Low

Scored 5 days ago · breakdown

About Keycloak MCP Server

Keycloak MCP Server is an MCP server published by sshaaf in the Developer Tools category: an MCP server for Keycloak, designed to work with Keycloak for identity and access management, covering, Users, Realms, Clients, Roles, Groups, IDPs, Authentication. Searching keycloak discourse, Native builds available.

The repository has 48 stars and 9 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Install
npx keycloak-mcp-server
Claude Code
claude mcp add keycloak-mcp-server -- npx -y keycloak-mcp-server
npx
npx -y keycloak-mcp-server
uvx
uvx keycloak-mcp-server
pip
pip install keycloak-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Keycloak MCP Server

Powered by Claude · Grounded in docs

I know everything about Keycloak MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile. Installs can pull different code over time.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.4.0Release v0.4.0 · 18 Aug 2026Highlights Keycloak MCP Server v0.4.0 ships the Commands v1 architecture from #16: a single parametric MCP tool that multiplexes ~178 Keycloak Admin operations through a CDI command registry. Intent multiplexing pattern Previously, admin…
v0.3.0Release v0.3.0 · 25 Dec 2025What's Changed Moved to SSE from stdin Deploy on K8s/OpenShift User JWT Token Authentication: Each user authenticates with their own Keycloak credentials, ensuring proper permission enforcement Comprehensive Keycloak Operations with Tools…
v0.2.0v0.2.0 · 20 Aug 20250.2.0 (2025-08-20) Features new tools for IDP, AuthFlows and more (6640dfe)
v0.1.0v0.1.0 · 1 Aug 20250.1.0 (2025-08-01) Bug Fixes reduction: reduce number of tools (#3) (150331c) Features discourse search: Adds discourse search for users. (#4) (174b1d3)

README

Keycloak MCP Server

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Overview

The Keycloak MCP Server enables AI assistants and development tools to interact with Keycloak through the Model Context Protocol. It supports comprehensive Keycloak operations including user management, realm configuration, client administration, and authentication flow management.

Key Features

  • User JWT Token Authentication
  • Comprehensive Keycloak Operations (users, realms, clients, roles, groups, etc.)
  • SSE Transport for HTTP-based communication
  • Production-ready OpenShift/Kubernetes deployment
  • Multi-architecture container images
  • GraalVM native image support

Quick Start

Using Docker

docker run -d \
  --name keycloak-mcp-server \
  -p 8080:8080 \
  -e KC_URL=https://keycloak.example.com \
  -e KC_REALM=master \
  -e OIDC_CLIENT_ID=mcp-server \
  quay.io/sshaaf/keycloak-mcp-server:latest

Authentication

Users authenticate with their own JWT tokens from Keycloak:

# Get your token
./scripts/get-mcp-token.sh \
  --keycloak-url https://keycloak.example.com \
  --username your-username \
  --password your-password

Configure in your MCP client (~/.cursor/mcp.json):

{
  "mcpServers": {
    "keycloak": {
      "transport": "sse",
      "url": "https://mcp-server.example.com/mcp/sse",
      "headers": {
        "Authorization": "Bearer <your-jwt-token>"
      }
    }
  }
}

Documentation

Complete documentation is available in the docs directory:

Building Documentation

This project uses MkDocs for documentation. To build and serve locally:

pip install mkdocs-material
mkdocs serve

Visit http://localhost:8000 to view the documentation.

Container Images

Pre-built images are available on Quay.io:

docker pull quay.io/sshaaf/keycloak-mcp-server:latest

Images are automatically built and pushed on commits to main and on releases.

Building

JAR

mvn clean package
java -jar target/quarkus-app/quarkus-run.jar

Native Image

mvn clean package -Pnative
./target/keycloak-mcp-server-runner

Container Image

mvn clean package -Dquarkus.container-image.build=true

Tests

  • Default unit and integration tests: mvn test
  • Prompt / eval coverage notes: evals/README.md

Technology Stack

  • Quarkus - Cloud-native Java framework
  • Keycloak Admin Client - Official Keycloak Java client
  • MCP Protocol - Model Context Protocol for AI integration
  • Jib - Containerization without Docker daemon
  • GraalVM - Native image compilation support

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome. See Contributors Guide for details.

Support


Maintainer: Shaaf Syed
Repository: https://github.com/sshaaf/keycloak-mcp-server
Container Registry: https://quay.io/repository/sshaaf/keycloak-mcp-server

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About Keycloak MCP Server

How do I install Keycloak MCP Server?

Run npx keycloak-mcp-server, then add the server to your MCP client's configuration.

Is Keycloak MCP Server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Keycloak MCP Server still maintained?

Yes — the latest release is v0.4.0 (18 Aug 2026), and the last commit was 2 months ago. The repository has 48 stars and 1 open issues.