keycloak-mcp-server MCP Server

Set environment variables (or create a .env file based on .env.example):

Local serverstdio

What is the keycloak-mcp-server MCP Server?

keycloak-mcp-server is an MCP project maintained in the paoloamato2/keycloak-mcp-server repository. The maintainer describes its purpose as “Set environment variables (or create a .env file based on .env.example)”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares KEYCLOAK_URL, KEYCLOAK_ADMIN_USERNAME, KEYCLOAK_ADMIN_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the keycloak-mcp-server MCP Server

{
  "mcpServers": {
    "keycloak": {
      "command": "python",
      "args": [
        "-m",
        "keycloak_mcp_server"
      ],
      "env": {
        "KEYCLOAK_URL": "YOUR_KEYCLOAK_URL",
        "KEYCLOAK_ADMIN_USERNAME": "YOUR_KEYCLOAK_ADMIN_USERNAME",
        "KEYCLOAK_ADMIN_PASSWORD": "YOUR_KEYCLOAK_ADMIN_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
KEYCLOAK_URLDeclared in the maintainer’s client configuration.Check documentation
KEYCLOAK_ADMIN_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
KEYCLOAK_ADMIN_PASSWORDDeclared in the maintainer’s client configuration.Check documentation