Upcharge

Coming soon. The Upcharge API, SDKs and MCP server aren't live yet. This is a preview of what we're building, and paths and fields may change. Leave your number for early access

Priya's coding agent writes the checkout. Our MCP server makes sure it never charges the wrong fee.

An agent can read up on state laws. It can't make sure a surcharge never lands on a debit card or goes over a cap. The Upcharge MCP server is that compliance layer, and it gives Claude, Cursor or any MCP client five tools. This is what that looks like when Priya asks about one of her groomers.

The API is coming soon. Paths and field names may change before it goes live.

PriyaBiscuit's groom is $85. The customer just entered a card, and the groomer is in Austin. What do we charge?
AgentI'll run it through Upcharge before showing any surcharge.
upcharge.quote amount=8500 payment_method=pm_7Rk2Qx state=TX
AgentUpcharge says it's a credit card, and Texas allows a surcharge up to cost. The surcharge is $2.55, so the total is $87.55. I'll show this line above the Pay button: "A 3% surcharge applies to credit cards. Pay with debit and there's no surcharge."

Setting it up takes one line

Priya uses Claude Code, so she ran the first command. Desktop apps like Claude Desktop and Cursor take the config block instead. Start with a test key either way.

Claude Code
claude mcp add upcharge -e UPCHARGE_KEY=sk_test_... -- npx -y @upcharge/mcp
Or point a client at the hosted server
Server URL   https://mcp.upchargepayments.com/v1
Auth         Bearer sk_test_...  (or OAuth from the client)
Claude Desktop, Cursor and other clients
mcp.json
{
  "mcpServers": {
    "upcharge": {
      "command": "npx",
      "args": ["-y", "@upcharge/mcp"],
      "env": { "UPCHARGE_KEY": "sk_test_..." }
    }
  }
}

The five tools

Each one does a single job and returns plain JSON. In the conversation above, the agent only needed the first one.

ToolTakesGives back
upcharge.quoteamount, payment_method, stateEligible or not, surcharge, total, disclosure
upcharge.get_rulesstateCap, notices and status for the state
upcharge.disclosurestate, channelSign, checkout and receipt wording
upcharge.create_paymentquoteA payment with the surcharge itemized
upcharge.auditpaymentWhy a surcharge was or wasn't applied, rule by rule

The things Priya worried about

Handing payments to an agent made her nervous, which is fair. Here's what she asked us before she turned it on.

Could it charge a real card by accident?

Not with a test key. With sk_test_ nothing touches real money. Live charges need a live key that you add on purpose.

What if I only want it to look things up?

Give it a read-only key. It can quote fees and read rules, but it can't charge anyone.

What if it asks for an illegal fee?

The API refuses. Debit surcharges and over-cap rates get turned down no matter what the agent sends.

How do I check its work?

upcharge.audit shows which rule applied to any payment, step by step. Card data stays on our PCI DSS compliant platform, through our parent company Carpay.

Docs written for your model to read

Point your model at these instead of letting it scrape web pages. They stay in sync with the API.

AddressWhat it is
upchargepayments.com/llms.txtAn index of the docs written for language models
upchargepayments.com/llms-full.txtEvery docs page as one plain text file
api.upchargepayments.com/openapi.jsonThe OpenAPI spec, for code generation and tool calling

Want to try it with your agent?

Leave your number and we'll send a sandbox key you can hand to it today.

Or try the calculator