Back to Home
HaithamOumerzoug icon

keycloak-mcp

Verified Safe

by HaithamOumerzoug

Overview

Manages Keycloak users, realms, clients, roles, and groups through a standardized Model Context Protocol (MCP) interface for AI agents.

Installation

Run Command
npx -y keycloak-mcp --keycloak-url <Keycloak Instance URL> --keycloak-admin <Admin Username> --keycloak-admin-password <Admin Password>

Environment Variables

  • KEYCLOAK_URL
  • KEYCLOAK_ADMIN
  • KEYCLOAK_ADMIN_PASSWORD

Security Notes

The server uses the official Keycloak Admin Client and implements robust input validation using Zod schemas for all tool arguments. Admin credentials (URL, username, password) are loaded from environment variables or command-line arguments and are validated to ensure they are not empty. There are no direct 'eval' calls or obvious malicious patterns in the provided source. The primary security consideration is the sensitive nature of the Keycloak admin credentials, which grant full administrative access to Keycloak. Proper handling of these credentials in the deployment environment (e.g., using secure secrets management) is critical to prevent unauthorized access to the Keycloak instance.

Similar Servers

Stats

Interest Score37
Security Score8
Cost ClassLow
Avg Tokens150
Stars8
Forks4
Last Update2025-12-01

Tags

keycloakmcp-serveridentity-managementadmin-clienttypescript