Skip to main content
Glama
mcp-keycloak

mcp-keycloak

by idoyudha

Keycloak MCPサーバー

Python Version MIT licensed Trust Score Listed on Spark Install via Spark

KeycloakのIDおよびアクセス管理をREST API経由で操作するための自然言語インターフェースを提供するModel Context Protocol (MCP) サーバーです。このサーバーを使用することで、AIエージェントはユーザー管理、クライアント設定、レルム管理、ロールベースのアクセス制御操作をシームレスに実行できます。

概要

Keycloak MCPサーバーは、AIアプリケーションとKeycloakの強力なID管理機能の橋渡しをします。ユーザー管理、クライアント設定、複雑な認可シナリオの処理が必要なAIアシスタントを構築する場合でも、このサーバーはシンプルな自然言語コマンドを通じて必要なツールを提供します。

Related MCP server: Keycloak MCP Server

機能

🔐 包括的なユーザー管理

作成から削除までのユーザーライフサイクル管理、パスワードリセット、セッション管理、ユーザー属性の更新などを行います。

🏢 クライアント設定

OAuth2/OIDCクライアントの作成と設定、クライアントシークレットの管理、サービスアカウントのプログラムによる処理を行います。

👥 ロールベースのアクセス制御

レルムおよびクライアント固有のロールの定義と割り当て、ユーザー権限の管理、きめ細かなアクセス制御の実装を行います。

🏛️ レルム管理

レルム設定の構成、デフォルトグループの管理、イベント設定の処理、レルム全体のポリシー制御を行います。

🔐 認証管理

フローの作成・更新・削除、実行の管理、オーセンティケーターの設定など、包括的な認証フロー管理を行います。

🔄 グループ管理

ユーザーのグループ化、グループ階層の管理、グループベースの権限を効率的に処理します。

インストール

Smithery経由でのインストール

Smithery を介してClaude Desktop用にmcp-keycloakを自動的にインストールするには:

npx -y @smithery/cli install mcp-keycloak --client claude

クイックスタート

pipを使用してインストールします:

pip install mcp-keycloak

開発用インストール

リポジトリをクローンし、依存関係をインストールします:

git clone https://github.com/idoyudha/mcp-keycloak.git
cd mcp-keycloak
pip install -e .

設定

サーバーは環境変数または .env ファイルを使用して設定できます:

# Required configuration
SERVER_URL=https://your-keycloak-server.com
USERNAME=admin-username
PASSWORD=admin-password
REALM_NAME=your-realm

# Optional OAuth2 client configuration
CLIENT_ID=optional-client-id
CLIENT_SECRET=optional-client-secret

ツール

Keycloak MCPサーバーは、機能別に整理された包括的なツールセットを提供します:

ユーザー管理

以下を含む完全なユーザーライフサイクル管理:

  • list_users - ページネーションとフィルタリングを使用したユーザー一覧表示

  • create_user / update_user / delete_user - 完全なCRUD操作

  • reset_user_password - パスワード管理

  • get_user_sessions / logout_user - セッション制御

  • count_users - ユーザー統計

クライアント管理

OAuth2/OIDCクライアント設定:

  • list_clients / get_client / create_client - クライアント操作

  • get_client_secret / regenerate_client_secret - シークレット管理

  • get_client_service_account - サービスアカウントアクセス

  • update_client / delete_client - クライアントの変更

ロール管理

きめ細かな権限制御:

  • list_realm_roles / create_realm_role - レルムロール操作

  • list_client_roles / create_client_role - クライアント固有のロール

  • assign_realm_role_to_user / remove_realm_role_from_user - ロールの割り当て

  • get_user_realm_roles / assign_client_role_to_user - ユーザーロールクエリ

グループ管理

階層的なユーザー組織化:

  • list_groups / create_group / update_group - グループ操作

  • get_group_members / add_user_to_group - メンバーシップ管理

  • get_user_groups / remove_user_from_group - ユーザーグループの関連付け

レルム管理

