Phase Two Keycloak — Claude Code MCP server: what it does
Phase Two Keycloak is an MCP server for automating Keycloak configurations via AI agents. It connects to the Phase Two cloud platform to manage SSO, access policies, and infrastructure.
CC-BY-SA-4.0 ★ 5 updated 2026-11-17
claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcpWhat Phase Two Keycloak does
This server enables AI agents to manage Keycloak extensions through direct commands. It supports setting up passwordless authentication, social logins, enterprise SSO, and organization-based access controls. The server acts as a remote bridge to verify configuration changes against live deployments.
Authentication happens automatically through OAuth clients predefined for each compatible agent. It works with both self-hosted and Phase Two cloud environments.
What it helps with
- Configure passwordless authentication flows in Keycloak
- Set up corporate SSO via email domain mapping
- Provision new clusters or deployments in Phase Two
Example prompts for the agent
- Configure passwordless login for the Keycloak realm
- Restrict organization membership by email domain
How to install Phase Two Keycloak
Platform CLI: remote server
claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcpPlatform CLI: remote server
codex mcp add phase-two-keycloak --url https://mcp.phasetwo.io/mcpConfig file
{
"mcpServers": {
"phase-two-keycloak": {
"url": "https://mcp.phasetwo.io/mcp"
}
}
}Config file
{
"servers": {
"phase-two-keycloak": {
"type": "http",
"url": "https://mcp.phasetwo.io/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http phase-two-keycloak https://mcp.phasetwo.io/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Phase Two Keycloak
How to install Phase Two Keycloak in Claude Code?
Run claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp in your terminal.
What does this MCP server do?
It allows AI agents to configure Keycloak features like SSO, passwordless login, and user access policies.
What is required to use it?
You need access to a live Keycloak deployment and the agent must authenticate via the provided OAuth client.