{"type":"mcp_client","name":"agent-toolkit","description":"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.","category":"Developer Tools","language":"TypeScript","stars":1606,"forks":70,"owner":"stripe","github_url":"https://github.com/stripe/agent-toolkit","homepage":"https://docs.stripe.com/agents","setup":"## Setup\n\n**Python:**\n\n1.  Install the package: `pip install stripe-agent-toolkit` (Requires Python 3.11+).\n2.  Configure the library with your Stripe secret key.\n3.  Optionally, provide context values like `account` for connected accounts.\n\n**TypeScript:**\n\n1.  Install the package: `npm install @stripe/agent-toolkit` (Requires Node 18+).\n2.  Configure the library with your Stripe secret key and specify actions in the `configuration`.\n3.  Optionally, provide context values like `account` for connected accounts.\n4.  For Vercel's AI SDK, use middleware to submit billing events for metered billing.\n\n**Model Context Protocol (MCP):**\n\n1.  Run the Stripe MCP server using npx: `npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY` or set the `STRIPE_SECRET_KEY` environment variable.\n2.  Alternatively, set up your own MCP server using the provided TypeScript code.","tools":"## Available Tools\n\n1.  Integrates with OpenAI's Agent SDK, LangChain, CrewAI, Vercel's AI SDK, and Model Context Protocol (MCP) through function calling.\n2.  Supports creating customers, listing customers, creating products, and listing products.\n3.  Supports creating prices, listing prices, creating payment links, creating invoices, and creating invoice items.\n4.  Supports finalizing invoices, retrieving balance, and creating refunds.\n5.  Enables making API calls for connected accounts using the `account` context value.\n6.  Provides middleware for metered billing with Vercel's AI SDK.","faq":null,"created_at":"2024-11-11T17:13:41+00:00","updated_at":"2025-03-28T20:33:59+00:00","source_url":"https://model-context-protocol.com/clients/stripe-api-integration-agent-toolkit","related_articles":[]}