Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server providing immutable audit logging, policy enforcement, and compliance reporting for AI agent workflows, enabling regulatory compliance and chain integrity verification.

README.md

Agent Audit Trail

Compliance infrastructure for agentic AI.

An MCP server that provides immutable audit logging, policy enforcement, and compliance reporting for AI agent workflows. Built for SMBs deploying AI agents who need to demonstrate regulatory compliance (Colorado SB 205, EU AI Act, and emerging state AI legislation).

Employer Summary

This is the strongest repo to review for AI governance, agent safety, and implementation reliability. It shows the part of AI delivery that usually gets ignored in demos: what happened, which tool was called, what data was touched, which policy fired, and whether the record can be trusted later.

Proof points:

  • MCP server surface for agent/tool workflows
  • hash-chained audit log with integrity verification
  • configurable policy rules for PII, financial actions, and destructive operations
  • compliance-oriented export path
  • production path from local JSON to PostgreSQL/Supabase-style storage

What It Does

Agent Audit Trail sits between your AI agents and their tools, providing:

  • Cryptographically Immutable Audit Logging - Every agent action is recorded with full context and a SHA-256 hash chained to the previous entry. Tampering is detectable. Verification is one call away.
  • Policy Engine - Configurable rules that evaluate every action in real time. Flag PII access, block high-value financial transactions, detect destructive database operations, or create custom rules for your business.
  • Compliance Reporting - Export audit logs in formats suitable for regulatory submissions. Pre-built support for Colorado SB 205 impact assessments and EU AI Act transparency documentation. Exports include a chain integrity verification result.
  • Agent Registry - Track which agents are active, what they do, and their historical activity patterns.

Quick Start

Install

npm install -g agent-audit-trail

Add to Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "agent-audit-trail": {
      "command": "agent-audit-trail"
    }
  }
}

Add to Claude Code

claude mcp add agent-audit-trail -- npx agent-audit-trail

Available Tools

| Tool | Description | |------|-------------| | log_action | Log an agent action to the immutable audit trail | | query_logs | Search and filter audit entries | | get_log_detail | Get full details for a specific log entry | | get_summary | Dashboard-style activity summary | | list_agents | Show all registered agents | | register_agent | Explicitly register a new agent | | list_policy_rules | Show configured policy rules | | add_policy_rule | Create a new policy rule | | toggle_policy_rule | Enable or disable a rule | | verify_chain | Verify the cryptographic integrity of the audit trail | | export_audit_log | Export logs for compliance reporting |

Default Policy Rules

Three rules are active out of the box:

  1. PII Field Access (High) - Flags access to fields matching SSN, date of birth, email, phone, address, passport, driver license, or credit card patterns.
  1. High-Value Financial Action (High) - Flags financial actions with amounts exceeding $1,000.
  1. Destructive Action Detection (Critical) - Flags tool calls containing DELETE, DROP, TRUNCATE, or REMOVE operations.

Cryptographic Immutability

Every log entry is chained to the previous one using SHA-256. Each entry stores:

  • previous_hash — the hash of the entry before it (null for the first entry)
  • hash — SHA-256 of: previous_hash + all entry fields

This means:

  • Modifying any historical entry changes its hash, breaking the chain
  • Deleting an entry leaves the next entry pointing to a hash that no longer exists
  • You can verify the entire chain with verify_chain and get a definitive yes/no answer

Run verify_chain before exporting compliance reports to confirm the chain is intact. The export output includes the verification result.

Example Usage

Logging an action

Use the log_action tool:
- agent_name: "customer-support-bot"
- tool_name: "database_query"
- tool_action: "SELECT"
- parameters: {"query": "SELECT email, phone FROM customers WHERE id = 123"}
- data_fields_accessed: "email,phone"

The server will log the action and return any policy violations (in this case, the PII Field Access rule would flag the email and phone access).

Querying the audit trail

Use the query_logs tool:
- has_violations: true
- limit: 10

Adding a custom policy rule

Use the add_policy_rule tool:
- name: "Block External API Calls"
- description: "Block agents from calling external APIs without approval"
- condition_type: "tool_match"
- condition_operator: "contains"
- condition_value: "external_api"
- action: "block"
- severity: "high"

Data Storage

Audit logs are stored locally at ~/.agent-audit-trail/audit-logs.json by default with full hash chaining. Configure a custom path with the AUDIT_DATA_DIR environment variable.

Production note: Local JSON storage works for single-instance deployments. For multi-agent or distributed setups, swap to Supabase/PostgreSQL for scalable, cloud-hosted storage with the same hash chain guarantees (documentation coming soon).

Regulatory Context

This tool helps businesses demonstrate compliance with:

  • Colorado SB 205 (effective Feb 2026) - Requires impact assessments and consumer notifications for AI-driven consequential decisions
  • EU AI Act (high-risk enforcement Aug 2026) - Requires transparency, documentation, and human oversight for AI in critical sectors
  • Emerging US state AI legislation - Multiple states have pending AI governance requirements

Note: Agent Audit Trail provides logging and reporting infrastructure. It does not constitute legal compliance certification. Consult legal counsel for your compliance program.

Built By

DANZUS Holdings LLC

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.