Skip to main content
Glama

req-invoice-mcp

Let your AI assistant send crypto invoices and tell you when they're paid.

An MCP server for Request Network: any MCP-capable assistant (Cursor, VS Code, Windsurf, desktop AI apps, your own agent) can create invoices, share payment links and check payment status in plain language.

"Invoice Acme 500 USDC for the website." "Has Acme paid yet?"

It holds no wallet and can't spend money. It creates and reads invoices only. Payers pay from their own wallet.

Demo: create a payment link, the payer pays, the assistant confirms it's paid. Real run on Sepolia testnet.

Real run on Sepolia testnet: the payment transaction.

📖 Docs: https://becomingmountains.github.io/req-invoice-mcp/ (source in site/)

Unofficial community project. Not affiliated with or endorsed by Request Network.

Tools

Tool

What it does

create_payment_link

Bill someone and get a link they open to pay, in any of your currencies and networks.

list_routes

The currencies and networks you can be paid in.

create_invoice

Create an invoice in a specific token and network, bill in USD, or repeat it monthly for retainers.

stop_recurring_invoice

Stop (or resume) a repeating invoice.

check_invoice

Paid or not, with the payment transaction. Ask by name: "has Acme paid?"

get_payment_link

The saved link for an invoice, so you can send it again.

list_invoices

Who owes you what, with exact totals. Filters: unpaid, this month, older than 2 weeks, by name.

get_payment_transactions

For payers: the unsigned transactions to pay an invoice in their own wallet.

find_currency

Look up currency IDs like USDC-base or fUSDC-sepolia.

Related MCP server: MercanPay MCP Server

Quick start

  1. Get a free Client ID. Sign in at dashboard.request.network with your wallet, set up a receiving route (network, wallet, token), then Manage → Client IDs → Generate. Copy the Route ID too.

  2. Add the server to your MCP client (Node 20+):

{
  "mcpServers": {
    "req-invoice": {
      "command": "npx",
      "args": ["-y", "github:becomingmountains/req-invoice-mcp"],
      "env": {
        "REQUEST_CLIENT_ID": "your-client-id",
        "REQUEST_DESTINATION_ID": "0xYourWallet@eip155:1#ABCD1234:0xTokenAddress",
        "REQUEST_PAYEE": "0xYourWallet"
      }
    }
  }
}
  1. Ask: "Create a payment link for 25 USDC."

Configuration

Variable

Required

Purpose

REQUEST_CLIENT_ID or REQUEST_API_KEY

yes

Request Network credentials.

REQUEST_ORIGIN

no

Only if your Client ID is restricted to a domain: an origin it allows.

REQUEST_DESTINATION_ID

for links

One dashboard Route ID. Enables create_payment_link.

REQUEST_ROUTES

for several currencies

Several Route IDs, comma-separated, each optionally =CLIENT_ID. The first is the default.

REQUEST_PAYEE

for create_invoice with an API key

Default wallet that gets paid.

REQUEST_NOTES_FILE

no

Local notebook of names, notes and links (default ~/.config/req-invoice-mcp/invoices.json, off to disable).

REQUEST_API_URL

no

