Keycloak MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KEYCLOAK_URLYesThe URL of the Keycloak serverhttp://localhost:8080
KEYCLOAK_ADMINYesThe Keycloak admin username
KEYCLOAK_ADMIN_PASSWORDYesThe Keycloak admin password

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
create-user

Create a new user in a specific realm

delete-user

Delete a user from a specific realm

list-realms

List all available realms

list-users

List users in a specific realm