by atharvagupta2003
mcp-stripe is a Model Context Protocol (MCP) server implementation that integrates with Stripe for handling payments, customers, and refunds.
mcp-stripe is a Model Context Protocol (MCP) server that integrates with Stripe to manage financial transactions securely. It provides a structured API for handling payments, customers, and refunds, and includes audit logging for all Stripe operations.
To use mcp-stripe, you can install it via Smithery for Claude Desktop or manually. After installation, configure your environment variables with your Stripe API key and add the server configuration to your Claude Desktop settings. You can then start the server and use example MCP commands to create customers, retrieve customer details, create payment intents, and create refunds.
mcp-stripe can be used in scenarios where you need to:
Q: What are the requirements to run mcp-stripe? A: You need Python 3.8+, MCP SDK 0.1.0+, Stripe Python SDK, and dotenv.
Q: How do I configure my Stripe API key?
A: Set the STRIPE_API_KEY
environment variable in a .env
file.
Q: How do I handle errors? A: The server provides clear error messages for issues like missing API keys, invalid API keys, customer not found, or invalid input.
A Model Context Protocol (MCP) server implementation that integrates with Stripe for handling payments, customers, and refunds. This server provides a structured API to manage financial transactions securely.
The server provides audit logging of all Stripe operations:
The server implements Stripe API operations, including:
To install Stripe Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -e .
Set up the environment variables in a .env
file:
STRIPE_API_KEY=your_stripe_secret_key
Add the server configuration to your Claude Desktop config:
Windows: C:\Users<username>\AppData\Roaming\Claude\claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"stripe": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src",
"run",
"server.py"
]
}
}
}
uv run src/server.py
{
"tool": "customer_create",
"arguments": {
"email": "customer@example.com",
"name": "John Doe"
}
}
{
"tool": "customer_retrieve",
"arguments": {
"customer_id": "cus_123456"
}
}
{
"tool": "payment_intent_create",
"arguments": {
"amount": 5000,
"currency": "usd",
"customer": "cus_123456"
}
}
{
"tool": "refund_create",
"arguments": {
"charge_id": "ch_abc123"
}
}
The server provides clear error messages for common scenarios:
Run the MCP Inspector for interactive testing:
npx @modelcontextprotocol/inspector uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/src run server.py
uv compile pyproject.toml
uv build
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by stripe
Enables popular agent frameworks to integrate with Stripe APIs via function calling, providing tools for MCP, Python, and TypeScript.
by goat-sdk
GOAT is the largest agentic finance toolkit for AI agents, enabling them to become economic actors by leveraging blockchains, cryptocurrencies, and wallets.
by financial-datasets
Provides AI assistants with tools to retrieve income statements, balance sheets, cash flow statements, stock prices, market news, and crypto information via the Model Context Protocol.
by razorpay
Enables seamless interaction with Razorpay APIs via Model Context Protocol, allowing developers and AI agents to capture payments, manage orders, process refunds, handle settlements, and more through a unified MCP interface.
by armorwallet
Armor Crypto MCP provides a unified interface for AI agents to interact with the crypto ecosystem, including wallet management, swaps, staking, and multi-chain operations.
by alpacahq
Alpaca’s MCP server lets you trade stocks and options, analyze market data, and build strategies through Alpaca's Trading API.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by kukapay
Integrates the Freqtrade cryptocurrency trading bot with an MCP server, exposing the bot's REST API as tools that AI agents can call for fully automated trading operations.
by kukapay
Offers over 50 cryptocurrency technical analysis indicators and corresponding trading strategies, enabling AI agents and developers to assess market trends and generate buy, hold, or sell signals.