支付集成服务

通过Claude代码技能与Stripe支付基础设施集成,实现客户管理、订阅处理、发票操作等功能。

  • by wrsmith108
  • 混合部署
  • 1 星标
  • 更新于
在 GitHub 查看 wrsmith108/stripe-mcp-skill

使用说明

条纹MCP集成

Claude Code技能,用于通过模型上下文协议(MCP)与Stripe支付基础设施集成。

概述

此技能使Claude能够直接与Stripe API交互:

  • 客户管理
  • 订阅处理
  • 发票操作
  • 产品目录管理
  • 文档搜索

安装

方法1:远程HTTP(推荐)

添加 ~/.claude/settings.json:

{
  "mcpServers": {
    "stripe": {
      "type": "http",
      "url": "https://mcp.stripe.com/v1/sse"
    }
  }
}

方法2:本地npm

npm install -g @stripe/mcp
claude mcp add stripe -- npx -y @stripe/mcp

方法3:项目配置

创建 .mcp.json 在您的项目中:

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": ["-y", "@stripe/mcp"],
      "env": {
        "STRIPE_SECRET_KEY": "${STRIPE_SECRET_KEY}"
      }
    }
  }
}

用法

安装后,通过自然语言与Stripe交互:

"Create a customer with email user@example.com"
"List all my Stripe products"
"Search Stripe docs for subscription billing"
"Cancel subscription sub_xxx"

环境变量

变量 描述
STRIPE_SECRET_KEY 您的Stripe API密钥
STRIPE_WEBHOOK_SECRET Webhook签名密钥

文档

资源

许可证

麻省理工学院