npm stripe-mcp-serverstdioMITupdated 3mo ago
A Model Context Protocol server for the Stripe API. Provides 21 tools for managing customers, charges, payments, subscriptions, products, prices, invoices, refunds, transfers, and webhooks.
该仓库已被所有者归档。仍可使用,但不再更新。
stripe mcp server 能做什么?
Stripe MCP Server
A Model Context Protocol server for the Stripe API. Provides 21 tools for managing customers, charges, payments, subscriptions, products, prices, invoices, refunds, transfers, and webhooks.
Features
- Balance — Check available and pending balances
- Customers — List, create, retrieve, update customers
- Charges — List and retrieve charges with filters
- Payment Intents — Create and list payment intents
- Products — List and create products
- Prices — List and create one-time and recurring prices
- Subscriptions — List, create, and cancel subscriptions
- Invoices — List invoices with status filters
- Refunds — Full or partial refunds with reason tracking
- Transfers — List Connect platform transfers
- Webhooks — List and create webhook endpoints
Installation
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": ["-y", "stripe-mcp-server"],
"env": {
"STRIPE_API_KEY": "sk_test_your_key_here"
}
}
}
}
Cursor / VS Code
Add to your MCP configuration:
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": ["-y", "stripe-mcp-server"],
"env": {
"STRIPE_API_KEY": "sk_test_your_key_here"
}
}
}
}
Manual
npm install -g stripe-mcp-server
export STRIPE_API_KEY=sk_test_your_key_here
stripe-mcp-server
Environment Variables
| Variable | Required | Description |
|---|---|---|
STRIPE_API_KEY |
Yes | Your Stripe secret key (sk_test_... or sk_live_...) |
Usage
Get account balance
{ "tool": "get_balance", "arguments": {} }
Create a customer
{
"tool": "create_customer",
"arguments": {
"email": "customer@example.com",
"name": "Jane Doe"
}
}
Create a payment intent
{
"tool": "create_payment_intent",
"arguments": {
"amount": 2000,
"currency": "usd",
"customer": "cus_abc123",
"description": "Order #1234"
}
}
Create a subscription
{
"tool": "create_subscription",
"arguments": {
"customer": "cus_abc123",
"price": "price_xyz789"
}
}
API Coverage
| Resource | Tools |
|---|---|
| Balance | get_balance |
| Customers | list_customers, create_customer, retrieve_customer, update_customer |
| Charges | list_charges, retrieve_charge |
| Payment Intents | create_payment_intent, list_payment_intents |
| Products | list_products, create_product |
| Prices | list_prices, create_price |
| Subscriptions | list_subscriptions, create_subscription, cancel_subscription |
| Invoices | list_invoices |
| Refunds | create_refund |
| Transfers | list_transfers |
| Webhooks | list_webhook_endpoints, create_webhook_endpoint |
Development
git clone https://github.com/friendlygeorge/stripe-mcp-server.git
cd stripe-mcp-server
npm install
npm run build
npm start
License
MIT
安装
把 stripe mcp server 添加到你的客户端。选择你正在使用的那个。
claude mcp add stripe-mcp-server -- npx -y stripe-mcp-servercodex mcp add stripe-mcp-server -- npx -y stripe-mcp-serveramp mcp add stripe-mcp-server -- npx -y stripe-mcp-server{
"mcpServers": {
"stripe-mcp-server": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"stripe-mcp-server": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"stripe-mcp-server","command":"npx","args":["-y","stripe-mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"stripe-mcp-server": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"stripe-mcp-server": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"stripe-mcp-server": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"stripe-mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"stripe-mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y stripe-mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
评分
39 / 100
不完整
- 文档22/25
- 维护11/25
- 可信度13/20
- 能力0/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 87 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 1.0.0最新 | 2026年6月6日 |