How It Works
PraisonAI connects to Stripe’s hosted MCP server (https://mcp.stripe.com) over Streamable HTTP with OAuth 2.1 PKCE (or a read-only Restricted API Key header in CI) and saves OAuth tokens locally at 0600 in ~/.praisonai/mcp-auth.json.
Step-by-Step Setup
1
Prerequisites
- A Stripe account (start with a Stripe Sandbox / Test Mode account before connecting Live Mode)
- For headless/CI read-only access: a Restricted API Key (
rk_test_...) created in Stripe Dashboard → Developers → API Keys
2
Install PraisonAI with MCP support
3
Add and authenticate Stripe
- CLI (Interactive OAuth)
- Headless / SSH (--manual)
- Restricted API Key (CI / Read-Only)
- PraisonAI Dashboard
4
Verify and list discovered tools
5
Run a safe billing agent
Scope Tools for Safety
Always pair read-only Restricted Keys (or--allow) with approval="always" for payment systems:
Common Workflows
- Failed Payment Triage:
"List invoices from the last 7 days with failed payment attempts and summarize failure reasons." - Customer Support Lookup:
"Look up subscription status and next renewal date for customer email alice@example.com."
Troubleshooting
Best Practices
Use Stripe Sandboxes for development and testing
Use Stripe Sandboxes for development and testing
Build and test all billing agents against a Stripe Sandbox / Test Mode account before ever touching production billing data.
Use read-only Restricted API Keys for automated reporting
Use read-only Restricted API Keys for automated reporting
In scheduled reports or CI, create a Stripe Restricted API Key (
rk_...) with Read permissions only on Customers, Invoices, and Subscriptions.Always enable approval='always' for write tools
Always enable approval='always' for write tools
Any agent permitted to issue refunds, cancel subscriptions, or create payment links should require explicit human approval via
MCP(..., approval="always").Related
List of Connectors
Browse all popular connectors and step-by-step guides
Remote MCP Connectors
CLI commands, —manual sign-in, and Dashboard setup
Human Approval
Require human confirmation before sensitive tool calls
MCP OAuth Authentication
OAuth 2.1 PKCE flow and token storage

