SK

sshaaf/keycloak-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

48 stars 9 forks 品質 67 トレンド 21

Keycloak 用の MCP サーバー, アイデンティティとアクセス管理のための Keycloak と連携するように設計, カバー, ユーザー, Realms, クライアント, ロール, グループ, IDPs, 認証.

概要

Keycloak管理機能へのプログラム的なアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。 Keycloak MCP Server は、モデルコンテキストプロトコルを介して Keycloak とやり取りする AI アシスタントと開発ツールを可能にします。 ユーザー管理、リアルタイム設定、クライアント管理、認証フロー管理など、包括的なKeycloak操作をサポートします。 * ユーザ JWT トークン認証 * 包括的な Keycloak オペレーション(ユーザ、レルム、クライアント、ロール、グループなど) * HTTP ベースの通信のための SSE 輸送 * 生産準備準備完了 OpenShift/Kubernetes デプロイメント * 複数のアーキテクチャコンテナイメージ * GraalVM ネイティブイメージのサポート ユーザーは、Keycloakから独自のJWTトークンを認証します。 MCP クライアントの設定 (~/.cursor/mcp).

概要(AI 翻訳)

Keycloak 用の MCP サーバー

Keycloak MCP サーバー

Keycloak管理機能へのプログラム的なアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。

概要

Keycloak MCP Server は、モデルコンテキストプロトコルを介して Keycloak とやり取りする AI アシスタントと開発ツールを可能にします。 ユーザー管理、リアルタイム設定、クライアント管理、認証フロー管理など、包括的なKeycloak操作をサポートします。

主な特長

  • ユーザーJWTトークン認証 *広範囲のKeycloak操作(ユーザー、実体、顧客、役割、グループ、等)
  • HTTP ベースの通信のための SSE 輸送
  • 生産準備完了 OpenShift/Kubernetes展開 *マルチアーキテクチャコンテナイメージ
  • GraalVMネイティブイメージサポート

クイックスタート

Docker の使用

##認証

ユーザーは、Keycloakから独自のJWTトークンを認証します。

MCP クライアント ([~/.cursor/mcp.json]) で構成します。

ドキュメント

docs ディレクトリに完全なドキュメントが使用可能です。

  • 入門ガイド - セットアップ手順 *認証ガイド - ユーザー認証
  • OpenShiftの展開 - 生産展開
  • 開発者ガイド - 開発ガイド

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

An MCP Server for Keycloak

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 "
      }
    }
  }
}

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

GitHub で README 全文を見る

インストール

docker run -d \
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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