MCP Stripe Server
Allows to manage Stripe payment operations including customer management, payment intents, charges, and refunds through a structured API
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Stripe Servercreate a payment intent for $50 for customer cus_abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Stripe Server
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.
Demo
Requirements
Python 3.8+
MCP SDK 0.1.0+
Stripe Python SDK
dotenv
Related MCP server: Stripe MCP Server
Components
Resources
The server provides audit logging of all Stripe operations:
Stores audit logs of customer, payment, and refund operations
Supports structured logging for better traceability
Uses MCP resource endpoints to retrieve audit data
Tools
The server implements Stripe API operations, including:
Customer Management
customer_create: Create a new customer
customer_retrieve: Retrieve a customer's details
customer_update: Update customer information
Payment Operations
payment_intent_create: Create a payment intent for processing payments
charge_list: List recent charges
Refund Operations
refund_create: Create a refund for a charge
Features
Secure Payments: Integrates with Stripe for robust payment handling
Audit Logging: Keeps track of all Stripe transactions
Error Handling: Comprehensive error handling with clear messages
MCP Integration: Supports MCP-compatible tools and resource listing
Installation
Installing via Smithery
To install Stripe Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claudeInstall dependencies
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
pip install -e .Configuration
Set up the environment variables in a .env file:
STRIPE_API_KEY=your_stripe_secret_keyClaude Desktop
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"
]
}
}
}Usage
Start the server
uv run src/server.pyExample MCP Commands
Create a customer
{
"tool": "customer_create",
"arguments": {
"email": "customer@example.com",
"name": "John Doe"
}
}Retrieve a customer
{
"tool": "customer_retrieve",
"arguments": {
"customer_id": "cus_123456"
}
}Create a payment intent
{
"tool": "payment_intent_create",
"arguments": {
"amount": 5000,
"currency": "usd",
"customer": "cus_123456"
}
}Create a refund
{
"tool": "refund_create",
"arguments": {
"charge_id": "ch_abc123"
}
}Error Handling
The server provides clear error messages for common scenarios:
Missing API Key: STRIPE_API_KEY required
Invalid API Key: Authentication error
Customer not found: Invalid customer ID
Invalid input: Missing or incorrect parameters
Development
Testing
Run the MCP Inspector for interactive testing:
npx @modelcontextprotocol/inspector uv --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/src run server.pyBuilding
Update dependencies:
uv compile pyproject.tomlBuild package:
uv buildContributing
We welcome contributions! Please see our Contributing Guidelines for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcpOAuthcom.stripe
MCP server integrating with Stripe - tools for customers, products, payments, and more.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.8,372 npm1,799-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server implementation that integrates with Stripe, enabling AI assistants to interact with the Stripe API for payment processing functionality.-
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables interaction with the Ryft API to manage financial resources such as payment sessions, customers, and subscriptions. It supports comprehensive operations including payouts, disputes, and account-scoped requests through a secure stdio interface.69MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol (MCP) server that provides testing and debugging tools for Stripe integrations, including test clock management, customer and product management, and subscription testing.17 npm9MIT