Repository avatar
AI Tools
v0.4.1
active

req-invoice-mcp

io.github.becomingmountains/req-invoice-mcp

Create crypto invoices and payment links on Request Network, and track who has paid. No wallet.

Documentation

req-invoice-mcp

npm req-invoice-mcp MCP server

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

ToolWhat it does
create_payment_linkBill someone and get a link they open to pay, in any of your currencies and networks.
list_routesThe currencies and networks you can be paid in.
create_invoiceCreate an invoice in a specific token and network, bill in USD, or repeat it monthly for retainers.
stop_recurring_invoiceStop (or resume) a repeating invoice.
check_invoicePaid or not, with the payment transaction. Flags short payments and overpayments. Ask by name: "has Acme paid?"
get_payment_linkThe saved link for an invoice, so you can send it again.
list_invoicesWho owes you what, with exact totals (part-paid invoices count what's left). Filters: unpaid, part-paid, overpaid, this month, older than 2 weeks, by name.
get_payment_transactionsFor payers: the unsigned transactions to pay an invoice in their own wallet.
find_currencyLook up currency IDs like USDC-base or fUSDC-sepolia.

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", "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

VariableRequiredPurpose
REQUEST_CLIENT_ID or REQUEST_API_KEYyesRequest Network credentials.
REQUEST_ORIGINnoOnly if your Client ID is restricted to a domain: an origin it allows.
REQUEST_DESTINATION_IDfor linksOne dashboard Route ID. Enables create_payment_link.
REQUEST_ROUTESfor several currenciesSeveral Route IDs, comma-separated, each optionally =CLIENT_ID. The first is the default.
REQUEST_PAYEEfor create_invoice with an API keyDefault wallet that gets paid.
REQUEST_NOTES_FILEnoLocal notebook of names, notes and links (default ~/.config/req-invoice-mcp/invoices.json, off to disable).
REQUEST_API_URLnoAPI 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

NPM
req-invoice-mcp
Install Command
npm install req-invoice-mcp