The Stripe Agent Toolkit enables agent frameworks like OpenAI's Agent SDK and LangChain to integrate with Stripe APIs through function calling, supporting both Python and TypeScript with Stripe SDKs.
The Stripe Agent Toolkit facilitates the integration of Stripe APIs into popular agent frameworks like OpenAI's Agent SDK, LangChain, CrewAI, Vercel's AI SDK, and Model Context Protocol (MCP) through function calling. It supports both Python (3.11+) and TypeScript (Node 18+), built upon the Stripe Python and Node SDKs.
Python: Install via pip install stripe-agent-toolkit
. Configure with your Stripe secret key and specify allowed actions. It integrates with OpenAI's Agent SDK, LangChain, and CrewAI. Context values, like account
, enable API calls for connected accounts.
TypeScript: Install via npm install @stripe/agent-toolkit
. Similar configuration with secret key and actions. It works with LangChain and Vercel's AI SDK. Vercel's AI SDK supports middleware for metered billing.
The toolkit also supports the Model Context Protocol (MCP), allowing you to run a Stripe MCP server using npx @stripe/mcp
.
Supported API methods include creating/listing customers, products, prices, payment links, invoices, invoice items, retrieving balance, and creating refunds.
stripe/agent-toolkit
November 11, 2024
March 28, 2025
TypeScript