Socket
Book a DemoInstallSign in
Socket

@stripe/mcp

Package Overview
Dependencies
Maintainers
59
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stripe/mcp

A command line tool for setting up Stripe MCP server

0.2.4
latest
npmnpm
Version published
Weekly downloads
1.7K
-50.25%
Maintainers
59
Weekly downloads
 
Created
Source

Stripe Model Context Protocol

The 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.

Setup

Stripe hosts a remote MCP server at https://mcp.stripe.com. View the docs here. To run the Stripe MCP server locally using npx, use the following command:

# To set up all available tools
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

# To set up specific tools
npx -y @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=YOUR_STRIPE_SECRET_KEY

# To configure a Stripe connected account
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID

Make sure to replace YOUR_STRIPE_SECRET_KEY with your actual Stripe secret key. Alternatively, you could set the STRIPE_SECRET_KEY in your environment variables.

Usage with Claude Desktop

Add the following to your claude_desktop_config.json. See here for more details.

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": [
          "-y",
          "@stripe/mcp",
          "--tools=all",
          "--api-key=STRIPE_SECRET_KEY"
      ]
    }
  }
}

of if you're using Docker

{
    “mcpServers”: {
        “stripe”: {
            “command”: “docker",
            “args”: [
                “run”,
                "--rm",
                "-i",
                “mcp/stripe”,
                “--tools=all”,
                “--api-key=STRIPE_SECRET_KEY”
            ]
        }
    }
}

Available tools

ToolDescription
balance.readRetrieve balance information
coupons.createCreate a new coupon
coupons.readRead coupon information
customers.createCreate a new customer
customers.readRead customer information
disputes.readRead disputes information
disputes.updateUpdate an existing dispute
documentation.readSearch Stripe documentation
invoiceItems.createCreate a new invoice item
invoices.createCreate a new invoice
invoices.readRead invoice information
invoices.updateUpdate an existing invoice
paymentIntents.readRead payment intent information
paymentLinks.createCreate a new payment link
prices.createCreate a new price
prices.readRead price information
products.createCreate a new product
products.readRead product information
refunds.createCreate a new refund
subscriptions.readRead subscription information
subscriptions.updateUpdate subscription information

Debugging the Server

To debug your server, you can use the MCP Inspector.

First build the server

npm run build

Run the following command in your terminal:

# Start MCP Inspector and server with all tools
npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

Build using Docker

First build the server

docker build -t mcp/stripe .

Run the following command in your terminal:

docker run -p 3000:3000 -p 5173:5173 -v /var/run/docker.sock:/var/run/docker.sock mcp/inspector docker run --rm -i mcp/stripe --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

Instructions

  • Replace YOUR_STRIPE_SECRET_KEY with your actual Stripe API secret key.
  • Run the command to start the MCP Inspector.
  • Open the MCP Inspector UI in your browser and click Connect to start the MCP server.
  • You can see the list of tools you selected and test each tool individually.

Keywords

mcp

FAQs

Package last updated on 13 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.