Feedback

Advanced Keycloak Mcp Server

@octodet Claim

Basic information

Version
1.5.1
Category
License
MIT
Transports
stdio
Author
octodet
Submitted by
Community
Quality
20

About Advanced Keycloak Mcp Server

Advanced Keycloak Mcp Server with many tools

Advanced Keycloak Mcp Server is a MCP server in the Other category listed in the AddMCP.net directory, published by Octodet. It exposes 7 tools, including create-user, delete-user, list-realms, list-users and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: identity, keycloak, roles, users.

Setup

{
    "mcpServers": {
        "keycloak": {
            "command": "npx",
            "args": [
                "-y",
                "@octodet/keycloak-mcp"
            ],
            "env": {
                "KEYCLOAK_URL": "http://localhost:8080",
                "KEYCLOAK_ADMIN": "admin",
                "KEYCLOAK_ADMIN_PASSWORD": "admin"
            }
        }
    }
}

Advanced Keycloak Mcp Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "keycloak": {
            "command": "npx",
            "args": [
                "-y",
                "@octodet/keycloak-mcp"
            ],
            "env": {
                "KEYCLOAK_URL": "http://localhost:8080",
                "KEYCLOAK_ADMIN": "admin",
                "KEYCLOAK_ADMIN_PASSWORD": "admin"
            }
        }
    }
}

Advanced Keycloak Mcp Server tools

  • create-user — Create a new user in a specific realm
    realm:string*, username:string*, email:string*, firstName:string*, lastName:string*, enabled:boolean, emailVerified:boolean, credentials:array
  • delete-user — Delete a user from a specific realm
    realm:string*, userId:string*
  • list-realms — List all available realms
    (no parameters)
  • list-users — List users in a specific realm
    realm:string*
  • list-roles — List all roles of a specific client in a specific realm
    realm:string*, clientId:string*
  • update-user-roles — Add and/or remove client roles for a user in a specific realm and client
    realm:string*, userId:string*, clientId:string*, rolesToAdd:array, rolesToRemove:array
  • reset-user-password — Reset or set a new password for a user in a specific realm
    realm:string*, userId:string*, password:string*, temporary:boolean

Overview

What is Advanced Keycloak Mcp Server?

A Model Context Protocol (MCP) server that provides a comprehensive set of tools for Keycloak administration, covering user, realm, and role management. It is intended for developers and administrators who need to automate Keycloak tasks via MCP-compatible clients.

How to use Advanced Keycloak Mcp Server?

The README does not describe installation, configuration, or invocation steps. Once set up, the server exposes tools such as create-user, delete-user, list-users, list-realms, list-roles, and update-user-roles, which accept JSON parameters as shown in the documentation.

Key features of Advanced Keycloak Mcp Server

  • Create users in specified realms with credentials and attributes.
  • Delete users permanently from a realm.
  • List all users in a realm with basic information.
  • Display all available realms in the Keycloak instance.
  • List all roles for a specific client within a realm.
  • Add or remove client roles for a user in a single operation.

Use cases of Advanced Keycloak Mcp Server

  • Automate user provisioning and deprovisioning across multiple realms.
  • Manage role-based access control for applications by assigning/removing client roles.
  • Audit and explore Keycloak realms, users, and role assignments via MCP tools.
  • Integrate identity management workflows into AI assistants or automation pipelines.

Frequently asked questions

1 What tools does the server provide?

The server provides six tools: create-user, delete-user, list-users, list-realms, list-roles, and update-user-roles, each for specific Keycloak administrative tasks.

2 What parameters are required for create-user?

realm, username, email, firstName, and lastName are required. Optional parameters include enabled, emailVerified, and credentials (an array of credential objects with type, value, and temporary).

3 Can roles be added and removed in one call?

Yes. The update-user-roles tool accepts both rolesToAdd and rolesToRemove arrays in a single operation. At least one of the two must be provided.

4 Is the delete-user operation reversible?

No. Deleting a user is permanent and irreversible. The README explicitly warns to ensure the correct userId before execution.

5 Does the server require any specific transport or authentication setup?

The README does not specify transport, authentication, or runtime dependencies. It assumes a Keycloak instance is accessible and configured for the server.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