Skip to main content
Connect your PraisonAI agents to Stripe to look up customers, inspect invoices, check subscription statuses, and debug payment events using Stripe’s official remote MCP server.
Start in Stripe Test Mode / Sandboxes first. Never grant autonomous write/refund permissions on a live Stripe account without scoping tools via --allow and setting approval="always".
The user asks for unpaid invoices; PraisonAI authenticates with Stripe, requests approval before executing each call, and returns a clean billing summary.

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

Select your Stripe Sandbox or account in the browser consent screen.
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

Build and test all billing agents against a Stripe Sandbox / Test Mode account before ever touching production billing data.
In scheduled reports or CI, create a Stripe Restricted API Key (rk_...) with Read permissions only on Customers, Invoices, and Subscriptions.
Any agent permitted to issue refunds, cancel subscriptions, or create payment links should require explicit human approval via MCP(..., approval="always").

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