# Phase Two Keycloak

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5 repo stars
- Author: p2-inc
- License: CC-BY-SA-4.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/p2-inc/keycloak-skills
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/phase-two-keycloak

## What it 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.

## Requirements
- Remote server: `https://mcp.phasetwo.io/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add phase-two-keycloak --url https://mcp.phasetwo.io/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "phase-two-keycloak": {
            "url": "https://mcp.phasetwo.io/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "phase-two-keycloak": {
            "type": "http",
            "url": "https://mcp.phasetwo.io/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http phase-two-keycloak https://mcp.phasetwo.io/mcp
```

## When to use it
- Configure passwordless authentication flows in Keycloak
- Set up corporate SSO via email domain mapping
- Provision new clusters or deployments in Phase Two

## Example prompts
- Configure passwordless login for the Keycloak realm
- Restrict organization membership by email domain

## Similar
- [keycloak-administration](https://affpapa.org/en/nevibecode/skills/keycloak-administration.md) — skill · 336 installs
- [keycloak-expert](https://affpapa.org/en/nevibecode/agents/keycloak-expert.md) — subagent · ★ 1029 repo stars
- [keycloak-model-context-protocol](https://affpapa.org/en/nevibecode/mcp/keycloak-model-context-protocol.md) — MCP server · ★ 47 repo stars
- [Skycloak](https://affpapa.org/en/nevibecode/mcp/skycloak.md) — MCP server · ★ 1 repo stars
- [workos](https://affpapa.org/en/nevibecode/skills/workos.md) — skill · 3600 installs
- [mcloud-auth](https://affpapa.org/en/nevibecode/skills/mcloud-auth.md) — skill · 429 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