システム全体の設定:

  • get_accessible_realms - アクセス可能なレルムの一覧

  • get_realm_info / update_realm_settings - レルム設定

  • get_realm_events_config / update_realm_events_config - イベント管理

  • add_realm_default_group / remove_realm_default_group - デフォルト設定

認証管理

完全な認証フロー制御:

  • list_authentication_flows / get_authentication_flow - フロー管理

  • create_authentication_flow / update_authentication_flow - フローCRUD操作

  • delete_authentication_flow / copy_authentication_flow - フローの変更

  • get_flow_executions / update_flow_executions - 実行管理

  • create_execution / delete_execution - 実行ライフサイクル

  • get_authenticator_config / create_authenticator_config - 設定管理

  • get_required_actions / update_required_action - 必須アクション制御

使用方法

サーバーの実行

サーバーはstdio(デフォルト)とHTTPトランスポートの両方をサポートしています。smithery.yaml設定ファイルにより、SmitheryプラットフォームへのデプロイとSmithery CLI経由の自動インストールが可能です:

# Run in stdio mode (default, for local CLI tools)
python -m src.main

# Run in HTTP mode with streamable HTTP transport
TRANSPORT=http python -m src.main

# Run HTTP mode on a custom port
TRANSPORT=http PORT=8080 python -m src.main

# Or use the convenience script:
./scripts/run_server.sh         # stdio mode (default)
./scripts/run_server.sh http    # HTTP mode
PORT=8080 ./scripts/run_server.sh http  # HTTP mode on custom port

HTTPトランスポートを使用する場合、サーバーには http://127.0.0.1:8000/mcp/ (またはカスタムPORT)からアクセス可能です。

HTTPトランスポート

Keycloak MCPサーバーはHTTPトランスポートモードをサポートしており、いくつかの利点があります:

  • ネットワークアクセス性: ネットワーク上のどのマシンからでもサーバーにアクセス可能

  • 複数のクライアント: 複数のAIクライアントからの同時接続をサポート

  • 統合の柔軟性: WebアプリケーションやAPIとの統合が容易

  • 負荷分散: スケーラビリティのためにリバースプロキシの背後にデプロイ可能

HTTPプロトコルの詳細

HTTPトランスポートは、Streamable HTTPのMCP仕様に従います。FastMCPはすべてのプロトコル要件を自動的に処理します:

  • エンドポイント: すべての通信は /mcp/ エンドポイントを通じて行われます

  • リクエストメソッド: JSON-RPC 2.0メッセージを含むPOSTリクエスト

  • コンテンツタイプ:

    • サーバーは単一のレスポンスに対して Content-Type: application/json を返します

    • サーバーはストリーミングレスポンスに対して Content-Type: text/event-stream を返します

  • Acceptヘッダー: クライアントは Accept: application/json, text/event-stream を含める必要があります

  • メッセージ形式: すべてのメッセージはUTF-8エンコードされたJSON-RPC 2.0形式を使用します

FastMCPは、リクエストタイプとレスポンスにストリーミング機能が必要かどうかに基づいて、単一のJSONレスポンスを返すかSSEストリームを返すかを自動的に判断します。

HTTPサーバーへの接続

HTTPモードで実行する場合、クライアントは以下に接続できます:

http://127.0.0.1:8000/mcp/

クライアントリクエストの例:

curl -X POST http://localhost:8000/mcp/ \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "method": "list_tools", "id": 1}'

セキュリティの実装

HTTPトランスポートは、すべてのMCP仕様のセキュリティ要件を実装しています:

✅ Originヘッダーの検証 (必須)

  • DNSリバインディング攻撃を防ぐためにOriginヘッダーを自動的に検証します

  • localhost および 127.0.0.1 オリジンからの接続のみを許可します

  • 許可されていないクロスオリジンリクエストをブロックします

✅ Localhostバインディング (推奨)

  • ネットワークベースの攻撃を防ぐために 127.0.0.1 にのみバインドします

  • MCP仕様のセキュリティ推奨事項に従います

✅ 認証不要

  • サーバーはローカル開発を簡素化するために認証要件なしで実行されます

  • localhostでの使用や信頼された環境に適しています

