MCP Catalogs
Home

keycloak-model-context-protocol

by ChristophEnglisch·42·Score 39

MCP server for Keycloak administration that enables AI-powered user and realm management through Claude Desktop.

securitydeveloper-toolsops-infra
9
Forks
4
Open issues
15 mo ago
Last commit
2d ago
Indexed

Overview

The Keycloak MCP server provides a seamless interface for managing Keycloak users and realms through the Model Context Protocol. It exposes essential tools such as creating users, deleting users, listing realms, and listing users in specific realms. The server is implemented in TypeScript and is designed to integrate smoothly with Claude Desktop and other MCP clients, enabling automated user administration tasks. With recent maintenance (15 months ago), it appears to be actively maintained and suitable for production environments.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Automate Keycloak user provisioning for new employees
you:Enable AI assistants to manage user access across different realms
you:Simplify administrative tasks through natural language commands to an AI
you:What prerequisites are needed to use this server?
you:How can I test the MCP server?

When to choose this

Choose this server if you're using Keycloak for identity management and want to integrate user administration capabilities directly into AI workflows.

When NOT to choose this

Don't choose this if you need more advanced Keycloak features like group management, realm configuration, or integration with other identity solutions.

Tools this server exposes

4 tools extracted from the README
  • create-usercreate-user(realm: string, username: string, email: string, firstName: string, lastName: string)

    Creates a new user in a specified realm

  • delete-userdelete-user(realm: string, userId: string)

    Deletes a user from a specified realm

  • list-realmslist-realms()

    Lists all available realms

  • list-userslist-users(realm: string)

    Lists all users in a specified realm

Comparable tools

auth0-mcpokta-mcpmicrosoft-entra-id-mcp

Installation

Installing via NPM (Recommended)

The server is available as an NPM package:

# Direct usage with npx
npx -y keycloak-model-context-protocol

# Or global installation
npm install -g keycloak-model-context-protocol

Configuration for Claude Desktop

Configure the server in your Claude Desktop configuration file:

{
  "mcpServers": {
    "keycloak": {
      "command": "npx",
      "args": ["-y", "keycloak-model-context-protocol"],
      "env": {
        "KEYCLOAK_URL": "http://localhost:8080",
        "KEYCLOAK_ADMIN": "admin",
        "KEYCLOAK_ADMIN_PASSWORD": "admin"
      }
    }
  }
}

FAQ

What prerequisites are needed to use this server?
You need Node.js 18 or higher and a running Keycloak instance.
How can I test the MCP server?
You can test the server using MCP Inspector with the command: `npx -y @modelcontextprotocol/inspector npx -y keycloak-model-context-protocol`

Compare keycloak-model-context-protocol with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.