New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@devtechtricks/stripe-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devtechtricks/stripe-mcp

A read-only MCP server for querying Stripe customers, payments, subscriptions, and invoices from any MCP client.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
25
-10.71%
Maintainers
1
Weekly downloads
 
Created
Source

stripe-mcp

A read-only Model Context Protocol server for querying Stripe — customers, payments, subscriptions, invoices, and refunds — from Claude or any MCP-compatible client.

Built as a companion to my SaaS backend boilerplate.

Why read-only

This server intentionally exposes no write, refund, or delete tools. It's designed for safely querying and exploring Stripe data from an AI assistant — not for taking billing actions. It also refuses to start if you pass a live secret key, to make accidental production use harder.

Install

npm install -g @devtechtricks/stripe-mcp

Or run directly without installing:

npx -y @devtechtricks/stripe-mcp

Setup

  • Grab a test-mode secret key (or better, a restricted key with only read scopes) from your Stripe Dashboard. It should start with sk_test_ or rk_test_.
  • Add the server to your MCP client config:
{
  "mcpServers": {
    "stripe-mcp": {
      "command": "npx",
      "args": ["-y", "@devtechtricks/stripe-mcp"],
      "env": {
        "STRIPE_SECRET_KEY": "sk_test_..."
      }
    }
  }
}

For Claude Code:

claude mcp add stripe-mcp --env STRIPE_SECRET_KEY=sk_test_... -- npx -y @devtechtricks/stripe-mcp

Available tools

ToolDescription
list_customersList recent customers. Optional limit, email.
get_customerGet a customer by customer_id.
list_paymentsList recent payment intents. Optional limit, customer_id.
get_paymentGet a payment intent by payment_intent_id.
list_subscriptionsList subscriptions. Optional limit, customer_id, status.
get_subscriptionGet a subscription by subscription_id.
list_invoicesList invoices. Optional limit, customer_id, status.
list_refundsList refunds. Optional limit, payment_intent_id.

Example

> list the 5 most recent customers
> get_customer cus_ABC123
> what subscriptions does cus_ABC123 have?
> any failed payments recently?

Local development

git clone https://github.com/robinafaruqia/stripe-mcp.git
cd stripe-mcp
npm install
cp .env.example .env   # then put your sk_test_ / rk_test_ key in .env
node index.js

index.js loads .env from the package directory when STRIPE_SECRET_KEY is not already set. MCP clients should still pass the key in env (npm installs do not include .env).

Roadmap

  • search_customers using Stripe's search API
  • Pagination cursors (starting_after) for large result sets
  • Optional tools that cross-reference organization/billing data from the SaaS boilerplate once its billing module ships

License

MIT

Keywords

mcp

FAQs

Package last updated on 03 Sep 2026

Related posts