本番環境へのデプロイでは、以下の追加の考慮事項があります:

  • 適切な証明書を使用してHTTPSを使用する

  • リバースプロキシ(nginx、Apache)の背後にデプロイする

  • 適切なファイアウォールルールを設定する

  • 必要に応じてリバースプロキシレベルで認証を実装する

統合例

前提条件

Keycloak MCPサーバーを統合する前に、以下がインストールされていることを確認してください:

  • uvx (推奨): pip install uvx または pipx install uvx でインストール

  • uv: インストール手順 に従ってください

  • npm/npx: Smitheryインストール用 (Node.js に付属)

オプション1: Smithery CLIの使用 (推奨)

最も簡単な方法で、Claude Desktop用にすべてを自動的に設定します:

npx @smithery/cli install @idoyudha/mcp-keycloak --client claude

このコマンドは、必要な設定値の入力を求め、サーバーを自動的にセットアップします。

オプション2: uvxの使用 (手動セットアップ)

クローンは不要です! claude_desktop_config.json に追加してください:

{
  "mcpServers": {
    "keycloak": {
      "command": "uvx",
      "args": ["mcp-keycloak"],
      "env": {
        "SERVER_URL": "https://your-keycloak.com",
        "USERNAME": "admin",
        "PASSWORD": "admin-password",
        "REALM_NAME": "your-realm"
      }
    }
  }
}

オプション3: ローカル開発セットアップ

開発やカスタマイズ用:

  1. リポジトリをクローンします:

git clone https://github.com/idoyudha/mcp-keycloak.git
cd mcp-keycloak
  1. claude_desktop_config.json に追加します:

{
  "mcpServers": {
    "keycloak": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-keycloak",
        "run",
        "python",
        "-m",
        "src"
      ],
      "env": {
        "SERVER_URL": "https://your-keycloak.com",
        "USERNAME": "admin",
        "PASSWORD": "admin-password",
        "REALM_NAME": "your-realm"
      }
    }
  }
}

💡 クイックヒント:

  • /path/to/mcp-keycloak をリポジトリをクローンした実際のパスに置き換えてください

  • KeycloakサーバーのURLにプロトコル (https:// または http://) が含まれていることを確認してください

  • REALM_NAME は、Keycloakインスタンス内の既存のレルムと一致する必要があります

使用例

🤖 AIを活用したID管理

自然言語コマンドを通じて、ユーザーのオンボーディング、権限管理、アクセス制御を処理できるAIアシスタントを構築します。

🔄 自動ユーザープロビジョニング

ビジネスルールに基づいて、ユーザーの自動プロビジョニング、ロールの割り当て、クライアントアプリケーションの設定を行うワークフローを作成します。

📊 ID分析

ユーザーデータ、セッション情報、アクセスパターンをクエリおよび分析し、IDインフラストラクチャに関する洞察を得ます。

🚀 DevOps統合

Keycloak管理をCI/CDパイプラインに統合し、IDサービスの自動設定を可能にします。

要件

  • Python 3.8以上

  • Keycloakサーバー (Keycloak 18+でテスト済み)

  • Keycloakレルムへの管理者アクセス権

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。詳細はLICENSEファイルを参照してください。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

サポート

問題、質問、貢献については、GitHubリポジトリ をご覧ください。

Available Tools

47 tools
add_realm_default_groupC
Add a default group to the realm.

Args:
    group_id: Group ID to add as default
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: group_id (required), realm. Returns: object

add_user_to_groupC
Add a user to a group.

Args:
    user_id: User ID
    group_id: Group ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), group_id (required), realm. Returns: object

assign_client_role_to_userC
Assign client roles to a user.

Args:
    user_id: User ID
    client_id: Client database ID
    role_names: List of role names to assign
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), client_id (required), role_names (required), realm. Returns: object

assign_realm_role_to_userC
Assign realm roles to a user.

Args:
    user_id: User ID
    role_names: List of role names to assign
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), role_names (required), realm. Returns: object

count_usersA
Count all users.

Args:
    realm: Target realm (uses default if not specified)

Returns:
    Number of users

