# Identity AIops

> Identity AIops is an open-source MCP server for security. Governed AI-ops for Keycloak and authentik: users, events, clients, MFA coverage. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/aiops-tools/identity-aiops
- **MCP Registry name:** io.github.AIops-tools/identity-aiops
- **Categories:** [security](https://ai-powered.com/categories/security), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-18

## About

Four analyses carry the load for teams running their own identity provider. `login_failure_rca` separates brute-force spraying from a misconfigured client, an expired-credential storm or a lockout storm. `stale_access_audit` lists dormant users, accounts that never logged in, service accounts used interactively and orphaned sessions. `client_misconfig_audit` ranks risks such as wildcard or http redirect URIs, public clients with secrets, implicit flow, missing PKCE and password grant. `mfa_coverage_analysis` gives a coverage percentage and a gap list.

The same 29 tools work on both platforms, 21 reads, 6 governed writes and 2 undo tools. Writes include disabling and enabling users, revoking sessions, forcing a password reset, updating client redirect URIs and rotating a client secret; most record an undo, and secret rotation stores a masked prior state. A few tools are Keycloak-shaped and return an explanatory error on authentik.

It does not gate writes. Instead the README suggests giving the Keycloak service account only view roles, so writes fail at the server, and every call is audited. It was tested against mocked responses, not a live instance, and has a `doctor` command for a live check.

## Features

- **Login failure RCA:** Tells brute force apart from client misconfiguration and lockout storms.
- **Stale access audit:** Finds dormant users, never-used accounts and orphaned sessions.
- **Client risk ranking:** Flags wildcard redirects, missing PKCE, implicit and password grants.
- **MFA coverage:** Reports coverage percentage and which users lack a second factor.
- **Governed writes:** Disable users, revoke sessions, update redirect URIs and rotate secrets with undo.
- **Two platforms:** Keycloak admin REST API and authentik API v3.

## Good for

- Work out whether login failures are an attack or a broken client
- List users who still have no second factor
- Find dormant or never-used accounts
- Check OAuth clients for insecure redirect URIs
- Disable a compromised account with an undo path

## Install

### Claude Code (Terminal)

```sh
claude mcp add identity-aiops -- uvx identity-aiops
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "identity-aiops": {
      "command": "uvx",
      "args": [
        "identity-aiops"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "identity-aiops": {
      "command": "uvx",
      "args": [
        "identity-aiops"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "identity-aiops": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "identity-aiops"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "identity-aiops": {
      "command": "uvx",
      "args": [
        "identity-aiops"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "identity-aiops": {
      "command": "uvx",
      "args": [
        "identity-aiops"
      ]
    }
  }
}
```

## Tools

- `login_failure_rca`: Classifies login failures as brute force, misconfigured client, expired credentials or lockouts
- `stale_access_audit`: Finds dormant users, never-logged-in accounts and orphaned sessions
- `client_misconfig_audit`: Ranks OAuth client misconfiguration risks
- `mfa_coverage_analysis`: Reports MFA coverage and gaps
- `disable_user`: Disables a user
- `enable_user`: Enables a user
- `revoke_user_sessions`: Revokes a user's sessions
- `require_password_reset`: Requires a password reset
- `update_client_redirect_uris`: Updates a client's redirect URIs
- `rotate_client_secret`: Rotates a client secret
- `undo_list`: Lists undo records
- `undo_apply`: Applies an undo

## FAQ

### Which identity providers work?

Keycloak and authentik, selected per target.

### How does it authenticate to Keycloak?

With an OAuth2 client-credentials grant against the realm token endpoint, refreshed on 401.

### How do I limit what it can change?

Give the service account only view roles; writes then fail at the server.

### Which tools only work on Keycloak?

`require_password_reset`, `rotate_client_secret`, `client_sessions`, `client_session_stats` and `user_lockout_status`.

### Is it tested live?

The README says only against mocked responses.

### Is Identity AIops free?

Yes. Identity AIops is open source, so you can use and self-host it for free.

### How do I add Identity AIops to Claude Code?

Run this command in your terminal: claude mcp add identity-aiops -- uvx identity-aiops

### What are the best alternatives to Identity AIops?

The closest alternatives to Identity AIops are REA, mcp, AiSOC, redamon and x64dbg-mcp-server.

## Where this comes from

- Description: written from the project's README.
- 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.
- [mcp](https://ai-powered.com/mcp/mcp-mwfu4c84): mcp is an open-source MCP server for cloud and infrastructure.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.

---
Source: https://ai-powered.com/mcp/identity-aiops
