4,500+ servers built on MCP Fusion
Vinkius
Keycloak logo
Vinkius
Claude Code logo

How to Use the Keycloak MCP in Claude Code

Automate Keycloak tenant provisioning and IAM rollouts directly from your terminal using Claude Code.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Keycloak MCP on Cursor AI Code Editor MCP Client Keycloak MCP on Claude Desktop App MCP Integration Keycloak MCP on OpenAI Agents SDK MCP Compatible Keycloak MCP on Visual Studio Code MCP Extension Client Keycloak MCP on GitHub Copilot AI Agent MCP Integration Keycloak MCP on Google Gemini AI MCP Integration Keycloak MCP on Lovable AI Development MCP Client Keycloak MCP on Mistral AI Agents MCP Compatible Keycloak MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Claude Code

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.

GDPR Free for Subscribers

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.

Setup guide

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. 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 user to make it available across all projects.

  2. 2

    Verify the connection

    Start a Claude Code session and type /mcp to list connected servers. You should see keycloak-mcp with a green status indicator.

  3. 3

    Start using tools

    Ask Claude Code something like "Check my latest Keycloak transactions." It will automatically discover and invoke the available Keycloak tools.

Terminal
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

Run `claude mcp add --transport http keycloak-server -- `. Make sure you place all flags before the server name. The configuration saves directly to your `~/.claude.json` file.
Yes. You can trigger a cron job that wakes up the agent, tells it to run `partial_export_realm`, and pipes the resulting JSON into an S3 bucket for backup purposes.
The MCP server manages the underlying admin client session and handles token refreshes automatically. Your terminal agent just calls tools like `list_users` or `get_role`, and the server ensures the request is authenticated.
You can. Tools like `list_auth_flows` and `create_auth_flow` are fully supported. Your agent can script complex browser-based OIDC redirects entirely from a headless shell.
Operations like `get_client_secret` return raw authentication material that could compromise your entire infrastructure. The Vinkius platform processes these requests inside an ephemeral, zero-trust sandbox, guaranteeing that your admin payloads are destroyed the millisecond the terminal session receives them.

Start using the Keycloak MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 34 tools

We've already built the connector for Keycloak. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 34 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.