stripe

Official

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows integration with Stripe APIs through function calling, enabling operations such as creating/reading customers, products, prices, payment links, invoices, invoice items, as well as retrieving balance information, creating refunds, reading payment intent information, and searching Stripe documentation.

ストライプモデルコンテキストプロトコル

Stripeモデルコンテキストプロトコルサーバーを使用すると、関数呼び出しを通じてStripe APIとの統合が可能になります。このプロトコルは、様々なStripeサービスと連携するための様々なツールをサポートしています。

設定

npx を使用して Stripe MCP サーバーを実行するには、次のコマンドを使用します。

# 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

YOUR_STRIPE_SECRET_KEY実際のStripeシークレットキーに置き換えてください。または、環境変数で STRIPE_SECRET_KEY を設定することもできます。

Claude Desktopでの使用

claude_desktop_config.jsonに以下の行を追加してください。詳細はこちらをご覧ください。

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

Dockerを使用している場合

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

利用可能なツール

道具説明
customers.create新しい顧客を作成する
customers.read顧客情報を読む
products.create新しい製品を作成する
products.read製品情報を読む
prices.create新しい価格を作成する
prices.read価格情報を読む
paymentLinks.create新しい支払いリンクを作成する
invoices.create新しい請求書を作成する
invoices.update既存の請求書を更新する
invoiceItems.create新しい請求書項目を作成する
balance.read残高情報を取得する
refunds.create新しい払い戻しを作成する
paymentIntents.read支払い意図情報を読み取る
subscriptions.readサブスクリプション情報を読む
subscriptions.updateサブスクリプション情報を更新する
coupons.create新しいクーポンを作成する
coupons.readクーポン情報を読む
documentation.readStripeドキュメントを検索

サーバーのデバッグ

サーバーをデバッグするには、 MCP Inspectorを使用できます。

まずサーバーを構築する

npm run build

ターミナルで次のコマンドを実行します。

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

Dockerを使ってビルドする

まずサーバーを構築する

docker build -t mcp/stripe .

ターミナルで次のコマンドを実行します。

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

説明書

  1. YOUR_STRIPE_SECRET_KEY実際の Stripe API 秘密キーに置き換えます。
  2. コマンドを実行して、MCP Inspector を起動します。
  3. ブラウザで MCP Inspector UI を開き、「接続」をクリックして MCP サーバーを起動します。
  4. 選択したツールのリストを表示し、各ツールを個別にテストできます。
-
security - not tested
A
license - permissive license
-
quality - not tested

Stripeモデルコンテキストプロトコルサーバーを使用すると、関数呼び出しを通じてStripe APIとの統合が可能になります。このプロトコルは、様々なStripeサービスと連携するための様々なツールをサポートしています。

  1. Setup
    1. Usage with Claude Desktop
  2. Available tools
    1. Debugging the Server
      1. Build using Docker
      2. Instructions
    ID: 1m8tlvbsuh