Stripe Agent Toolkit
by Stripe
The Stripe Agent Toolkit enables popular agent frameworks to integrate with Stripe APIs through function calling. It supports both Python and TypeScript and is built directly on top of the Stripe Python and Node SDKs.
Last updated: N/A
What is Stripe Agent Toolkit?
The Stripe Agent Toolkit is a library that allows agent frameworks like OpenAI's Agent SDK, LangChain, CrewAI, Vercel's AI SDK, and Model Context Protocol (MCP) to interact with Stripe APIs. It provides a set of tools for these frameworks to perform actions on Stripe, such as creating customers, coupons, products, payment links, and more.
How to use Stripe Agent Toolkit?
To use the toolkit, install it via pip (Python) or npm (TypeScript). Configure it with your Stripe secret key and specify the actions you want to enable. Then, pass the toolkit's tools to your agent framework. The toolkit also supports providing context values, such as the account ID for connected accounts.
Key features of Stripe Agent Toolkit
Integration with popular agent frameworks
Support for both Python and TypeScript
Built on top of Stripe's official SDKs
Configurable actions to limit API access
Context support for connected accounts
Support for Model Context Protocol (MCP)
Middleware for metered billing with Vercel AI SDK
Use cases of Stripe Agent Toolkit
Automating Stripe tasks with AI agents
Building conversational interfaces for Stripe management
Integrating Stripe functionality into existing agent workflows
Creating custom solutions for Stripe users with AI assistance
FAQ from Stripe Agent Toolkit
What Stripe API methods are supported?
What Stripe API methods are supported?
The toolkit supports a range of API methods, including creating and listing customers, coupons, products, prices, payment links, invoices, subscriptions, and refunds, as well as retrieving balance.
How do I install the toolkit?
How do I install the toolkit?
For Python, use pip install stripe-agent-toolkit
. For TypeScript, use npm install @stripe/agent-toolkit
.
How do I configure the toolkit?
How do I configure the toolkit?
You need to provide your Stripe secret key and configure the actions you want to enable in the configuration
object.
Can I use this with connected accounts?
Can I use this with connected accounts?
Yes, you can provide the account
context value to make API calls for your connected accounts.
Does it work with Model Context Protocol (MCP)?
Does it work with Model Context Protocol (MCP)?
Yes, the Stripe Agent Toolkit supports the Model Context Protocol (MCP). You can run the Stripe MCP server using npx or set up your own MCP server.