by atharvagupta2003
Provides a Model Context Protocol server that interfaces with Stripe to manage customers, payment intents, charges, and refunds, while maintaining structured audit logs and robust error handling.
MCP Stripe Server offers a ready‑to‑run MCP‑compatible backend that connects to the Stripe API. It exposes tools for creating and retrieving customers, generating payment intents, listing charges, and issuing refunds. All operations are logged for auditability.
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
.env
file with your Stripe secret key:
STRIPE_API_KEY=your_stripe_secret_key
uv run src/server.py
customer_create
, payment_intent_create
, or refund_create
in a compatible client (e.g., Claude Desktop).Q: What Python version is required? A: Python 3.8 or newer.
Q: Which libraries must be installed?
A: MCP SDK (≥0.1.0), Stripe Python SDK, and python-dotenv
.
Q: How are audit logs accessed? A: Through MCP resource endpoints provided by the server; logs are stored in a structured format.
Q: What if the STRIPE_API_KEY
is missing?
A: The server will return a clear error indicating that the API key is required.
Q: Can I run the server on Windows?
A: Yes. Activate the virtual environment with venv\Scripts\activate
and then start the server as shown above.
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.
{ "mcpServers": { "stripe": { "command": "uv", "args": [ "run", "src/server.py" ], "env": { "STRIPE_API_KEY": "<YOUR_API_KEY>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by goat-sdk
Enables AI agents to send and receive payments, purchase goods and services, execute investment strategies, tokenize assets, and obtain financial insights by leveraging blockchains, stablecoins, and wallets.
by financial-datasets
Provides access to income statements, balance sheets, cash flow statements, stock prices, market news, and cryptocurrency data through MCP tools for AI assistants.
by alpacahq
Enables large language models to trade stocks and options, retrieve real‑time and historical market data, and manage portfolios using plain English commands through a local or remote MCP server.
by XeroAPI
Provides a bridge between the Model Context Protocol and Xero's API, enabling standardized access to Xero accounting and business features.
by stefanoamorelli
Provides an MCP server that connects AI models to SEC EDGAR filings, enabling real‑time retrieval of company filings, financial statements, and insider‑trading data with exact XBRL precision and verifiable filing references.
by ariadng
Enables AI LLMs to execute trades on the MetaTrader 5 platform through the Model Context Protocol.
by calvernaz
Provides access to Alpha Vantage stock market data via an MCP server, supporting stdio and HTTP streaming modes with optional OAuth 2.1 authentication.
by kukapay
Integrates the Freqtrade cryptocurrency trading bot with MCP, exposing its REST API as tools for AI agents to perform automated trading operations.
by kukapay
Provides a comprehensive set of cryptocurrency technical analysis indicators and ready‑to‑use trading strategies through an MCP interface, enabling AI agents and applications to generate buy, hold, or sell signals.