Developer Tools · Security

MCP Keycloak

idoyudha/mcp-keycloak

A Model Context Protocol (MCP) server that provides a natural language interface for managing Keycloak identity and access management through its REST API. This server enables AI agents to perform user management, client configuration, realm administration, and role-based access control operations seamlessly.

Install

uvx mcp-keycloak

Client configuration

{
  "mcpServers": {
    "keycloak": {
      "command": "uvx",
      "args": [
        "mcp-keycloak"
      ],
      "env": {
        "SERVER_URL": "<SERVER_URL>",
        "USERNAME": "<USERNAME>",
        "PASSWORD": "<PASSWORD>",
        "REALM_NAME": "<REALM_NAME>"
      }
    }
  }
}

Environment variables

SERVER_URLUSERNAMEPASSWORDREALM_NAMECLIENT_IDCLIENT_SECRET
Author
@idoyudha
Category
Developer Tools, Security
License
MIT
Updated
Oct 6, 2026

About MCP Keycloak

The Keycloak MCP Server bridges the gap between AI applications and Keycloak's powerful identity management capabilities. Whether you're building an AI assistant that needs to manage users, configure clients, or handle complex authorization scenarios, this server provides the tools you need through simple, natural language commands.

Tools (25)

  • create_user

    update_user / delete_user - Full CRUD operations

  • reset_user_password

    Password management

  • get_user_sessions

    logout_user - Session control

  • count_users

    User statistics

  • list_clients

    get_client / create_client - Client operations

  • get_client_secret

    regenerate_client_secret - Secret management

  • get_client_service_account

    Service account access

  • update_client

    delete_client - Client modifications

  • list_realm_roles

    create_realm_role - Realm role operations

  • list_client_roles

    create_client_role - Client-specific roles

  • assign_realm_role_to_user

    remove_realm_role_from_user - Role assignments

  • get_user_realm_roles

    assign_client_role_to_user - User role queries

  • list_groups

    create_group / update_group - Group operations

  • get_group_members

    add_user_to_group - Membership management

  • get_user_groups

    remove_user_from_group - User group associations

  • get_realm_info

    update_realm_settings - Realm configuration

  • get_realm_events_config

    update_realm_events_config - Event management

  • add_realm_default_group

    remove_realm_default_group - Default settings

  • list_authentication_flows

    get_authentication_flow - Flow management

  • create_authentication_flow

    update_authentication_flow - Flow CRUD operations

  • delete_authentication_flow

    copy_authentication_flow - Flow modifications

  • get_flow_executions

    update_flow_executions - Execution management

  • create_execution

    delete_execution - Execution lifecycle

  • get_authenticator_config

    create_authenticator_config - Configuration management

  • get_required_actions

    update_required_action - Required actions control

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools