mcp-stripe logo

MCP Stripe

by atharvagupta2003

1 forks
12 stars
Free

What is mcp-stripe

mcp-stripe is a Model Context Protocol (MCP) server implementation developed by atharvagupta2003, designed to seamlessly integrate with Stripe for managing financial transactions. This server provides a secure and structured API to handle payments, customers, and refunds, making it a powerful tool for businesses that need reliable transaction management. By using mcp-stripe, developers can ensure that their applications can securely interact with Stripe's payment processing capabilities while benefiting from MCP's robust integration framework.

How to Use mcp-stripe

To get started with mcp-stripe, you need to set up your environment with a few prerequisites. Ensure you have Python 3.8 or higher, the MCP SDK 0.1.0 or above, the Stripe Python SDK, and dotenv for environment variable management.

Installation and Setup

  1. Create a Virtual Environment:

    python -m venv venv
    source venv/bin/activate  # On macOS/Linux
    venv\Scripts\activate    # On Windows
    
  2. Install Dependencies:

    pip install -e .
    
  3. Configure Environment Variables: Create a .env file and set your Stripe API key:

    STRIPE_API_KEY=your_stripe_secret_key
    
  4. Start the Server:

    uv run src/server.py
    

Using 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"
        }
    }
    

Key Features of mcp-stripe

  • Secure Payments: Leverages Stripe's robust payment processing capabilities to ensure secure and reliable financial transactions.
  • Audit Logging: Provides comprehensive logging of all operations related to customers, payments, and refunds, facilitating better traceability and accountability.
  • Error Handling: Offers clear and detailed error messages for common issues, such as missing API keys or invalid parameters, helping users quickly diagnose and resolve problems.
  • MCP Integration: Fully compatible with MCP tools and resource listings, enabling seamless interaction with AI clients like Claude.
  • Customer and Payment Management: Simplifies customer management and payment processing through intuitive API operations, such as creating and updating customer details, managing payment intents, and processing refunds.

mcp-stripe is designed to be a user-friendly solution for developers looking to integrate Stripe payments into their applications while maintaining a secure and auditable environment.

How to Use

To use the mcp-stripe, follow these steps:

  1. Visit https://github.com/atharv...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using mcp-stripe capabilities within your Claude conversations

Additional Information

Created

March 12, 2025

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More