Skip to content

MCP SERVER

Your AI agent.
Connected to payments.

Tools for orders, invoices, payment links, products and webhooks on one hosted endpoint any MCP client can reach. Connect with a URL and an API key. It comes with the Pro plan and above.

  • Hosted, nothing to install
  • Any MCP client
  • Lightning, or on-chain

WHAT IT IS

One hosted endpoint for every MCP client.

The Model Context Protocol is the open standard for giving agents tools.

  • A tool for each task

    Each key gets only the tools its security group allows.

  • Any MCP client

    Claude Code, Claude Desktop, Cursor, Windsurf and any client that speaks Streamable HTTP.

HOW TO CONNECT

Three steps.
One config block.

  1. 01

    Create an API key.

    Generate a key in your dashboard: a test key while you build, a live key in production.

  2. 02

    Paste one config block.

    Point your MCP client at https://satsrail.com/mcp, with your key as a header.

  3. 03

    Your agent takes payments.

    It creates orders, Lightning invoices or on-chain addresses, and checks payment status. Lightning settles in seconds. On-chain is final once confirmed.

MCP CLIENT CONFIG

{
  "mcpServers": {
    "satsrail": {
      "type": "http",
      "url": "https://satsrail.com/mcp",
      "headers": { "Authorization": "Bearer sk_live_your_key" }
    }
  }
}

Stdio-only clients bridge with mcp-remote.

No key to paste?

A client with OAuth connects with the URL alone: you sign in, pick the business and approve. Revoke it any time under Settings → AI assistants.

WHAT AGENTS CAN DO

Tools for the work your dashboard does.

  • Orders and invoices

    Build and send orders, generate Lightning invoices or on-chain addresses, and track delivery. See the order loop.

  • Checkout and payment requests

    Open hosted checkout sessions and one-call payment requests, and track confirmed payments.

  • Products and catalog

    Manage products, product types and the catalog, and make payment links.

  • Sales and reports

    Read the sales ledger, today's sales and the revenue, settlement and tax reports.

  • Webhooks

    Create, update and delete webhook endpoints.

  • Account and access

    Read the merchant profile, wallets, documents, API key usage and the public plans. Verify access tokens for gated content.

Changes need two-factor sign-in

A tool that makes a change runs only if the key's holder, whoever made it or connected the assistant, has two-factor sign-in on, checked on every call. Read-only tools work either way.

See the tool catalog

AGENTS THAT BUY

Send the link.
Not the money.

An agent buying for you needs no wallet and no card.

  • STEP 1

    The agent gets the link

    From the merchant, their site or their agent. Adding .json to a SatsRail link tells it the purpose, price and payee without opening a checkout.

  • STEP 2

    It sends the link to you

    In the chat, email or app you already use with it. The preview shows the item, price and merchant.

  • STEP 3

    You pay from your wallet

    You check the price and pay, straight to the merchant's wallet. The agent never holds funds or card details.

Selling instead? Your agent makes the link with create_payment_link.

ORDERS, START TO FINISH

From a conversation to a delivered order.

  1. 01

    Build the order.

    Your agent starts a draft with create_order and adds each item, from the catalog or a one-off, with add_order_item. Taxes come per item from your catalog's rules.

  2. 02

    Send one link.

    create_order_payment_link returns one link for the whole order, taxes included. Or send_order_payment_email emails it with your logo and a Pay button. Replies come to you.

  3. 03

    The customer pays in bitcoin.

    The link opens the order in your currency. The bitcoin amount is set at the rate when they click Pay and goes straight to your wallet. An order is paid once.

  4. 04

    Your agent confirms it.

    get_order reports the order paid as soon as the payment lands.

  5. 05

    Then gets it delivered.

    list_unfulfilled_orders shows what still needs to go out. mark_order_fulfilled records each order shipped, with its tracking number, then delivered.

EXAMPLE CONVERSATION

You
Ada wants two bags of house blend and a grinder. Send her the bill.
Agent
Order ORD-7F2A: 2 × House blend $36.00, Grinder $60.00, tax $1.80, total $97.80. I emailed Ada the payment link, good for 24 hours.
Agent, later
Ada paid $97.80. It's in your undelivered orders.
You
Shipped, UPS 1Z999.
Agent
Marked shipped, with the tracking number.

YOUR CONTROLS

You set the rules.

Set them in your dashboard under Settings → Orders. Your agent works inside them.

  • Order expiry

    Choose how long a link stays payable, from 1 hour to 7 days.

  • Automatic reminders

    None, one or two emails to an unpaid customer: halfway to expiry and shortly before. Never once the order is paid, cancelled or expired. Your agent can send one on request.

  • Fulfillment tracking

    Ask for a shipping address and phone before payment. Paid orders stay on an Undelivered list, which your agent sees too, until marked shipped and delivered.

  • No more than its holder

    An agent can do only what the person behind its key can do. Every tool call goes in your audit log.

FOR DEVELOPERS

Everything else is in the docs.

CONNECT YOUR AGENT.

One key. One config block.
Paid straight to your wallet.

The MCP server comes with Pro · Lightning, or on-chain · No custody

Start free. No credit card