Inputs: realm. Returns: result

create_clientC
Create a new client.

Args:
    client_id: Client ID (unique identifier)
    name: Display name
    description: Client description
    enabled: Whether the client is enabled
    always_display_in_console: Always display in account console
    root_url: Root URL for relative URLs
    redirect_uris: Valid redirect URIs
    web_origins: Allowed CORS origins
    protocol: Protocol (openid-connect or saml)
    public_client: Public client (no secret)
    bearer_only: Bearer-only client
    service_accounts_enabled: Enable service accounts
    authorization_services_enabled: Enable authorization services
    direct_access_grants_enabled: Enable direct access grants (password flow)
    implicit_flow_enabled: Enable implicit flow
    standard_flow_enabled: Enable standard flow (authorization code)
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: client_id (required), name, realm, enabled, +13 more. Returns: object

create_client_roleC
Create a new client role.

Args:
    client_id: Client database ID
    name: Role name
    description: Role description
    composite: Whether this is a composite role
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: name (required), client_id (required), realm, composite, +1 more. Returns: object

create_groupC
Create a new group.

Args:
    name: Group name
    path: Group path
    attributes: Group attributes
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: name (required), path, realm, attributes. Returns: object

create_realm_roleC
Create a new realm role.

Args:
    name: Role name
    description: Role description
    composite: Whether this is a composite role
    client_role: Whether this is a client role
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: name (required), realm, composite, client_role, +1 more. Returns: object

create_userC
Create a new user.

Args:
    username: Username for the new user
    email: Email address
    first_name: First name
    last_name: Last name
    enabled: Whether the user is enabled
    email_verified: Whether the email is verified
    temporary_password: Initial password (user will be required to change it)
    attributes: Additional user attributes
    realm: Target realm (uses default if not specified)

Returns:
    Dict with status and location of created user

Inputs: username (required), email, realm, enabled, +5 more. Returns: object

delete_clientC
Delete a client.

Args:
    id: The client's database ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: id (required), realm. Returns: object

delete_groupC
Delete a group.

Args:
    group_id: Group ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: group_id (required), realm. Returns: object

delete_realm_roleC
Delete a realm role.

Args:
    role_name: Role name to delete
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: role_name (required), realm. Returns: object

delete_userC
Delete a user.

Args:
    user_id: The user's ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), realm. Returns: object

get_accessible_realmsA
Get accessible realms.

Returns:
    List of accessible realms

Inputs: no named parameters. Returns: result

get_clientA
Get a specific client by database ID.

Args:
    id: The client's database ID (not client_id)
    realm: Target realm (uses default if not specified)

Returns:
    Client object

Inputs: id (required), realm. Returns: object

get_client_by_clientidC
Get a specific client by client ID.

Args:
    client_id: The client's client_id
    realm: Target realm (uses default if not specified)

Returns:
    Client object

Inputs: client_id (required), realm. Returns: object

get_client_secretC
Get the client secret.

Args:
    id: The client's database ID
    realm: Target realm (uses default if not specified)

Returns:
    Client secret object

Inputs: id (required), realm. Returns: object

get_client_service_accountB
Get service account user for a client.

Args:
    id: The client's database ID
    realm: Target realm (uses default if not specified)

Returns:
    Service account user object

Inputs: id (required), realm. Returns: object

get_groupC
Get a specific group by ID.

Args:
    group_id: Group ID
    realm: Target realm (uses default if not specified)

Returns:
    Group object

Inputs: group_id (required), realm. Returns: object

get_group_membersA
Get members of a group.

Args:
    group_id: Group ID
    first: Pagination offset
    max: Maximum results size
    realm: Target realm (uses default if not specified)

Returns:
    List of group members

Inputs: group_id (required), max, first, realm. Returns: result

get_realm_default_groupsA
Get default groups for the realm.

Args:
    realm: Target realm (uses default if not specified)

Returns:
    List of default groups

Inputs: realm. Returns: result

get_realm_events_configC
Get realm events configuration.

Args:
    realm: Target realm (uses default if not specified)

Returns:
    Events configuration object

