AIR Controls MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AIR Controls MCP Server
Runtime visibility layer for AI agents — An MCP (Model Context Protocol) server that automatically logs agent actions into AIR Controls with full audit chain integrity.
This server lets Cursor, Claude Code, Windsurf, and any other MCP-compatible AI development tool automatically capture what agents are doing, with complete metadata for compliance, security, and debugging.
Features
Automatic action logging - Capture LLM calls, tool usage, API requests, file edits, commands, and errors
HMAC-SHA256 audit chain - Cryptographic proof that event history hasn't been tampered with
Metadata tracking - Tokens, cost, duration, risk scoring, and custom fields
Agent control - Pause/resume agents with a single command (kill switch)
Chain verification - Verify integrity of the entire audit trail
Multi-tool support - Works with Cursor, Claude Code, Windsurf, and any MCP client
Related MCP server: korg
Installation
1. Install the package
pip install air-controls-mcpThis installs both the MCP server and the underlying air-controls storage layer.
2. Configure your AI tool
Choose your tool below and add the MCP server configuration to its settings file.
Cursor
Add to ~/.cursor/mcp.json (create if it doesn't exist):
{
"mcpServers": {
"air-controls": {
"command": "air-controls-mcp",
"env": {
"AIR_CONTROLS_DB": "~/.air-controls/events.db"
}
}
}
}Location: Open Cursor settings (Cmd+, or Ctrl+,), search for "MCP", and edit the mcp.json file in the user directory.
Claude Code (VS Code Extension)
Add to ~/.claude/mcp.json (create if it doesn't exist):
{
"mcpServers": {
"air-controls": {
"command": "air-controls-mcp",
"env": {
"AIR_CONTROLS_DB": "~/.air-controls/events.db"
}
}
}
}Location: In VS Code, open the Claude Code sidebar, click settings, and select "Edit MCP settings" to access the mcp.json file.
Windsurf
Add to ~/.windsurf/mcp.json (create if it doesn't exist):
{
"mcpServers": {
"air-controls": {
"command": "air-controls-mcp",
"env": {
"AIR_CONTROLS_DB": "~/.air-controls/events.db"
}
}
}
}Location: Open Windsurf settings, search for "MCP", and edit the configuration file.
Custom Tools / Generic MCP Clients
For any other MCP-compatible tool, add the configuration to its MCP settings file:
{
"mcpServers": {
"air-controls": {
"command": "air-controls-mcp",
"env": {
"AIR_CONTROLS_DB": "~/.air-controls/events.db",
"AIR_AGENT_NAME": "my-custom-agent"
}
}
}
}3. Restart your tool
Restart Cursor, Claude Code, Windsurf, or your MCP client. The AIR Controls tools should now be available.
Usage
Once configured, you have access to these tools in any conversation:
log_action
Log an agent action (the primary tool). Required parameters:
agent_name- Display name for your agentaction_type- One of:llm_call,tool_use,api_call,file_edit,command_run,decision,errordescription- Human-readable summary of what happened
Optional parameters:
raw_action- Technical detail (JSON, traceback, code, etc.)tokens_used- Token count for LLM callscost_usd- Cost in USDduration_ms- Execution duration in millisecondsrisk_score- Risk assessment:low,medium, orhigh
Example:
Log this agent action:
- Agent: my-research-bot
- Type: llm_call
- Description: Searched for recent AIR Act guidelines using Claude 3.5 Sonnet
- Tokens: 4200
- Cost: 0.0315
- Duration: 2100ms
- Risk: lowget_status
Get overview of all monitored agents and recent activity. Shows:
Total agents under monitoring
Status of each agent (ACTIVE or PAUSED)
Event counts and error counts
Total cost across all agents
Example:
Get a status report of all monitored agentsget_timeline
Get event timeline for a specific agent. Shows the most recent events in chronological order.
Parameters:
agent_name- Name of the agentlimit- Number of events to show (default: 20)
Example:
Show me the timeline for my-research-bot with the last 30 eventspause_agent
Pause an agent (kill switch). Stops the agent from taking further actions.
Parameters:
agent_name- Name of the agent to pause
Example:
Pause the my-research-bot agentresume_agent
Resume a previously paused agent.
Parameters:
agent_name- Name of the agent to resume
Example:
Resume my-research-botverify_chain
Verify the HMAC-SHA256 audit chain integrity. Checks that the event history hasn't been tampered with.
Parameters:
agent_name- Optional. If omitted, verifies all agents.
Example:
Verify the audit chain for my-research-botOr to verify all agents:
Verify the audit chain for all agentsResources
The server exposes two resources for browsing agent metadata:
air-controls://agents
Lists all monitored agents with their framework and status.
air-controls://status
Current system status summary including agent count, event totals, and cost.
Environment Variables
Configure these optional environment variables to customize the server:
Variable | Purpose | Default |
| Path to SQLite database file |
|
| Override detected agent name | Auto-detected from tool |
| Framework identifier |
|
Example:
export AIR_CONTROLS_DB=/custom/path/events.db
export AIR_AGENT_NAME=my-research-agent
export AIR_FRAMEWORK=langchain
air-controls-mcpDatabase
The MCP server uses SQLite for storage with:
HMAC-SHA256 signatures for audit chain integrity
Automatic schema initialization
Configurable path (default:
~/.air-controls/events.db)
The database is created automatically on first use.
Architecture
Your AI Tool (Cursor/Claude Code/Windsurf)
↓
MCP Protocol
↓
AIR Controls MCP Server (this package)
↓
air_controls.EventStore
↓
SQLite Database with HMAC-SHA256 ChainThe server:
Receives action logs from your AI tool via the MCP protocol
Auto-detects which tool is calling it
Auto-creates agents on first use
Stores actions with complete metadata
Maintains cryptographic audit chain for compliance
Examples
Logging a complex research session
Log this comprehensive agent action:
- Agent: research-team
- Type: api_call
- Description: Queried EU AI Act regulatory database for Article 9 requirements
- Raw: {"endpoint": "/api/v2/eu-ai-act", "method": "GET", "params": {"article": 9}}
- Tokens: 1200
- Cost: 0.008
- Duration: 3400ms
- Risk: mediumMonitoring multiple agents
Get a status report on all agents I've createdCompliance verification
Verify the entire audit chain to ensure no events were tampered withEmergency stop
Pause the autonomous-trading-bot agent immediatelyCompliance & Security
HMAC-SHA256 audit chain - Cryptographic proof of event integrity
Immutable records - Events are append-only; can never be modified
Full metadata - Complete context for every action (risk, cost, duration, tokens)
Chain verification - Detect tampering with cryptographic validation
Agent pause/resume - Emergency control over agent behavior
Perfect for:
EU AI Act compliance (Articles 10, 12, 14, 15)
SOX compliance - Audit trails for financial AI systems
ISO 42001 - AI Management System
Internal governance - Track and control AI agent behavior
Debugging - Understand what agents did and why
Cost tracking - Attribution of LLM spend to specific agents and actions
Contributing
Contributions are welcome! Please open an issue or pull request on GitHub.
License
Apache License 2.0 — See LICENSE file for details.
Support
Documentation - https://github.com/airblackbox/air-controls-mcp
Issues - https://github.com/airblackbox/air-controls-mcp/issues
Discussions - https://github.com/airblackbox/air-controls-mcp/discussions
Built with the Model Context Protocol by Anthropic. Part of the AIR Controls ecosystem for AI agent observability and compliance.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Verifiable execution records for AI agents: signed receipts, tamper-evident archives and portable evidence bundles, exposed via MCP and REST, with paid verify and anchor calls settled over x402.
Hash-chained HMAC-signed audit log MCP for A2A (agent-to-agent) calls. Every tool-call, agent-ha...
Identity, authorization, audit trails, and revocable permissions for AI agents accessing MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceTamper-evident audit logging for AI agents. Append-only, hash-chained, optionally Ed25519-signed log. The MCP server lets an agent keep and verify a record of what it actually did.8MIT
- AlicenseNot gradedqualityBmaintenanceA causally-ordered, rewindable event-ledger for autonomous AI agents, enabling tamper-evident audit, replay, and rollback of agent actions via an MCP server.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables step-debugging, deterministic replay, and signed audit evidence for AI agents, compliant with EU AI Act.76 PyPIMIT
- AlicenseAqualityBmaintenanceUniversal verifiable recovery for long-running AI agents with semantic checkpoints, idempotent action ledger and hash chained log as a deny by default MCP server. Framework agnostic with adapters for LangGraph, LangChain and OpenAI plus gateway and OTel.1327Apache 2.0