
Stripe Agent Toolkit & MCP
Publisher: Stripe · GitHub / npm (@stripe/mcp)
Bottom Line
Verdict: Stripe Agent Toolkit & MCP is an official, MIT-licensed way to give AI agents payment context, but it touches real money and customer data. Connect it only with a restricted API key scoped to read permissions, add write actions such as refunds or payment links one at a time, and require human approval for anything that moves funds.
Official Stripe Agent Toolkit & MCP with granular per-action permissions for invoices, refunds, and payment links.
Security Audit & Least-Privilege Guidance
Official fine-grained restricted keys supported; never pass a root secret key—start strictly read-only.
Recommended Use Cases
- Let DTC finance/support agents verify payment & dispute statuses in read-only mode
- Generate B2B wholesale payment links with human approval
- Platforms
- Shopify / DTC · Cross-platform
- License & Activity
- MIT (2026-11)
- GitHub Stars (2026-11-30)
- ★ 2,102
npx -y @stripe/mcp --tools=all --api-key=$STRIPE_RESTRICTED_KEY
Trust & Maintenance Facts
| Attribute | Verified value |
|---|---|
| Publisher | Stripe |
| Trust tier | official vendor |
| License | MIT |
| Last active | 2026-11 |
| Source registry | GitHub / npm (@stripe/mcp) |
| Install / access | npx -y @stripe/mcp --tools=all --api-key=$STRIPE_RESTRICTED_KEY |
| Verified date | 2026-11-27 |
Permission Boundary Matrix
| Scope | Access | Credential | Human approval | Risk | Notes |
|---|---|---|---|---|---|
| Customers, charges & payment intents | Read | Restricted API key (rk_) | No | Medium | Contains customer PII; keep transcripts private. |
| Disputes & refund history | Read | Restricted API key (rk_) | No | Medium | Ideal first use case for support and finance agents. |
| Create refunds | Write | Restricted API key with refund write | Yes | Critical | Moves money out of your balance; approve each one. |
| Payment links & invoices | Write | Restricted API key with write scope | Yes | High | Wrong amounts reach real customers; review parameters first. |
| Calls to api.stripe.com | Network | Restricted API key (rk_) | No | Low | Runs locally via npx; traffic goes only to Stripe. |
MCP Client Config (Claude Desktop / Cursor)
Create a restricted key in the Stripe Dashboard (Developers → API keys) with read access to the resources you need, then paste it in place of the placeholder. Even with --tools=all, the restricted key limits what the agent can actually do. Test in test mode (rk_test_) first.
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@stripe/mcp",
"--tools=all",
"--api-key=rk_live_YOUR_RESTRICTED_KEY"
]
}
}
}3 Copy-Paste Operational Prompts
Dispute triage
List all open disputes from the last 30 days with amount, reason, evidence due date and the customer’s count of prior successful payments. Sort by due date and draft an evidence checklist for each. Read-only: do not submit evidence.
Failed payment analysis
Summarize failed payment intents from the last 7 days grouped by decline code and card country. Highlight any decline code whose count doubled versus the previous 7 days and suggest checkout fixes I should review.
B2B payment link draft
Draft, but do not create, a payment link for a wholesale order: 200 units of SKU X at $12.50 each in USD, with shipping as a separate line item. Show the exact API parameters you would send so I can approve them before creation.
Least-Privilege Security Checklist
- Never give an agent your standard secret key (sk_live_); use a restricted key (rk_) with only the permissions you need.
- Start in test mode with rk_test_ keys and replay real workflows before switching to live mode.
- Enable refund and payment-link tools one at a time, each behind explicit human approval.
- Rotate the restricted key when staff change and monitor its usage in the Stripe Dashboard logs.
- Keep transcripts containing customer data out of shared workspaces.
Versus Paying for Traditional SaaS
The toolkit is free and open source (MIT); you pay only normal Stripe processing fees. It replaces ad-hoc CSV exports and one-off scripts for dispute and payment questions, not your accounting, reconciliation or chargeback-management software, which remain the system of record.
Who should use it
Use it if
DTC brands and B2B sellers on Stripe who want support or finance agents to check payment status, disputes and failed charges, with tightly scoped restricted keys.
Skip it if
You process payments mainly through Shopify Payments or Amazon, or your team cannot maintain restricted keys and an approval step for refunds.
Frequently Asked Questions
Can I connect it with my normal Stripe secret key?
You can, but you should not. A root secret key grants every action, including refunds and payouts settings. Use a restricted key with read-only permissions and add write permissions only for approved workflows.
Should an AI agent issue refunds automatically?
No. Let the agent prepare the refund with amount, reason and order context, then have a human approve it. Refunds are the highest-risk action in our permission matrix.
Is the Stripe Agent Toolkit open source?
Yes. It is published by Stripe under the MIT license in the stripe/agent-toolkit GitHub repository, with the MCP server distributed on npm as @stripe/mcp.
Does it see my Shopify Payments transactions?
It only sees payments processed in your own Stripe account. Shopify Payments transactions are managed in Shopify admin, so use Shopify’s own tools for those orders.
Is Stripe Agent Toolkit & MCP official and actively maintained?
Stripe Agent Toolkit & MCP is published by Stripe, which we classify as a official vendor. It is licensed MIT, last active 2026-11 according to GitHub / npm (@stripe/mcp), and was verified by AI ToolsHub on 2026-11-27.
What permissions does Stripe Agent Toolkit & MCP need, and which need human approval?
We map 5 permission scopes, 2 of which should require human approval (create refunds; payment links & invoices). The highest-risk scope is “Create refunds” at Critical risk. See the permission boundary matrix above for credentials and notes.
How We Audit MCP Servers & Agents
Every entry is checked by hand against the same criteria: whether the publisher is the platform vendor or a verified organization, whether source code and license are public, whether it is still maintained, which credentials and permissions it requests, whether write or execution capabilities can be reduced to read-only, and whether known risks such as credential exfiltration or prompt injection apply. Ratings reflect security and permission boundaries, not feature quality, and are never sold.