API base URL (default https://api.request.network).

Testing on Sepolia

Use a fresh wallet. Set up a Sepolia receiving route in the dashboard, get test ETH from a Sepolia faucet and test USDC from faucet.circle.com, then create a link, pay it and run check_invoice.

Safety

  • No private keys, no signing, no sending. Nothing in this server can move funds.

  • get_payment_transactions returns unsigned transactions for the payer to review in their own wallet.

  • Inputs are validated before any API call (addresses, amounts, IDs), so a confused model can't reach other API paths.

  • Credentials stay in your MCP client's config and are never echoed back in tool output.

Development

npm install
npm test        # unit + MCP round-trip tests against a fake API
npm run build

License

MIT

Available Tools

9 tools
check_invoiceCheck an invoiceA
Read-only

Use when the user asks whether a specific invoice or person has paid ("has Acme paid?", "did that invoice go through?"). Returns paid/unpaid with the payment transaction(s). Pass the invoice ID, or who with the name or note it was created with (e.g. "Acme") to check every matching invoice.

Inputs: who, requestId.

create_invoiceCreate an invoiceA

Use when the user wants to invoice someone in a specific token or network, bill in USD, or add an invoice number or note. Creates an on-chain invoice (a "request") for a specific amount, currency and network. paymentCurrency picks the token and network, e.g. "USDC-base", "USDC-mainnet", "USDC-arbitrum-one", "fUSDC-sepolia" (test USDC) (use find_currency to look IDs up). invoiceCurrency is what the amount is denominated in; it defaults to paymentCurrency, or use "USD" to bill a dollar amount paid in crypto. Use repeat for recurring billing ("bill Acme 500 USDC every month"). Returns the invoice ID.

Inputs: amount (required), paymentCurrency (required), for, payee, +5 more.

find_currencyFind a currency IDA
Read-only

Look up Request Network currency IDs to use as paymentCurrency, e.g. symbol "USDC" on network "base" or "sepolia".

Inputs: symbol, network.

get_payment_transactionsGet transactions to pay an invoiceA
Read-only

For the PAYER: returns the unsigned transaction(s) needed to pay an invoice (a token approval, if needed, then the payment). This server never signs or sends anything; the payer reviews and signs them in their own wallet.

Inputs: requestId (required), payerWallet.

list_invoicesList invoicesA
Read-only

Use when the user asks who owes them money, what is unpaid or outstanding, how much they are owed or have been paid, what they billed this month, or for their crypto invoices or receivables. Lists Request Network invoices newest first, marked PAID or UNPAID, with exact totals per currency ("you are owed 1,250 USDC across 4 invoices"). Filter with status (unpaid/paid), period (this_month, last_month, last_30_days, this_year), olderThanDays (e.g. 14 for "older than 2 weeks") and who. Check this alongside any other billing tools (e.g. Stripe) the user has.

Inputs: who, limit, offset, period, +3 more.

list_routesList receiving routesA
Read-only

Use when the user asks what currencies or networks they can be paid in, or before create_payment_link when it is unclear which route to use. Lists the configured receiving routes (network, token, wallet); the first is the default.

Inputs: no named parameters.

stop_recurring_invoiceStop or resume a recurring invoiceA
Idempotent

Use when the user wants to stop (cancel, pause, end) or restart a repeating invoice, e.g. "stop billing Acme every month". Pass the invoice ID or who. Set resume to true to restart it. Invoices already sent stay as they are.

Inputs: who, resume, requestId.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: routes, currency lookup, invoice creation/listing/checking, payment links, payer transactions, and recurring stops. The main overlap is between create_payment_link and create_invoice, since both can be used to bill someone; descriptions help, but an agent may still hesitate over which billing primitive to use.

    Naming Consistency5/5

    All tools follow a consistent snake_case verb_noun pattern: create_payment_link, list_routes, get_payment_link, find_currency, get_payment_transactions, create_invoice, check_invoice, list_invoices, stop_recurring_invoice. The convention is predictable and readable throughout.

    Tool Count5/5

    Nine tools is well-scoped for an invoicing/payment-request server. Each tool covers a meaningful operation in the billing lifecycle without obvious redundancy.

    Completeness4/5

    The surface covers invoice creation, payment links, listing, payment checks, payer transaction generation, recurring invoice cancellation, route listing, and currency lookup. Minor gaps exist around editing or deleting non-recurring invoices, though immutability may be inherent to on-chain invoices.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Accept crypto payments from AI agents: create an invoice in one call and get a hosted checkout link (USDC/USDT on Celo, Base, Arbitrum, Polygon, BSC). No API key, instant self-custody settlement.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to create, look up, list, and cancel crypto invoices, manage reusable payment links, check USDT and TRX rates, and simulate test payments through a secure API.
      7
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables merchants to preview, create, list, and track invoices with line items, VAT, payment links, due dates, and PDFs using an assistant secret key, while ensuring payments go to the merchant's wallet and never spend funds.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to create USDT and USDC invoices, retrieve payment links, and check invoice and store payment status across connected payment-gateway stores via the Model Context Protocol.
      2
      12
      551 npm
      MIT