An MCP Server for Keycloak
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 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
Authentication
Users authenticate with their own JWT tokens from Keycloak:
Configure in your MCP client (~/.cursor/mcp.json):
Documentation
Complete documentation is available in the docs directory:
* Getting Started Guide - Setup instructions
* Authentication Guide - User authentication
* OpenShift Deployment - Production deployment
* Developers Guide - Development guide
* Full Documentation Index - Complete table of contents
Building Documentation
This project uses MkDocs for documentation. To build and serve locally:
Visit http://localhost:8000 to view the documentation.
Container Images
Pre-built images are available on Quay.io:
Images are automatically built and pushed on commits to main and on releases.
Building
JAR
Native Image
Container Image
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
* Documentation: docs/index.md