Skip to main content
Glama
stripe-collections-mcp

stripe-collections-mcp

by WayneChaney

stripe-collections-mcp

CI

Ask Claude who owes you money, and let it chase only the invoices you've cleared it to chase.

Results

  • 11 tests passing. 4 tools: 3 read tools and 1 write tool with a gate.

  • Safety checks: live key refused, writes off by default, re-check before send, audit log.

  • Cost to run: $0 locally with Stripe test mode.

An MCP server that connects Stripe to Claude, ChatGPT, or any MCP client. It reads your open invoices, works out who's late and by how much, and can re-send an overdue invoice to the customer. It starts read-only, and sending stays off until you turn it on.

Related MCP server: NitroWatch Billing Demo

Demo

Claude asks who owes money, the server answers, and a reminder only goes out after you allow it

Tools

Tool

What it does

Writes?

list_overdue_invoices

Open invoices past their due date, oldest first: who owes it, how much, how many days late, their payment link

No

receivables_summary

Everything owed, grouped into not yet due / 1–30 / 31–60 / 61–90 / over 90 days, per currency

No

customer_payment_history

A customer's recent invoices and how many days late they usually pay

No

send_invoice_reminder

Re-sends an overdue invoice email through Stripe

Only with ALLOW_WRITES=true

Safety

  • Test mode only. A live Stripe key stops the server before it connects to anything.

  • Read-only by default. send_invoice_reminder refuses to run unless the server was started with ALLOW_WRITES=true.

  • It re-checks before it sends. The invoice has to still be open and actually overdue, or nothing goes out.

  • Every call is logged. One JSON line per tool call, reads included, in ~/.stripe-collections-mcp/audit.jsonl. Set AUDIT_LOG to move it, or AUDIT_LOG=off to turn it off.

  • Bad input never reaches Stripe. Customer and invoice ids are validated first.

  • Use a restricted key. In Stripe, create a restricted key with Invoices: Read and Customers: Read. Add Invoices: Write only if you turn sending on.

Why the guardrails

  • An agent that can send money-related emails needs a hard off switch.

  • Invoice state can change between a recommendation and a send, so the server checks again before it sends.

  • An audit trail makes each tool call reviewable.

Run it

Needs Node 20 or newer. Clone the repo, then:

npm install

npm install builds it. The server lives at dist/src/index.js.

Claude Desktop: add this to claude_desktop_config.json, then restart Claude.

{
  "mcpServers": {
    "stripe-collections": {
      "command": "node",
      "args": ["/absolute/path/to/stripe-collections-mcp/dist/src/index.js"],
      "env": {
        "STRIPE_API_KEY": "rk_test_...",
        "ALLOW_WRITES": "false"
      }
    }
  }
}

Claude Code:

claude mcp add stripe-collections -e STRIPE_API_KEY=rk_test_... -- node /absolute/path/to/stripe-collections-mcp/dist/src/index.js

Try it

  • "Who owes me money right now?"

  • "How much is more than 60 days late?"

  • "How late does this customer usually pay?"

  • "Send a reminder for every invoice more than 30 days late." (Needs ALLOW_WRITES=true. Your client will still ask before each send unless you've auto-approved the tool.)

Tests

npm test

11 tests call every tool through a real MCP client against a fake Stripe, so they never touch the network. They cover the sort order, the aging buckets, the late-payment math, sending blocked while writes are off, refusing invoices that are paid or not due yet, Stripe errors coming back as tool errors, and the live-key guard.

How it's built

  • src/backend.ts: the only file that talks to Stripe. It flattens Stripe's invoice into the fields the tools need.

  • src/server.ts: the four tools, the aging math, and the write gate.

  • src/safety.ts: the test-mode key check and the audit log.

  • src/index.ts: stdio entry point. Logs go to stderr because stdout carries the protocol.

Swapping Stripe for another billing API means rewriting backend.ts and nothing else.


Built by Vanwayne Chaney. I build custom MCP servers that connect your API to Claude and ChatGPT.

Available Tools

4 tools
customer_payment_historyCustomer payment historyA
Read-only

A customer's recent invoices and how late they usually pay. Use it before deciding whether a reminder is worth sending.

Inputs: customer_id (required), limit.

list_overdue_invoicesList overdue invoicesA
Read-only

Open Stripe invoices that are past their due date, oldest first, with who owes it, how much, how many days late, and the customer's payment link.

Inputs: limit, min_days_overdue.

receivables_summaryReceivables summaryA
Read-only

Everything still owed on open invoices, grouped by how late it is (not yet due, 1-30, 31-60, 61-90, over 90 days), totaled per currency.

Inputs: no named parameters.

send_invoice_reminderSend invoice reminderA

Re-sends an overdue invoice email to the customer through Stripe. Blocked unless the server was started with ALLOW_WRITES=true, and it checks the invoice is still open and overdue before sending.

Inputs: invoice_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct role: listing overdue invoices (row-level), aggregating receivables by aging bucket, per-customer payment behavior, and a write action to send a reminder. The only mild overlap is between list_overdue_invoices and receivables_summary, both about overdue amounts, but the descriptions make the list-vs-aggregate split clear.

    Naming Consistency4/5

    Three tools follow a verb_noun snake_case pattern (send_invoice_reminder, list_overdue_invoices, customer_payment_history), while receivables_summary is noun-first and lacks a verb. Minor deviation, but all names are readable and domain-predictable.

    Tool Count5/5

    Four tools is tightly scoped to the collections workflow: discover overdue invoices, summarize exposure, vet a customer, then act. Every tool earns its place with no filler.

    Completeness4/5

    The core collections lifecycle (identify, aggregate, assess, remind) is covered end to end. Minor gaps exist: no bulk reminder sending, no invoice-level detail/status lookup beyond the overdue list, and no snooze/write-off or reminder-history tracking.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Read-only Stripe finance, ops, and risk reporting exposed via MCP, HTTP API, and CLI. Enables querying balances, payments, customers, payouts, reconciliation, and risk alerts without mutating Stripe state.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A demo MCP server exposing billing operations (invoices, customers) with no built-in safety, designed as a test target for NitroWatch governance. It allows reading, sending, archiving, and permanently deleting accounts/invoices without confirmation.
      5
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing guarded access to a B2B SaaS billing database (customers, subscriptions, invoices, credit notes) and live ECB exchange rates, with read-only tools and one capped, idempotent write for issuing credit notes.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to search and inspect an invoice ledger, generate VAT summaries, run OCR on local documents, and use reusable prompts for chasing overdue invoices and reconciling entries.
      2
      -