SuperAPIAI Directory

mcp-audit-gateway

github.com · AI security

Transparent MCP proxy that keeps a signed, hash-chained audit trail of agent tool calls, with YAML policy enforcement and OpenTelemetry export.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

mcp-audit-gateway is a tamper-proof audit trail tool for AI agent tool calls. Its core goal is to answer the question "Your agent made 847 tool calls yesterday — can you verify what it did?"

Purpose: To provide verifiable audit logs for agent tool calls under the MCP protocol. Every tool call is cryptographically signed and linked to the previous record; any tampering will cause verification to fail, and deleting any entry will break the chain.

Main capabilities: In wrap mode, it starts the MCP server as a subprocess, transparently forwarding all messages over stdio between the client and the server, signing and logging only tools/call responses while passing other messages through unchanged. On first run, it automatically generates a signing key and saves it at ~/.mcp-audit/key.hex, with no configuration required. Audit records use HMAC-SHA256 to sign canonical fields, and previousHash is the SHA-256 of the previous record; together they detect tampering, ordering, and integrity.

Gateway mode is aimed at teams, adding a policy engine (glob-based ACLs, per-principal rate limiting), tool namespacing across multiple upstream MCP servers, OpenTelemetry trace and metric export, upstream health management and automatic reconnection, and by default uses Ed25519 asymmetric signatures (HMAC-SHA256 can also be used).

Usage: The mcp-audit CLI can be installed globally via npm, or used directly. For integration with Claude Desktop, configure claude_desktop_config.json; for integration with Claude Code, you can add the mcp-audit wrap -- prefix in .claude/hooks/mcp-servers.json or directly before the MCP server command.

Proof layer: The signing and verification subsystem supports hash chains across log rotation, crash recovery, and multi-file chains. Checkpoint records allow consumers to detect tail truncation by storing a single hash externally. A forced restart emits a signed chain_break record rather than silently starting over. The canonical form is type-tagged and injective, rejects unsafe numbers, avoids JCS floating-point formatting issues, and proves cross-language consistency through 46 conformance vectors (JS + Python).

Cross-SDK differential testing: The project builds a Wycheproof-styledifferential testing tool that runs 40 serialization boundary tests across 10 official MCP SDKs, finding 26 wire-level differences among 8 different serializers. For example, the 1e20 float produces six different byte representations across six SDKs. The project provides workflow files for detecting serialization regressions, and can also run only the conformance vectors (requiring only Node.js). Its canonicalization design is immune to all 26 categories of differences: safe integers only, explicit field ordering, and rejection of surrogate pairs.

Limitations: The official text does not provide pricing, fees, or commercial support information, so none is available for now. Its differential testing results point out that MCP lacks cross-SDK conformance testing, and that serialization difference risks must be noted when using hash chains.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools