convez.ai
PluginDevOps & InfraestruturaIntermediário
ChristophEnglisch

Keycloak MCP Server

ChristophEnglisch/keycloak-model-context-protocol

Administre usuários e realms Keycloak via IA com MCP

Ver no GitHub
InicialPluginScore · de 0 a 100

Servidor MCP para administração do Keycloak via Claude, permitindo gerenciamento automatizado de usuários e realms. Integra-se nativamente com Claude Desktop para operações de gestão de identidade sem necessidade de UI manual.

Instalação

$npx convez-ai ChristophEnglisch/keycloak-model-context-protocol

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
47
Forks
10
Acompanhando
2
Saúde
28%
Último commit
há 3 semanas
Versão
v1.1.0
Issues abertas
4
Contribuidores
3

Casos de uso

  • Automação de criação em lote de usuários em sistemas Keycloak
  • Gerenciamento de realms e permissões através de conversas com Claude
  • Integração de fluxos de identidade em pipelines de DevOps

Veredito

Ferramenta técnica sólida para operadores Keycloak que buscam automatizar tarefas repetitivas via IA. Implementação limpa do MCP com conjunto funcional básico mas suficiente; pronto para produção com Node.js 18+

README

A tradução para o português deste README ainda está na fila.

Keycloak MCP Server

smithery badge

A Model Context Protocol server for Keycloak administration, providing tools to manage users and realms.

Features

  • Create new users in specific realms
  • Delete users from realms
  • List available realms
  • List users in specific realms

Installation

Installing via Smithery

To install Keycloak for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install keycloak-model-context-protocol --client claude

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

Local Development Setup

If you want to develop or modify the server:

git clone <repository-url>
cd keycloak-model-context-protocol
npm install
npm run build

Configuration

Using NPM Package (Recommended)

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

For Local Development

{
  "mcpServers": {
    "keycloak": {
      "command": "node",
      "args": ["path/to/dist/index.js"],
      "env": {
        "KEYCLOAK_URL": "http://localhost:8080",
        "KEYCLOAK_ADMIN": "admin",
        "KEYCLOAK_ADMIN_PASSWORD": "admin"
      }
    }
  }
}

Available Tools

create-user

Creates a new user in a specified realm.

Inputs:

  • realm: The realm name
  • username: Username for the new user
  • email: Email address for the user
  • firstName: User's first name
  • lastName: User's last name

delete-user

Deletes a user from a specified realm.

Inputs:

  • realm: The realm name
  • userId: The ID of the user to delete

list-realms

Lists all available realms.

list-users

Lists all users in a specified realm.

Inputs:

  • realm: The realm name

Development

npm run watch

Testing

To test the server using MCP Inspector:

npx -y @modelcontextprotocol/inspector npx -y keycloak-model-context-protocol

Deployment

NPM Package

This project is automatically published to NPM via GitHub Actions when a new release is published on GitHub.

Setup Requirements for Deployment

  1. Create NPM account and get access token
  2. Add NPM_TOKEN secret to GitHub repository
    • Go to repository Settings > Secrets
    • Add new secret named NPM_TOKEN
    • Paste your NPM access token as the value

Prerequisites

  • Node.js 18 or higher
  • Running Keycloak instance
Ver o original no GitHub

Bom para

Relacionados