mcpField
S
stripe-mcp-server

stripe-mcp-server

ローカル
github.com/friendlygeorge金融データ021 週間前に更新

stripe-mcp-server について

stripe-mcp-serverは、AIアシスタントなどのMCPクライアントにStripe APIの操作機能を提供します。顧客や商品からサブスクリプション、返金、Webhookまで、決済と請求を扱います。

主な機能

  1. 01利用可能残高と保留中残高の確認
  2. 02顧客情報の管理
  3. 03請求の一覧と決済インテントの管理
  4. 04商品と価格の作成
  5. 05サブスクリプションと請求書の管理
  6. 06返金、送金、Webhookの管理

活用シーン

  1. 01Stripeアカウント残高の確認
  2. 02顧客または決済インテントの作成
  3. 03サブスクリプションの作成やキャンセル
  4. 04返金の実行またはWebhookの設定

MCP 対応

MCP クライアントにStripe APIを操作するツールを提供します。顧客、請求、決済、商品、サブスクリプション、請求書、返金、送金、Webhookを扱います。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"friendlygeorge-stripe": {
"command": "npx",
"args": [
"-y",
"stripe-mcp-server"
]
}
}
}
起動コマンドnpx -y stripe-mcp-server

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmstripe-mcp-server1.0.0

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

Stripe MCP サーバー

Stripe API 向けの Model Context Protocol サーバーです。顧客、請求、支払い、サブスクリプション、商品、価格、請求書、返金、振替、Webhook を管理するための 21 個のツールを提供します。

機能

  • 残高 — 利用可能残高と保留中残高を確認します
  • 顧客 — 顧客の一覧表示、作成、取得、更新
  • 請求 — フィルターを指定して請求を一覧表示、取得
  • 支払いインテント — 支払いインテントの作成と一覧表示
  • 商品 — 商品の一覧表示と作成
  • 価格 — 単発および継続課金の価格の一覧表示と作成
  • サブスクリプション — サブスクリプションの一覧表示、作成、キャンセル
  • 請求書 — ステータスで絞り込んだ請求書の一覧表示
  • 返金 — 理由を記録した全額または一部返金
  • 振替 — Connect プラットフォームの振替を一覧表示
  • Webhook — Webhook エンドポイントの一覧表示と作成

インストール

Claude Desktop

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

MCP 設定に追加します:

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": ["-y", "stripe-mcp-server"],
      "env": {
        "STRIPE_API_KEY": "sk_test_your_key_here"
      }
    }
  }
}
手動
npm install -g stripe-mcp-server
export STRIPE_API_KEY=sk_test_your_key_here
stripe-mcp-server

環境変数

変数必須説明
STRIPE_API_KEYはいStripe のシークレットキー(sk_test_... または sk_live_...)

使い方

アカウント残高を取得する
{ "tool": "get_balance", "arguments": {} }
顧客を作成する
{
  "tool": "create_customer",
  "arguments": {
    "email": "[email protected]",
    "name": "Jane Doe"
  }
}
支払いインテントを作成する
{
  "tool": "create_payment_intent",
  "arguments": {
    "amount": 2000,
    "currency": "usd",
    "customer": "cus_abc123",
    "description": "Order #1234"
  }
}
サブスクリプションを作成する
{
  "tool": "create_subscription",
  "arguments": {
    "customer": "cus_abc123",
    "price": "price_xyz789"
  }
}

API 対応範囲

リソースツール
残高get_balance
顧客list_customers, create_customer, retrieve_customer, update_customer
請求list_charges, retrieve_charge
支払いインテントcreate_payment_intent, list_payment_intents
商品list_products, create_product
価格list_prices, create_price
サブスクリプションlist_subscriptions, create_subscription, cancel_subscription
請求書list_invoices
返金create_refund
振替list_transfers
Webhooklist_webhook_endpoints, create_webhook_endpoint

開発

git clone https://github.com/friendlygeorge/stripe-mcp-server.git
cd stripe-mcp-server
npm install
npm run build
npm start

ライセンス

MIT

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。