Skip to main content

Admin MCP Server

Reference

AIControls exposes its own MCP server so you can query governance data directly from Claude Code or any MCP client.

Admin MCP server

AIControls exposes its own MCP server at https://YOUR_ORG.aicontrols.dev/mcp/admin. This lets you query governance data directly from Claude Code or any MCP client:

ToolDescription
aicontrols_audit_querySearch audit events by agent, tool, decision, or time range
aicontrols_cost_summaryGet aggregate cost and token usage by developer or model
aicontrols_risk_scoresReturn computed risk scores for agents
aicontrols_session_listList active developer sessions with budget utilization
aicontrols_hitl_listList pending human-in-the-loop approval requests
aicontrols_policy_listList loaded policies with match statistics
nirmata_retrieveRetrieve the original, uncompressed content of a compressed tool response
nirmata_pre_compactReturn the compression manifest for a session — the list of compressed tool responses that can still be retrieved before compaction discards them

nirmata_retrieve

Compressed tool responses carry a retrieval hint of the form nirmata_retrieve hash=<sha256>. Call nirmata_retrieve with that hash to get the original content back:

ParameterRequiredDescription
hashYesThe SHA-256 hash from the hint appended to a compressed response

Originals are retained for 7 days after compression, then purged. Retrieving a hash that has expired or was never issued returns a "not found" error rather than failing silently. See Context Optimization for the full retrieval and retention model.

Authenticate to the admin MCP server with an admin-role personal access token. Connect it to Claude Code by adding it to your MCP server list in ~/.claude/settings.json:

{
"mcpServers": {
"aicontrols": {
"url": "https://YOUR_ORG.aicontrols.dev/mcp/admin",
"headers": {
"Authorization": "Bearer YOUR_ADMIN_TOKEN"
}
}
}
}

See also