Cursor connects to Stripe through DeepLedger's hosted MCP server, read only: one mcp.json entry gives Cursor's agent Stripe reporting for every company you manage, next to that company's QuickBooks Online or Xero books, and you switch between companies by asking. Nothing Cursor does through DeepLedger can refund, pay or change anything in Stripe. This guide is for finance people and developers who use Cursor to build payout schedules, fee analyses and close working papers.
What you are connecting
The same address serves QuickBooks Online, Xero and Stripe for reporting:
https://mcp.deepledger.ai/mcp
Stripe is an add-on on a DeepLedger company, next to its QuickBooks Online or Xero books. Someone with read and write access to the company connects it on the company's Connections tab, through Stripe's own approval screen, once per company. Cursor never handles Stripe credentials. The Stripe MCP page summarises what DeepLedger reads.
The Stripe tool available through DeepLedger is stripemcpRead, with these operations:
| Operation | What it reads |
|---|---|
account | The connected Stripe account, and whether it is live or a test account |
balance | Available and pending balance |
list_balance_transactions, get_balance_transaction | Gross, fee and net for each charge, refund, fee, dispute and payout; filterable by payout |
list_payouts, get_payout | Payouts and their arrival dates |
list_charges, list_refunds, list_disputes | Charges, refunds and disputes |
list_invoices, get_invoice | Stripe invoices |
list_application_fees, list_transfers | Application fees and transfers |
list_customers, list_subscriptions | Customers and subscriptions |
The get_* operations take an id. The list_* operations take a created date range, a limit and a cursor for the next page. Stripe's write tool, its report runs and every tool that moves money are blocked.
Why one entry for every company
A Cursor workspace that serves a client list needs every company reachable, and a way to keep a script in one company when that matters.
DeepLedger gives you both from one entry:
- Every company you can access, each with its own Stripe connection to exactly one Stripe account, and its own QuickBooks Online or Xero books.
- Switching in Agent chat for interactive work across companies.
- Pinned API keys for jobs that must not move: a One company key cannot switch.
- Team access. Each person signs in as themselves and reaches only their assigned companies.
Before you start
- A DeepLedger account with each company connected to QuickBooks Online or Xero, and Stripe connected on its Connections tab.
- Cursor desktop. Enterprise admins can restrict which MCP servers and tools are allowed.
- A rule for client data on disk. Anything the agent writes to your workspace is client data.
- Pricing: $10 per Stripe connection per month, and $20 per QuickBooks Online or Xero connection, with unlimited users and a 14-day free trial with no credit card. See pricing.
How do I connect Cursor to Stripe?
- Add DeepLedger to
~/.cursor/mcp.json(all projects) or.cursor/mcp.json(one project), keeping existing servers:
{
"mcpServers": {
"deepledger": {
"url": "https://mcp.deepledger.ai/mcp"
}
}
}
- Open Customize in Cursor's sidebar, enable DeepLedger and sign in with your DeepLedger account.
- Check Available Tools lists
companiesandstripemcpRead. The Stripe tool appears once at least one of your companies has Stripe connected. - In Agent chat, ask:
Using DeepLedger, which company am I in, and which Stripe account is connected? Is it live or a test account?
If Stripe was connected after Cursor loaded its tool list, reconnect the server to refresh it. See Cursor's MCP documentation for the current menus.
API keys for scripts and pinned jobs
Create a key under Settings → API keys → Create key and choose All my companies (can switch) or One company (cannot). Set it as DEEPLEDGER_API_KEY in the environment Cursor starts from:
{
"mcpServers": {
"deepledger": {
"url": "https://mcp.deepledger.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:DEEPLEDGER_API_KEY}"
}
}
}
}
The key acts as its creator with that person's access. Stripe is read only for everyone; for a reporting job that should never write to the books either, have a read-only member create the key.
Switch companies by asking
List my companies that have Stripe connected.
Switch to Ridgeway Coffee Roasters and list the Stripe payouts that arrived last week.
Now do the same for Ridgeway Wholesale LLC.
The companies tool runs list, current and switch (by name or id). The active company is shared with your other AI apps, so a switch in Claude moves Cursor too. A business with two Stripe accounts uses two DeepLedger companies; see multiple Stripe accounts, one AI connection.
Reporting prompts to try
Payout schedule
For each company with Stripe, list the payouts that arrived in October 2026 and write them to stripe/payouts-2026-10.csv with company, payout id, arrival date, amount and currency. Convert from cents. Do not change anything.
Payout breakdown
In Ridgeway Coffee Roasters, for the payout that arrived on October 16, write its balance transactions to stripe/payout-oct16.md with type, gross, fee and net, and a line showing the nets add up to the payout.
Fee analysis
Total Stripe fees from balance transactions created in October 2026 for each company, by type, and write one markdown table per company to stripe/fees.md. Never add amounts in different currencies together.
Disputes register
List Stripe disputes created since July 1 in each company with amount, status and the charge each relates to, to stripe/disputes.csv.
Payouts against the books
In Ridgeway Coffee Roasters, match each October Stripe payout to a deposit in the books and list payouts with no deposit. Do not change anything.
The bookkeeping that follows is in reconciling Stripe payouts in QuickBooks or Xero, and refunds and disputes are covered in reviewing Stripe disputes and refunds with AI.
Is it safe to let Cursor read Stripe?
- Read only in Stripe. DeepLedger lets through only named read operations; refunds, invoice and subscription changes and money movement are blocked.
- One account, its own mode. DeepLedger sets the Stripe account and its live or test mode, so a prompt or script cannot reach another account or switch mode.
- The books are separate. The same entry carries the company's ledger tools, which can write for a member with write access. Cursor's run mode and admin policy decide which tool calls ask first; check the company in each call's arguments.
- Files are client data. Keep exported payouts, fees and disputes out of version control.
- Revoke by removing the entry, revoking the grant under Settings → Connected apps or the key under Settings → API keys, or disconnecting Stripe on the company's Connections tab.
Troubleshooting
No stripemcpRead tool. None of your companies has Stripe connected yet, or Cursor holds an old tool list. Reconnect the server.
"Switch not allowed." The key is a One company key. That is the point of a pinned key.
The account is unclear. The company's Stripe grant reaches more than one account. Disconnect Stripe and connect again, choosing one.
Authentication error with a key. Check DEEPLEDGER_API_KEY is set where Cursor starts and begins with dl_live_.
Amounts look 100 times too big. Stripe returns amounts in the smallest currency unit. Ask the agent to convert.
Frequently asked questions
How do I connect Cursor to Stripe?
Connect Stripe to each company in DeepLedger on its Connections tab, choosing one Stripe account on Stripe's screen. Then add a deepledger entry with the URL https://mcp.deepledger.ai/mcp to ~/.cursor/mcp.json, enable it on Cursor's Customize page, sign in with your DeepLedger account and ask the agent which Stripe account is connected.
Can Cursor refund or change anything in Stripe?
No. DeepLedger connects Stripe for reporting only. Cursor's agent can read the balance, balance transactions, payouts, charges, refunds, disputes, invoices, application fees, transfers, customers and subscriptions, and every Stripe write and money movement is blocked.
Can Cursor read Stripe for several companies from one entry?
Yes. The entry reaches every company your DeepLedger user can access, and each company has its own Stripe connection to one Stripe account. Ask the agent to switch company by name, or to loop through your companies one at a time.
How do I stop a Cursor job from switching to another company?
Use a DeepLedger API key created for One company. A One company key works only in that company and cannot switch, so a script or long agent run stays in one company's Stripe account and books.
Can I make a reporting script that cannot write to the books?
Yes. A DeepLedger API key acts as the person who created it, so a key created by a read-only member can read Stripe and the books but cannot write. Client tool filters in your code are not a permission; the member's access is.
Related guides
- Connect Claude to Stripe for reporting
- Connect Cursor to QuickBooks Online
- Connect Cursor to Xero
- Reconcile Stripe payouts in QuickBooks or Xero with AI
- Connect Microsoft Copilot to Stripe
Every supported app is on AI platforms and integrations; connection prices are on the pricing page.