# Phase Two Keycloak

> Phase Two Keycloak is a freemium MCP server for developer tools. Hosted Keycloak MCP server for setting up passwordless login, SSO and organizations. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, Web, API
- **Website:** https://phasetwo.io/docs/introduction/
- **Repository:** https://github.com/p2-inc/keycloak-skills
- **MCP Registry name:** io.github.p2-inc/keycloak
- **Categories:** developer tools
- **Listing updated:** 2026-11-18

## About

The README describes this as a remote MCP server that lets a coding agent configure Phase Two hosted Keycloak, covering passwordless sign-in, single sign-on, organization membership and cluster provisioning. It is reached over streamable HTTP at a Phase Two-hosted endpoint and sits behind OAuth, so each client signs in with its own pre-registered client.

The companion repository packages the same guidance as Agent Skills for Claude Code, Cursor and Codex. Its single skill routes requests to reference material for magic links, email OTP, passkeys, organization login restriction, corporate SSO by email domain and enterprise identity provider federation.

The server is aimed at developers and teams building SaaS products who want their coding agent to handle identity configuration against a live Phase Two deployment. Phase Two also offers its hosted Keycloak and documents a path to self-host the open source extensions.

## Features

- **Passwordless login setup:** Configures magic link, email OTP, passkey or combined passwordless sign-in flows.
- **Enterprise SSO configuration:** Covers corporate SSO by email domain and federation with enterprise identity providers.
- **Organization membership controls:** Restricts login based on organization membership within a realm.
- **Cluster provisioning:** Handles Phase Two cluster and deployment setup for hosted Keycloak.
- **OAuth-protected remote server:** Connects via streamable HTTP with per-client pre-registered OAuth clients.

## Good for

- Add passwordless or passkey sign-in to a SaaS app from a coding agent
- Connect a customer's corporate identity provider by email domain
- Restrict login to members of a specific organization
- Provision a Phase Two hosted Keycloak cluster for a new environment

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.phasetwo.io/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "keycloak": {
      "url": "https://mcp.phasetwo.io/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "keycloak": {
      "type": "http",
      "url": "https://mcp.phasetwo.io/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "keycloak": {
      "serverUrl": "https://mcp.phasetwo.io/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "keycloak": {
      "type": "http",
      "url": "https://mcp.phasetwo.io/mcp"
    }
  }
}
```

## FAQ

### How do I connect the server to Claude Code?

The README gives the command claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp, and notes that the plugin declares the server automatically when installed.

### Is the server open source?

The README says the code is under Apache 2.0 and the skill content under CC BY-SA 4.0, but the hosted MCP server itself is a remote service.

### Does it work with self-hosted Keycloak?

The repository says the skills cover both vanilla self-hosted Keycloak and Phase Two hosted Keycloak.

### Is Phase Two Keycloak free?

Phase Two Keycloak has a free plan, with paid plans for more usage or features.

### How do I add Phase Two Keycloak to Claude Code?

Run this command in your terminal: claude mcp add --transport http keycloak https://mcp.phasetwo.io/mcp

### What are the best alternatives to Phase Two Keycloak?

The closest alternatives to Phase Two Keycloak are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/phase-two-keycloak
