Skip to content
MCP server

SPR (Sealed Payment Record)

Seal each AI agent payment as a signed record kept on your own machine

Runs locally

SPR (Sealed Payment Record) is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.3.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "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

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • SPR_AGENT_IDThe agent's ID, such as agt_researchRequired
  • SPR_ENTITYThe company the agent pays forRequired
  • SPR_DIRThe book's folder (default ./spr-books); it holds the company's private key
  • SPR_TIME_ZONEThe company's time zone for accounting dates (default UTC)
  • SPR_BINDINGon, to return the nonce to sign with each x402 intent

About SPR (Sealed Payment Record)

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.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

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_paymentName 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_packName suggests: reads
Exports one payment's evidence for a chargeback response.

What it does

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

Pricing

Open source

Apache-2.0; hosted Luca service needs an account

SPR (Sealed Payment Record) 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.

How AIPoweredBot checks servers