stripe-mcp-server について
stripe-mcp-serverは、AIアシスタントなどのMCPクライアントにStripe APIの操作機能を提供します。顧客や商品からサブスクリプション、返金、Webhookまで、決済と請求を扱います。
主な機能
- 01利用可能残高と保留中残高の確認
- 02顧客情報の管理
- 03請求の一覧と決済インテントの管理
- 04商品と価格の作成
- 05サブスクリプションと請求書の管理
- 06返金、送金、Webhookの管理
活用シーン
- 01Stripeアカウント残高の確認
- 02顧客または決済インテントの作成
- 03サブスクリプションの作成やキャンセル
- 04返金の実行またはWebhookの設定
MCP 対応
MCP クライアントにStripe APIを操作するツールを提供します。顧客、請求、決済、商品、サブスクリプション、請求書、返金、送金、Webhookを扱います。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
ツール一覧はまだ取得されていません
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
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 |
| Webhook | list_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
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。