customer_createLABSCO SUMMARY
Six Stripe operations, and a record of each one.
It covers the path from customer to refund rather than all of Stripe, and logs what was done at every step. That log is the difference between something that can touch payments and something you would let touch payments.
What it is
A Python MCP server over the Stripe API covering customers, payment intents, charges and refunds. Every operation is recorded in a structured audit log that the server exposes through its resource endpoints.
What you get
- Customers created, retrieved and updated
- A payment intent created to take a payment
- Recent charges listed
- A refund created against a charge
- An audit trail of the customer, payment and refund operations, readable as MCP resources
Requirements
Python 3.8+, the Stripe Python SDK and a current MCP SDK. Your Stripe secret key goes in a .env file. Install with pip install -e ., then run it with uv run src/server.py.
Setup effort
Build from source
USE CASES
Setting up a new customer record
Create the customer and read the record back to confirm what Stripe now holds.
Taking a payment
Create the payment intent against the customer, from the conversation that agreed the amount.
Answering whether a charge went through
List recent charges instead of opening the Stripe dashboard to check one line.
Making a customer whole
Refund the charge, with the operation recorded in the audit log for the next person who asks.
Correcting details on file
Update the customer record when an email or name turns out to be wrong.
6 tools
Listed in project docs. Your client may show a different list.
customer_retrievecustomer_updatepayment_intent_createcharge_listrefund_createBEFORE YOU INSTALL
What to know first
Tools you get
6 tools named in the project's documentation.
Requires
- Python 3.8+
- uv on PATH
- STRIPE_API_KEY in your environment
INSTALLATION
Connect your client
MCP Clients
Claude Desktop
Clone the repository and install it
git clone https://github.com/atharvagupta2003/mcp-stripe.git
cd mcp-stripe
python -m venv venv
source venv/bin/activate
pip install -e .Add this to claude_desktop_config.json
Point --directory at the src folder of your clone and put your Stripe secret key in STRIPE_API_KEY — server.py stops with "STRIPE_API_KEY required" without it. A STRIPE_API_KEY line in a .env file at the repository root works too.
{
"mcpServers": {
"stripe": {
"command": "uv",
"args": [
"--directory",
"<YOUR_PATH_TO_MCP_STRIPE>/src",
"run",
"server.py"
],
"env": {
"STRIPE_API_KEY": "<YOUR_STRIPE_API_KEY>"
}
}
}
}