# SPR (Sealed Payment Record)

> SPR (Sealed Payment Record) is an open-source MCP server for finance and payments. Seal each AI agent payment as a signed record kept on your own machine. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/luca-network/spr
- **MCP Registry name:** network.luca/spr-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

SPR addresses a gap between what an agent says it will pay for and what finance can later verify. The agent records an intent before paying (purpose, maximum amount, expiry), checks the payment against it, and records the settlement afterwards. Each record is signed with the company's own key and stored in a local folder, so anyone can verify the seals without trusting a service.

A check confirms that the payment stays within its declared cap and expiry, goes to the payee it named, was not withdrawn, and has not already been paid. For x402 payments, the payer signs a fingerprint of the sealed intent as the on-chain nonce, tying the payment to its declaration. Merchants can keep a book of received payments and export one payment's evidence as a dispute pack.

The code is Apache-2.0 with a royalty-free patent commitment and is at draft 1 of the format. The local packages make no call to Luca; an optional step sends a book to Luca's hosted service, which adds rail confirmation and accounting.

## Features

- **Signed intent records:** Seals the declared purpose, spending cap and expiry before payment.
- **Policy check:** Verifies cap, expiry, named payee and duplicate invoices.
- **x402 binding:** Ties an x402 payment to its sealed intent through the nonce.
- **Open verification:** Checks seals with spr-verify or the Python module, using the company's public key.
- **Merchant dispute packs:** Exports one payment's evidence for a chargeback response.
- **Framework adapters:** SDK helpers for OpenAI Agents SDK and LangChain, with examples for others.

## Good for

- Give an auditor verifiable proof of what an agent paid for
- Cap what an agent may spend on one purchase
- Keep a receipt trail for x402 data purchases
- Assemble evidence for a chargeback dispute
- Block the same invoice being paid twice

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add spr-mcp --env SPR_AGENT_ID='<SPR_AGENT_ID>' --env SPR_ENTITY='<SPR_ENTITY>' -- npx -y @luca-network/spr-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add spr-mcp --env SPR_AGENT_ID='<SPR_AGENT_ID>' --env SPR_ENTITY='<SPR_ENTITY>' -- npx -y @luca-network/spr-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.spr-mcp]
command = "npx"
args = ["-y", "@luca-network/spr-mcp"]
env = { SPR_AGENT_ID = "<SPR_AGENT_ID>", SPR_ENTITY = "<SPR_ENTITY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SPR_AGENT_ID='<SPR_AGENT_ID>' -e SPR_ENTITY='<SPR_ENTITY>' spr-mcp npx -- -y @luca-network/spr-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "spr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@luca-network/spr-mcp"
      ],
      "env": {
        "SPR_AGENT_ID": "<SPR_AGENT_ID>",
        "SPR_ENTITY": "<SPR_ENTITY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 4 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `record_intent`: Records and seals what the agent plans to pay before it pays.
- `check_payment` (name suggests: reads): Checks whether a payment is within the declared intent, payee and not already paid.
- `record_settlement`: Records the payment after it is made.
- `export_dispute_pack` (name suggests: reads): Exports one payment's evidence for a chargeback response.

## FAQ

### Where are records stored?

In the folder set by SPR_DIR, which also holds the company's private key.

### Which settings are required?

SPR_AGENT_ID and SPR_ENTITY.

### Does SPR (Sealed Payment Record) contact Luca?

No. The local packages make no call to Luca; sending a book is a separate optional step.

### What does local SPR not confirm?

It does not read the payment from the payment rail; the record is what the agent reported.

### Is SPR (Sealed Payment Record) free?

Yes. SPR (Sealed Payment Record) is open source, so you can use and self-host it for free.

### How do I add SPR (Sealed Payment Record) to Claude Code?

Run this command in your terminal: claude mcp add spr-mcp --env SPR_AGENT_ID='<SPR_AGENT_ID>' --env SPR_ENTITY='<SPR_ENTITY>' -- npx -y @luca-network/spr-mcp

### What are the best alternatives to SPR (Sealed Payment Record)?

The closest alternatives to SPR (Sealed Payment Record) are REA, Solana MCP by Vybe, AiSOC, x64dbg-mcp-server and redamon.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/spr-sealed-payment-record