Inputs: realm. Returns: object

get_realm_infoC
Get information about the current realm.

Args:
    realm: Target realm (uses default if not specified)

Returns:
    Realm configuration object

Inputs: realm. Returns: object

get_realm_roleC
Get a specific realm role by name.

Args:
    role_name: Role name
    realm: Target realm (uses default if not specified)

Returns:
    Role object

Inputs: role_name (required), realm. Returns: object

get_userC
Get a specific user by ID.

Args:
    user_id: The user's ID
    realm: Target realm (uses default if not specified)

Returns:
    User object

Inputs: user_id (required), realm. Returns: object

get_user_groupsA
Get all groups for a user.

Args:
    user_id: User ID
    realm: Target realm (uses default if not specified)

Returns:
    List of groups the user belongs to

Inputs: user_id (required), realm. Returns: result

get_user_realm_rolesA
Get realm roles for a user.

Args:
    user_id: User ID
    effective: Get effective roles (including composite roles)
    realm: Target realm (uses default if not specified)

Returns:
    List of realm roles

Inputs: user_id (required), realm, effective. Returns: result

get_user_sessionsB
Get active sessions for a user.

Args:
    user_id: The user's ID
    realm: Target realm (uses default if not specified)

Returns:
    List of active sessions

Inputs: user_id (required), realm. Returns: result

list_client_rolesB
List roles for a specific client.

Args:
    client_id: Client database ID
    first: Pagination offset
    max: Maximum results size
    search: Search string
    realm: Target realm (uses default if not specified)

Returns:
    List of client roles

Inputs: client_id (required), max, first, realm, +1 more. Returns: result

list_clientsB
List clients in the realm.

Args:
    client_id: Filter by client ID (partial match)
    viewable_only: Only return viewable clients
    first: Pagination offset
    max: Maximum results size
    realm: Target realm (uses default if not specified)

Returns:
    List of client objects

Inputs: max, first, realm, client_id, +1 more. Returns: result

list_groupsA
List all groups in the realm.

Args:
    first: Pagination offset
    max: Maximum results size
    search: Search string
    realm: Target realm (uses default if not specified)

Returns:
    List of groups

Inputs: max, first, realm, search. Returns: result

list_realm_rolesA
List all realm roles.

Args:
    first: Pagination offset
    max: Maximum results size
    search: Search string
    realm: Target realm (uses default if not specified)

Returns:
    List of realm roles

Inputs: max, first, realm, search. Returns: result

list_usersA
List users in the realm.

Args:
    first: Pagination offset
    max: Maximum results size (defaults to 100)
    search: Search string for username, first/last name, or email
    username: Username filter
    email: Email filter
    enabled: Filter by enabled/disabled users
    realm: Target realm (uses default if not specified)

Returns:
    List of user objects

Inputs: max, email, first, realm, +3 more. Returns: result

logout_userB
Logout all sessions for a user.

Args:
    user_id: The user's ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), realm. Returns: object

regenerate_client_secretC
Regenerate the client secret.

Args:
    id: The client's database ID
    realm: Target realm (uses default if not specified)

Returns:
    New client secret object

Inputs: id (required), realm. Returns: object

remove_all_user_sessionsB
Remove all sessions for all users in the realm.

Args:
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: realm. Returns: object

remove_realm_default_groupC
Remove a default group from the realm.

Args:
    group_id: Group ID to remove from defaults
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: group_id (required), realm. Returns: object

remove_realm_role_from_userC
Remove realm roles from a user.

Args:
    user_id: User ID
    role_names: List of role names to remove
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), role_names (required), realm. Returns: object

remove_user_from_groupC
Remove a user from a group.

Args:
    user_id: User ID
    group_id: Group ID
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), group_id (required), realm. Returns: object

reset_user_passwordC
Reset a user's password.

Args:
    user_id: The user's ID
    password: New password
    temporary: Whether the password is temporary (user must change on next login)
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), password (required), realm, temporary. Returns: object

update_clientC
Update an existing client.

