stripe-agent-toolkit
Stripe Agent Toolkit
pinned to #89ffbeeupdated 2 days ago
Ask your AI client: “install mcps/stripe-agent-toolkit”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install mcps/stripe-agent-toolkitmetahub onboarded this repo on the author's behalf.
If you own github.com/stripe/ai on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
1,730
Last commit
2 days ago
Latest release
published
- #ai
- #llm
- #llm-agents
- #mcp
- #python
- #typescript
- #workflows
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.89ffbee· 2 days ago
Documentation
6 passed3 warningsDescription qualitywarn
Only 3 words · 20 chars — more detail helps discovery
Tell consumers what this artifact does in a full sentence.
Description is substantivewarn
Description is 3 words — thinner than the 8-word floor.
Say what it does AND when to use it. A model choosing between tools has only this text to go on.
Homepage or repository declaredwarn
No homepage or repository declared.
Add a "homepage" or "repository" field to pyproject.toml.
README is present and substantial
2,089 chars · 4 sections · 5 code blocks
Tags / topics declared
7 total — ai, llm, llm-agents, mcp, python, typescript (+1)
README has usage / example sections
no labeled section but 5 code blocks document usage
Homepage / docs URL declared
https://docs.stripe.com/agents
Documentation present and substantive
Documentation present (README.md, 300 words).
Documentation shows usage
Documentation includes 5 code examples.
Release history
1- releasecurrent89ffbeewarn2 days ago
Contents
The Stripe Agent Toolkit library enables popular agent frameworks including OpenAI's Agent SDK, LangChain, and CrewAI to integrate with Stripe APIs through function calling. The library is not exhaustive of the entire Stripe API. It is built directly on top of the Stripe Python SDK.
Installation
You don't need this source code unless you want to modify the package. If you just want to use the package, just run:
uv pip install stripe-agent-toolkit
Requirements
- Python 3.11+
Usage
The library needs to be configured with your account's secret key which is
available in your Stripe Dashboard. We strongly recommend using a Restricted API Key (rk_*) for better security and granular permissions. Tool availability is determined by the permissions you configure on the restricted key.
from stripe_agent_toolkit.openai.toolkit import create_stripe_agent_toolkit
async def main():
toolkit = await create_stripe_agent_toolkit(secret_key="rk_test_...")
tools = toolkit.get_tools()
# ... use tools ...
await toolkit.close() # Clean up when done
The toolkit works with OpenAI's Agent SDK, LangChain, and CrewAI and can be passed as a list of tools. For example:
from agents import Agent
async def main():
toolkit = await create_stripe_agent_toolkit(secret_key="rk_test_...")
stripe_agent = Agent(
name="Stripe Agent",
instructions="You are an expert at integrating with Stripe",
tools=toolkit.get_tools()
)
# ... use agent ...
await toolkit.close()
Examples for OpenAI's Agent SDK, LangChain, and CrewAI are included in /examples.
Context
In some cases you will want to provide values that serve as defaults when making requests. Currently, the account context value enables you to make API calls for your connected accounts.
toolkit = await create_stripe_agent_toolkit(
secret_key="rk_test_...",
configuration={
"context": {
"account": "acct_123"
}
}
)
Development
uv venv --python 3.11
source .venv/bin/activate
uv pip install -r requirements.txt
Reviews
No reviews yet. Be the first.
Related
vercel-example
Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
mcp-example
Example project for Mcp
headroom
The Context Optimization Layer for LLM Applications - Cut costs by 50-90%
mh install mcps/stripe-agent-toolkit