autonomous-audit-mcp
An MCP server that lets an AI trading agent record, verify, and report its own decisions to a tamper-evident audit log — as native, agent-callable tools.
Thin Model Context Protocol wrapper around the open-source
autonomous-audit tool (Apache-2.0, Python standard
library only). No new audit logic — it exposes the existing hash-chain over stdio so an agent in
Claude Desktop, Cursor, or any MCP client can build a tamper-evident decision trail while it
works, without writing code.
Tools
| Tool | What it does |
|---|---|
check_and_size_order(...) |
Cooperative fail-closed pre-trade check & position sizer (concentration cap, max order value, daily trade limit, whole-share rounding by default for IBKR AI Partitions). |
record_decision(log_path, decision) |
Append one decision (symbol, side, qty, reason, timestamp, …) to a SHA-256 hash-chained log. Returns the new hash + record count. |
verify_log(log_path) |
Full-chain integrity check. Detects in-place edits (hash mismatch) and deletions/reorders (prev_hash break). |
export_report(log_path, output_path?) |
Render a self-contained HTML report (integrity banner + one row per decision + disclosure). |
chain_head(log_path) |
Return the current head hash + record count — the value to publish/sign externally so truncation or a genesis rewrite (which the local chain alone cannot catch) becomes detectable. |
Read-only with respect to any broker or market — it never places, modifies, or cancels orders;
check_and_size_order is a cooperative calculation aid (not a technical broker-level blocker),
and record_decision only appends to the local audit log you point it at. See SKILL.md
for the recommended pre-trade + audit agent workflow.
Run
uvx autonomous-audit-mcp # runs the MCP server over stdio
Register it with an MCP client, e.g. Claude Desktop (claude_desktop_config.json), Claude Code, or Cursor
(local stdio/uvx servers run in desktop and IDE clients, not in claude.ai Web or Mobile):
{
"mcpServers": {
"autonomous-audit": { "command": "uvx", "args": ["autonomous-audit-mcp"] }
}
}
Sidecar with Alpaca MCP or IBKR Autonomous Trading MCP
Run autonomous-audit alongside a broker MCP server so every agent trade decision (and resulting
broker order ID) is recorded in a local SHA-256 hash chain before or right after execution:
- With Alpaca (
alpaca-mcp-server):
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": ["alpaca-mcp-server"],
"env": {
"ALPACA_API_KEY": "YOUR_KEY",
"ALPACA_SECRET_KEY": "YOUR_SECRET",
"ALPACA_PAPER_TRADE": "true"
}
},
"autonomous-audit": { "command": "uvx", "args": ["autonomous-audit-mcp"] }
}
}
- With Interactive Brokers (
https://api.ibkr.com/v1/api/mcp-public) or Alpaca Hosted MCP (https://api.alpaca.markets/mcp): Keep your remote OAuth broker connector enabled in Claude Desktop / Claude Code / Cursor and add"autonomous-audit"above as a local sidecar. Instruct your agent to callrecord_decisionwith the broker order ID and rationale on every trade.
Scope & disclosure
Provides tamper-evidence (integrity + traceability): it detects post-hoc edits, reorders, and
mid-chain deletions. It is tamper-evident, not tamper-proof durable storage, does not on its
own satisfy statutory record-keeping (e.g. MiFID II), and is neither model explainability nor a
regulatory approval. For educational and informational purposes only — not investment advice.
See the autonomous-audit scope & regulatory context.
License
Apache-2.0.
Metadata
Release files for autonomous-audit-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autonomous_audit_mcp-0.1.0.tar.gz | 15.8 kB | With provenance | Details for autonomous_audit_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autonomous_audit_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for autonomous_audit_mcp-0.1.0-py3-none-any.whl |
Total release size: 29.4 kB
Release files / autonomous_audit_mcp-0.1.0.tar.gz
| Download URL | autonomous_audit_mcp-0.1.0.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2e99032ae84a06887dd0acacbb8d41fbf4359bca38743443c9863c628c77694
|
|
BLAKE2b-256 checksum How to use checksums |
0e3542d3f7412bb98000a54de6c48479d2af2619dee4730e0e092c18d6bfec2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / autonomous_audit_mcp-0.1.0-py3-none-any.whl
| Download URL | autonomous_audit_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c140d7b85f45c94958793ae962a470dfab55cfea94472d9f15d36c8792ea959
|
|
BLAKE2b-256 checksum How to use checksums |
a091ef14c5c5e006f94c62d4095cfaef84d03a0078bf757cbc4b41b8ecf69d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for autonomous-audit-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for autonomous_audit_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.