This MCP server enables natural language interaction with Keycloak for user and realm management including creating, deleting, and listing users and realms.
Documentation
Keycloak MCP Server
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:
npx -y keycloak-model-context-protocol\n\n# Or global installation
npm install -g keycloak-model-context-protocol
Local Development Setup
If you want to develop or modify the server:
git clone
cd keycloak-model-context-protocol
npm install
npm run build
Configuration# Using NPM Package (Recommended)
Configure the server in your Claude Desktop configuration file:
This project is automatically published to NPM via GitHub Actions when a new release is published on GitHub.
Setup Requirements for Deployment
Create NPM account and get access token
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