Grok reads Stripe through DeepLedger's hosted MCP server, read only: connect the company's Stripe account to DeepLedger once, add DeepLedger as a custom connector in Grok, and Grok can answer questions about payouts, fees, refunds and disputes next to that company's QuickBooks Online or Xero books. The same connection works from Grok Bot and from the xAI Responses API. Nothing Grok does through DeepLedger can refund, pay or change anything in Stripe.
This guide is for bookkeepers, accountants and finance leads who close the books for businesses that sell through Stripe and already use Grok. It covers what the connection reads, the three Grok routes, and the questions that make a Stripe month-end quicker.
To book a payout in the ledger after reading it, see reconciling Stripe payouts in QuickBooks or Xero.
What you are connecting
DeepLedger connects Stripe for reporting, through Stripe's official MCP server, with DeepLedger's own rules in front of it. Grok sees one Stripe tool, and that tool only reads:
| Operation | What Grok gets |
|---|---|
| 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 | Each charge, refund, fee, dispute and payout with its gross, fee and net, 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 |
Everything else Stripe's MCP server offers is blocked by DeepLedger: refunds, payment links, invoice and subscription changes, report runs and any tool that moves money.
DeepLedger, not Grok, sets two things on every call:
- One account. The company's Stripe connection must reach exactly one Stripe account. If the grant reaches more than one, DeepLedger refuses to read until you reconnect with one.
- Live or test. The account's own mode is used as it is, so a prompt cannot switch a live account into test mode or the other way round.
| Route | Best for | Signs in with |
|---|---|---|
| Grok custom connector | Questions in Grok chat on the web or mobile | Your DeepLedger sign-in |
| Grok Bot | An agent on Grok's cloud computer | Your DeepLedger sign-in, from the bot's connect card |
| xAI Responses API | Reports your own code runs | A DeepLedger API key |
Before you start
- A DeepLedger account. The trial needs no card.
- The company in DeepLedger, usually with QuickBooks Online or Xero already connected.
- Access to the Stripe account you want to connect, so you can approve it on Stripe's screen.
- For chat: the Custom option at grok.com/connectors. See xAI's connector documentation.
- For the API: an xAI API key and a DeepLedger API key.
See pricing for the Stripe add-on.
How do I connect Grok to Stripe?
- In DeepLedger, open Companies, select the company, open its Connections tab and select Connect Stripe on the Stripe (official MCP) card. Choose one Stripe account on Stripe's screen and approve.
- Open grok.com/connectors.
- Choose New Connector, then Custom.
- Paste
https://mcp.deepledger.ai/mcp. - Sign in with your DeepLedger account. You do not sign in to Stripe here.
- In a new chat, ask:
Using DeepLedger, which company am I in, and which Stripe account is connected? Is it live or a test account?
After step 1, the Stripe card shows Connected with the account name, and a Stripe sandbox badge if you connected a test account. If you already use DeepLedger in Grok for QuickBooks or Xero, skip steps 2 to 5: the same connector reads Stripe once the company has it connected.
On Grok Business and Enterprise, an admin adds the connector first in the xAI console under Grok Business → Connectors → Add Connector → Other. See xAI's connector management guide.
How do I connect Grok Bot to Stripe?
Grok Bot is xAI's app for agents working on a persistent cloud computer. It is a different product from Grok chat, and it does not use grok.com/connectors. DeepLedger is not in the Grok Bot plugin catalog, so add it in the chat:
- Connect Stripe to the company in DeepLedger, as in step 1 above.
- In the Grok Bot chat, say:
Add a custom MCP server called DeepLedger at https://mcp.deepledger.ai/mcp
- Confirm when the bot asks.
- Click Authorize on the connect card, then sign in to DeepLedger in the browser that opens.
- Back in the bot chat, ask:
Which company am I in, and which Stripe account is connected?
Installed connections follow your account policies and can be shared across bots on that account. Check xAI's team and enterprise requirements before sharing access. The Grok and QuickBooks guide covers Grok Bot with the ledger.
Can I read Stripe from the xAI API?
Yes. For an agent you run yourself, add DeepLedger as a tool of type mcp in the xAI Responses API. Create a DeepLedger API key under Settings → API keys → Create key. The key acts as you, with your access. Keep both keys in environment variables, never in code.
curl https://api.x.ai/v1/responses \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"input": [{"role": "user", "content": "Which Stripe account is connected? List the payouts that arrived last month with arrival dates, converted from cents to dollars, and total them."}],
"tools": [{
"type": "mcp",
"server_url": "https://mcp.deepledger.ai/mcp",
"server_label": "deepledger",
"authorization": "'"$DEEPLEDGER_API_KEY"'",
"allowed_tools": ["companies", "stripemcpRead"]
}]
}'
allowed_tools narrows what this request offers the model. It is not a permission: the key can still reach the ledger tools its creator can use. For a job that should never write to the books, have a read-only member create the key. To keep a job in one company, create the key for One company; it cannot switch. Field names follow xAI's remote MCP documentation. Your own scheduler runs the job; DeepLedger acts only when called.
What to ask Grok about Stripe
Name the company, the period and the currency. These are example prompts; check the first answers against the Stripe Dashboard.
Payouts for the month
List every Stripe payout that arrived in October 2026 with its arrival date and amount. Convert amounts from cents to dollars and give a total.
What made up one payout
For the payout that arrived on October 21, list its balance transactions with type, gross, fee and net. Show that the nets add up to the payout.
Fees for the period
Total the Stripe fees on balance transactions created in October 2026, grouped by type. Leave payouts out.
Disputes
List disputes created this quarter with their amount, status and the charge each relates to.
Compare with the ledger
Switch to Pinecrest Studio LLC. For each October Stripe payout, find the matching deposit in the books and list any payout with no deposit, or any deposit with no payout. Do not change anything.
For a closer look at disputes and refunds, see reviewing Stripe disputes and refunds with AI.
Is it safe?
- Read only by design. DeepLedger lets through only named read operations of Stripe's MCP server. Stripe's write tool, its report runs and every money tool are blocked.
- One account, its own mode. DeepLedger chooses the Stripe account and its live or test mode, so a request cannot reach another account.
- Team access. Each teammate signs in to DeepLedger as themselves. Members reach only the companies they are assigned to; owners and admins see every company.
- The ledger is separate. The same connector carries the company's QuickBooks Online or Xero tools, which can write. Ask Grok to change nothing when you only want to read, and use a read-only member for read-only work.
- Revoking access. Disconnect Stripe on the company's Connections tab, remove the connector at grok.com/connectors, revoke the grant under Settings → Connected apps in DeepLedger, or revoke the key under Settings → API keys.
Troubleshooting
| What you see | What to do |
|---|---|
| Grok has no Stripe results | Check that Stripe shows Connected on the company's Connections tab, and that Grok is working in that company. |
| "No active company" | Ask Grok to list your companies, then switch to the one with Stripe connected. |
| The account is unclear | The Stripe grant reaches more than one account. Disconnect Stripe and connect again, choosing one account. |
| Amounts look 100 times too big | Stripe returns amounts in the smallest currency unit. Ask Grok to convert and name the currency. |
| No Custom option at grok.com/connectors | On Business and Enterprise, an admin adds the connector first. |
| API authentication error | The authorization field must carry the DeepLedger key, not the xAI key. |
| The Stripe card says Needs reconnect | Connect Stripe again on the company's Connections tab. |
Frequently asked questions
How do I connect Grok to Stripe?
Connect Stripe to the company in DeepLedger on its Connections tab and choose one Stripe account on Stripe's screen. Then open grok.com/connectors, choose New Connector, then Custom, paste https://mcp.deepledger.ai/mcp and sign in with your DeepLedger account. Ask Grok which Stripe account is connected.
Can Grok refund a payment or create a payment link in Stripe?
No. DeepLedger connects Stripe for reporting only. Grok can read the balance, balance transactions, payouts, charges, refunds, disputes, invoices, application fees, transfers, customers and subscriptions. Refunds, payment links, invoice and subscription changes and every money movement are blocked, so you make those in Stripe yourself.
How do I connect Grok Bot to Stripe?
Grok Bot does not use grok.com/connectors. In the Grok Bot chat, ask it to add a custom MCP server named DeepLedger at https://mcp.deepledger.ai/mcp, confirm, click Authorize and sign in to DeepLedger. Stripe is read through the same connection once the company has it connected.
Can a Grok agent read Stripe from my own code?
Yes, through the xAI Responses API. Add DeepLedger as a tool of type mcp with a DeepLedger API key in the authorization field. Your own code or scheduler starts the request; DeepLedger acts only when it is called.
Why do Stripe amounts look 100 times too big?
Stripe returns amounts in the smallest unit of the currency, such as cents for US dollars. Ask Grok to convert the amounts and name the currency in every table, and check one figure against the Stripe Dashboard.
Related guides
- Connect Claude to Stripe for reporting
- Connect ChatGPT to Stripe for reporting
- Connect multiple Stripe accounts to one AI connection
- Connect Grok and Grok Bot to QuickBooks Online and Connect Grok to Xero
- Review Stripe disputes and refunds with AI
See every supported app on AI platforms and integrations.