Args:
    id: The client's database ID
    client_id: New client ID
    name: New display name
    description: New description
    enabled: Whether the client is enabled
    redirect_uris: New redirect URIs
    web_origins: New CORS origins
    public_client: Whether client is public
    service_accounts_enabled: Enable service accounts
    direct_access_grants_enabled: Enable direct access grants
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: id (required), name, realm, enabled, +7 more. Returns: object

update_groupC
Update a group.

Args:
    group_id: Group ID
    name: New group name
    path: New group path
    attributes: New group attributes
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: group_id (required), name, path, realm, +1 more. Returns: object

update_realm_events_configC
Update realm events configuration.

Args:
    events_enabled: Enable events
    events_listeners: Event listener implementations
    enabled_event_types: Types of events to record
    admin_events_enabled: Enable admin events
    admin_events_details_enabled: Include details in admin events
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: realm, events_enabled, events_listeners, enabled_event_types, +2 more. Returns: object

update_realm_roleC
Update a realm role.

Args:
    role_name: Current role name
    description: New description
    composite: Whether this is a composite role
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: role_name (required), realm, composite, description. Returns: object

update_realm_settingsC
Update realm settings.

Args:
    display_name: Display name for the realm
    display_name_html: HTML display name
    login_theme: Login theme name
    account_theme: Account management theme
    admin_theme: Admin console theme
    email_theme: Email theme
    enabled: Whether realm is enabled
    registration_allowed: Allow user registration
    registration_email_as_username: Use email as username
    reset_password_allowed: Allow password reset
    remember_me: Enable remember me
    verify_email: Require email verification
    login_with_email_allowed: Allow login with email
    duplicate_emails_allowed: Allow duplicate emails
    ssl_required: SSL requirement (none, external, all)
    brute_force_protected: Enable brute force protection
    permanent_lockout: Permanent lockout on max failures
    max_failure_wait_seconds: Max wait after failures
    minimum_quick_login_wait_seconds: Min wait between quick logins
    wait_increment_seconds: Wait increment
    quick_login_check_milli_seconds: Quick login check interval
    max_delta_time_seconds: Max time between failures
    failure_factor: Failure factor
    default_locale: Default locale
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: realm, enabled, admin_theme, email_theme, +21 more. Returns: object

update_userB
Update an existing user.

Args:
    user_id: The user's ID
    username: New username
    email: New email address
    first_name: New first name
    last_name: New last name
    enabled: Whether the user is enabled
    email_verified: Whether the email is verified
    attributes: Updated user attributes
    realm: Target realm (uses default if not specified)

Returns:
    Status message

Inputs: user_id (required), email, realm, enabled, +5 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 47 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource and action, with role/user/group/client boundaries generally easy to infer. A few pairs could still be confused at a glance, notably get_client vs get_client_by_clientid and logout_user vs remove_all_user_sessions, though their descriptions clarify the differences.

    Naming Consistency5/5

    Tool names follow a predictable snake_case verb_noun pattern throughout, such as list_users, create_group, update_realm_role, and assign_client_role_to_user. Minor naming quirks like get_client_by_clientid do not break the overall consistency.

    Tool Count2/5

    The server exposes 47 tools, which is well above the typical well-scoped range and makes the surface feel heavy even for Keycloak administration. While the domain is broad, many tools are highly granular and could be consolidated or grouped.

    Completeness3/5

    Core CRUD and lifecycle operations are covered for users, groups, clients, and realm roles, along with sessions, secrets, and realm settings. However, there are notable role-management gaps: client roles can be listed and created but not updated/deleted, and there is no remove_client_role_from_user counterpart to assign_client_role_to_user.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables management of Keycloak identity and access management through the Keycloak Admin REST API, providing 299 tools for operations like user management, client configuration, and realm administration via natural language.
      100
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables administrators to manage Keycloak realms, users, roles, clients, groups, and more through its Admin REST API, with safe-by-default configuration and destructive operation confirmation.
      56
      74 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables administration of Keycloak identity and access management through MCP, allowing management of realms, clients, users, roles, groups, identity providers, and sessions from any MCP client.
      Apache 2.0