Skip to content

[FR] Signed audit receipts for MCP server tool calls (regulatory compliance) #7455

Description

@tomjwxf

What'''s the problem of not having this feature?

OpenBB exposes financial data through MCP servers to AI agents, but there is currently no audit trail for what data an agent accessed, when, or what policy governed the access. When an AI copilot queries equity prices, options chains, or portfolio data through the ODP API, there is no tamper-evident record of those queries.

For financial workflows this creates three gaps:

  1. Regulatory compliance -- MiFID II, SEC Rule 17a-4, and SOC 2 all require demonstrable records of data access. AI agent queries to financial data sources are a new category of access that existing logging does not cover.
  2. Audit trail for AI-assisted decisions -- If an analyst uses an AI agent to pull data that informs a trading decision, the firm needs to prove what data the agent saw and when. Server logs are mutable and not independently verifiable.
  3. Multi-agent governance -- As OpenBB adds agent integrations (per the agents-for-openbb repo), governing which agents can access which data endpoints becomes critical. A portfolio optimization agent should not access raw client PII through the same MCP server.

Describe the solution you would like

Add cryptographically signed audit receipts to OpenBB'''s MCP server layer. Each tool call (data query) would produce an Ed25519 signed receipt containing:

  • Tool/endpoint called (e.g., obb.equity.price.historical)
  • Query parameters (ticker, date range)
  • Principal identifier (which agent/user)
  • Timestamp
  • Policy decision (allow/deny)

These receipts would be independently verifiable offline -- any compliance team can verify the signature without access to the OpenBB server.

A reference implementation exists: protect-mcp (MIT, ~2,300 downloads/month) wraps MCP tool execution with Cedar policy evaluation + Ed25519 receipt signing. It is already integrated with Microsoft Autogen (PR #667) and has an IETF Internet-Draft formalizing the receipt format.

Describe alternatives you've considered

  • Server-side logging only -- insufficient for regulatory compliance because logs are mutable and not independently verifiable by third parties.
  • API key scoping -- limits access but does not produce audit evidence of what was accessed.
  • Custom middleware per endpoint -- does not scale as the ODP endpoint catalog grows, and requires per-provider implementation.

Additional information

OpenBB'''s position as the data layer for financial AI makes it a natural fit for verifiable audit trails. The MCP server architecture already provides the interception point -- adding receipt signing at that layer would give OpenBB a compliance differentiator that no other financial data platform currently offers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions