Back to Home
donvini94 icon

intern-trial-day-assignment-mcp

Verified Safe

by donvini94

Overview

This server acts as an MCP (Model Context Protocol) gateway, providing AI assistants with tools to manage Keycloak realms and users via its Admin REST API.

Installation

Run Command
uv run keycloak-mcp

Environment Variables

  • KEYCLOAK_URL
  • CLIENT_ID
  • CLIENT_SECRET

Security Notes

The project follows good security practices for an API client: environment variables are used for sensitive credentials (`.env` file, loaded with `python-dotenv`), `requests` timeouts are implemented, and OAuth2 client credentials flow is correctly utilized with automatic token refresh on expiration or 401 Unauthorized errors. Custom exceptions provide specific error handling. Pydantic models validate API responses, reducing risks from malformed data. There are no clear indications of `eval` or other dangerous patterns.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-11-18

Tags

MCP ServerKeycloakAPI IntegrationAuthenticationPython