Official Stripe toolkit for AI agents, supporting LangChain, OpenAI Agent SDK, CrewAI, and Vercel AI SDK. Provides MCP Server and IDE integrations to enable payments, subscriptions, and customer management in AI applications.
Core Components#
Agent Toolkit#
Wraps Stripe APIs as agent-callable tools for Python and TypeScript.
MCP Server#
Implements Model Context Protocol with local and remote deployment options:
- Local:
npx -y @stripe/mcp --api-key=YOUR_KEY - Remote:
https://mcp.stripe.com(OAuth supported)
Token Meter#
LLM token-level billing tracking (private preview), supporting OpenAI, Anthropic, Google Gemini native SDKs.
Supported Agent Frameworks#
| Framework | Python | TypeScript |
|---|---|---|
| OpenAI Agent SDK | ✅ | ✅ |
| LangChain | ✅ | ✅ |
| CrewAI | ✅ | ❌ |
| Vercel AI SDK | ❌ | ✅ |
| MCP | ✅ | ✅ |
IDE/Editor Integrations#
- Claude Code (
.claude-plugin) - Cursor (
.cursor-plugin) - VS Code (
.vscodeMCP config) - Kiro
- Gemini Extension
MCP Tool Coverage#
- Account & Balance: Account info, Balance queries
- Products & Pricing: Product, Price create/list
- Customer Management: Customer create/list
- Payments: Payment Link creation, PaymentIntent list
- Subscriptions: Subscription list/update/cancel
- Invoices: Invoice create/list/finalize
- Disputes & Refunds: Dispute, Refund handling
- Promotions: Coupon create/list
Quick Start#
# Python
pip install stripe-agent-toolkit
# TypeScript
npm install @stripe/agent-toolkit
# MCP Local Server
npx -y @stripe/mcp --api-key=YOUR_STRIPE_SECRET_KEY
Security Recommendations#
- Restricted API Key (
rk_*) strongly recommended for fine-grained permission control - Connected Accounts context supported
- Call
toolkit.close()to cleanup resources after use