https://mcp.macropay.ai
that any of those clients can reach after a single OAuth click — no API key to
paste, no SDK to install, no glue code.
Things to ask once you’re connected
Connect, then talk to your assistant in plain English. Every prompt below maps to real tools and works today. Revenue & growth- “What’s my MRR right now, and how does it compare to last week?”
- “Total settled revenue this month vs. last month — show the delta.”
- “Rank my top 10 customers by spend over the last 30 days.”
- “What’s my 30-day churn rate? How many subscriptions did I lose?”
- “Pull every order above $500 placed today.”
- “Refund order
ord_9f2cin full, then draft a confirmation email.” - “Pause
cus_h4k2’s subscription indefinitely and note why.” - “Payment
pay_3Ta1was declined — what happened and what do I tell them?” - “Cancel every subscription that’s been past due longer than 14 days.”
- “Spin up a ‘Scale’ plan at $99/month with a 14-day trial.”
- “Attach a $990 annual price to the Scale product.”
- “List every product I sell with its active prices.”
- “Group every failed payment in the last 7 days by decline reason.”
- “Find my newest dispute and tell me which evidence to file.”
- “Which webhook endpoints failed delivery in the last 24 hours?”
Connect in five minutes
- Claude Desktop
- Claude Code
- Cursor
- ChatGPT (Pro / Team / Enterprise)
- Windsurf / Codex / others
- Open Claude Desktop, go to Settings (⌘,) → Connectors.
- Choose Add custom connector.
- Enter:
- Name:
Macropay - Server URL:
https://mcp.macropay.ai/mcp/macropay-mcp
- Name:
- Hit Connect.
- A browser tab opens at
app.macropay.ai/oauth2/authorize. Sign in, choose the organization to grant, and click Allow. - The tab closes on its own. Macropay’s tools now appear in Claude, ready to use.
mrr_snapshot in its tool-use panel and answer.Your first multi-tool prompt
With the connector live, open Claude (Desktop or Web) and paste this:“Give me a snapshot of my Macropay account: today’s revenue, current MRR, 30-day churn, and my top 5 customers by 30-day spend.”Claude chains four tools —
revenue_today, mrr_snapshot, churn_30d,
top_customers — and stitches the results into one answer. A “Calling Macropay…”
indicator flashes per call.
The first tool call surfaces a one-time consent dialog in your client. After
that, reads run silently. Anything that mutates — refunds, plan creation,
cancellations — always asks for explicit confirmation, every time.
The toolbox
55 tools, grouped by what they touch.Read-only
cus_h4k2 logged this cycle?” and the agent reads the
customer’s meters straight from the same pipeline that aggregates ingested events
into billable usage.
Mutations (client confirms each one)
Composed analytics
Each of these fans out to several primitives and returns one synthesized answer — faster and more reliable than asking the agent to assemble the calls itself.Agentic commerce (opt-in)
Let the agent act, not just read — create payment links and meter usage on your behalf. These two are off by default; an org admin enables them under Settings → Integrations → MCP, and the connecting token must carry the write scope. Full guide: Agentic Commerce via MCP.agentic_commerce_disabled
message instead of silently failing.
Health
How authorization works
Clicking Connect runs this flow:Client opens the authorize endpoint
https://mcp.macropay.ai/oauth/authorize?....Macropay prompts you to sign in
app.macropay.ai/oauth2/authorize.You pick one organization
You approve the scope list and click Allow
The client stores an Organization Access Token
macropay_oat_…) and sends it as
a bearer on every subsequent tool call.Token-based auth (Organization Access Token)
If your client can’t do OAuth, mint a long-lived Organization Access Token (OAT) and drop it into the client config.Create the token
Name and scope it
cursor-ci-runner) and select scopes.Copy it now
macropay_oat_…) is shown once. Closing the modal hides
it for good.Wire it into the client as a bearer
Revoking access
Three interchangeable routes, all immediate:- Dashboard — Settings → Developers → Organization Access Tokens → Revoke on the row.
- Client — Claude Desktop → Connectors → Macropay → Disconnect (revokes server-side too).
- API —
DELETE /v1/organization-access-tokens/{id}with any valid auth.
401 invalid_token.
Security model
Troubleshooting
Connected, but no tools show up
Connected, but no tools show up
OAuth says 'invalid redirect URI'
OAuth says 'invalid redirect URI'
A call returns 401 invalid_token
A call returns 401 invalid_token
A call returns 403 insufficient_scope
A call returns 403 insufficient_scope
Reads work but mutations don't
Reads work but mutations don't
ChatGPT won't connect
ChatGPT won't connect
The agent picks the wrong tool or invents results
The agent picks the wrong tool or invents results
FAQ
Is this safe for production agents?
Is this safe for production agents?
Is there a sandbox?
Is there a sandbox?
mcp.macropay.ai URL
serves it — your auth determines which org and mode you hit.Does it cost extra?
Does it cost extra?
Can I give finance read-only access?
Can I give finance read-only access?
*:read only and share it through your secrets manager.
Finance pastes it into their MCP client, asks revenue / churn / customer
questions all day, and can never mutate a thing.Can I add custom tools?
Can I add custom tools?
What happens to my data?
What happens to my data?
Where do I see which tools ran?
Where do I see which tools ran?
Patterns worth keeping
Once connected, your assistant reaches as far into operations as a dashboard-fluent engineer. A few setups that pay off:- Daily digest — pin “Give me a morning Macropay digest” in your client and
run it each morning. The agent calls
revenue_today+mrr_snapshot+churn_30d+list_payments(filtered to failures) and writes you a brief. - Support triage — when a customer flags a failed charge, paste the payment id
and say “explain this failure and draft a reply.” The agent runs
explain_payment_failure+get_customerand produces the email. - Board-ready QBR — “Build a QBR for Q3: revenue, MRR trajectory, top customers, churn, biggest disputes — output markdown.” The agent fans out a dozen calls and assembles the doc.