Manage Stripe Payments and Customers
Stripe MCP Server for secure payment processing, customer management, and refunds with audit logging.
Why it matters
Integrate with Stripe to securely manage financial transactions, including customer creation, payment processing, and refunds, with comprehensive audit logging for enhanced traceability.
Outcomes
What it gets done
Create and manage Stripe customers.
Process payments and generate payment intents.
Initiate refunds for completed charges.
Maintain an audit log of all financial operations.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-stripe | bash Capabilities
Tools your agent gets
Create a new customer
Get customer data
Update customer information
Create a payment intent for payment processing
Show a list of recent charges
Create a refund for a charge
Overview
Stripe MCP Server
What it does
As an AI developer, I want to securely manage financial transactions for my application, so that I can process payments, handle customer data, and issue refunds reliably.
This involves setting up the server and integrating it with my AI client. The installation can be done via Smithery:
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
Or from source:
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -e .
Once configured, I can use tools like customer_create to add new customers, payment_intent_create to process payments, and refund_create to issue refunds. For example:
Create a new customer with email customer@example.com and name John Doe
This allows me to handle the full lifecycle of financial interactions within my application, with the added benefit of audit logging for all operations.
How it connects
2024-05-15T10:00:00Z
Source README
A Model Context Protocol server that integrates with Stripe for payment processing, customer management, and refunds, providing secure financial transaction management with audit logging.
Installation
Smithery
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
From Source
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -e .
Configuration
Claude Desktop
{
"mcpServers": {
"stripe": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src",
"run",
"server.py"
]
}
}
}
Available Tools
| Tool | Description |
|---|---|
customer_create |
Create a new customer |
customer_retrieve |
Get customer data |
customer_update |
Update customer information |
payment_intent_create |
Create a payment intent for payment processing |
charge_list |
Show a list of recent charges |
refund_create |
Create a refund for a charge |
Features
- Secure Payments: Stripe integration for reliable payment processing
- Audit Log: Track all Stripe transactions
- Error Handling: Comprehensive error handling with clear messages
- MCP Integration: Support for MCP-compatible tools and resource list
- Audit Log Storage: Logs of operations with customers, payments, and refunds
- Structured Logging Support: Enhanced traceability through structured logging
Environment Variables
Required
STRIPE_API_KEY- Your Stripe secret key for API authentication
Usage Examples
Create a new customer with email customer@example.com and name John Doe
Get customer data for customer ID cus_123456
Create a payment intent for $50.00 in USD for a specific customer
Create a refund for charge ch_abc123
Notes
Requires Python 3.8+, MCP SDK 0.1.0+, Stripe Python SDK, and dotenv. Provides comprehensive error handling for common scenarios such as missing API keys, invalid customer IDs, and incorrect parameters. Includes support for testing with MCP Inspector.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.