The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Hejdar MCP listing page.
MCP server for Hejdar — runtime policy enforcement for AI agents.
This server exposes hejdar_evaluate as an MCP tool. Any MCP-compatible agent (Claude, ChatGPT, Cursor, custom) can call it to check whether an action is permitted by organizational policy before executing it.
The MCP server is a thin wrapper around the Hejdar API (POST /v1/evaluate). It contains no policy logic — all decisions come from your Hejdar organization's configured policies.
Or run directly with uvx:
Sign up at app.hejdar.com and create an API key in Settings → API Keys.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Add to your Claude Code MCP settings:
pip install hejdar-mcp or uvx hejdar-mcphejdar_evaluateEvaluate an agent action against your organization's security policies.
Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
action_type | string | Yes | READ, WRITE, DELETE, TRANSFER, or EXECUTE |
resource | string | Yes | Target resource, e.g. customer_database |
agent_name | string | No | Name of the calling agent, e.g. hr-assistant |
context | object | No | Free-form metadata (department, user_id, reason, etc.) |
Output:
decision is one of: ALLOW, DENY, WOULD_DENY.
For best results, add this to your agent's system prompt:
| Variable | Required | Default | Description |
|---|---|---|---|
HEJDAR_API_KEY | Yes | — | Your Hejdar API key |
HEJDAR_API_URL | No | https://api.hejdar.com | API base URL (for self-hosted) |
MIT