How to Use the Keycloak MCP in Claude Code
Automate Keycloak tenant provisioning and IAM rollouts directly from your terminal using Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Keycloak MCP to Claude Code
Create your Vinkius account to connect Keycloak to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Headless Identity Provisioning
The Keycloak MCP Server hooks 34 administrative IAM tools directly into your terminal environment. When you run a deployment script, your agent can fire `create_realm` to stand up a new tenant, configure the identity broker, and exit without ever opening a browser. This transforms how you handle infrastructure as code. Instead of wrestling with Terraform providers for minor changes, you just tell Claude Code to add a new microservice. It runs `create_client`, pulls the credentials via `get_client_secret`, and injects them straight into your Kubernetes secrets.
Automated Audit and Remediation
Responding to security alerts usually means frantic clicking through the Keycloak admin UI. Now your agent can tail `list_admin_events` from the command line to detect brute force attempts in real time. If it spots an active attack on a specific tenant, Claude Code can immediately execute `logout_all_users` to kill existing sessions. It then runs `update_realm` to temporarily increase password policies or enforce MFA requirements before the attacker can pivot.
Keycloak MCP Server CI/CD Pipelines
Pipeline integration is where this terminal-first approach shines. You can embed a headless agent in your GitHub Actions to run `list_client_roles` and verify that your staging environment matches your production security matrix. During a teardown phase of an ephemeral environment, the agent handles the cleanup automatically. It executes `delete_client` for the temporary app registrations and runs `delete_group` to remove test data, leaving your persistent identity store untouched.
Set up Keycloak MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seekeycloak-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Keycloak transactions." It will automatically discover and invoke the available Keycloak tools.
claude mcp add --transport http keycloak-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Keycloak MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Keycloak MCP today
We host it, we monitor it, we maintain it. You just paste one token.