Skip to main content
Glama
DARREN-2000

mcp-context-receipts

by DARREN-2000

MCP Context Receipts

Privacy-first, tamper-evident receipts for Model Context Protocol tool calls.

MCP makes it easy to give models tools. The missing piece is a small, portable answer to: what exactly ran, when, and can I prove the record was not edited?

This project provides a dependency-free Node.js MCP server over stdio with two tools:

  • create_receipt — hashes the tool arguments and result, then returns a signed receipt.

  • verify_receipt — verifies the receipt's hash chain and HMAC signature.

Raw arguments and results are never persisted. The server emits only a compact receipt, so it can be piped into logs, an audit store, or a test harness.

Quick start

Requires Node.js 20+.

npm start

Add it to an MCP client that supports stdio servers:

{
  "mcpServers": {
    "context-receipts": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-context-receipts/src/server.js"],
      "env": { "MCP_RECEIPT_SECRET": "replace-in-your-environment" }
    }
  }
}

Related MCP server: Agent Audit Logger MCP

Receipt format

Each receipt includes a monotonically increasing sequence number, UTC timestamp, server and tool identity, SHA-256 hashes of the input and output, elapsed time, the previous receipt hash, and an HMAC-SHA256 signature. The chain makes deletion or reordering detectable when receipts are stored externally.

Set MCP_RECEIPT_SECRET in the environment for production use. A development fallback is used only to make local exploration easy; the server prints a warning to stderr.

Development

npm test

The core receipt functions are deliberately separate from the MCP transport so they can be embedded in another MCP server or tested without a running client.

Status

Early, intentionally small, and useful as a building block. Contributions that add durable sinks, key rotation, or OpenTelemetry export should preserve the default no-raw-payload behavior.

License

MIT

Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    B
    maintenance
    Hash-chained HMAC-signed audit log MCP for A2A (agent-to-agent) calls. Every tool-call, agent-handoff, decision gets a tamper-evident signed record.
    5
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    MCP server that auto-emits tamper-evident receipts for every tool call, enabling EU AI Act Article 12 compliance with signed, chain-linked receipts.
    1
  • A
    license
    A
    quality
    A
    maintenance
    Provides tools to issue, verify, and export cryptographically signed receipts for AI agent actions, enabling tamper-proof audit trails for compliance with regulations like the EU AI Act.
    4
    62
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Hash-chained HMAC-signed audit log MCP for A2A (agent-to-agent) calls. Every tool-call, agent-ha...

  • Post-quantum, tamper-evident receipts for agent actions. Ed25519 + ML-DSA-65, offline verify.

  • Remote MCP for MCP tool deprecation receipt, structured receipts, audit logs, and reviewer-ready evi

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DARREN-2000/mcp-context-receipts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server