Integrations
Enables integration with Apple Pay through Square's API, allowing for payment processing via Apple's payment platform.
Provides access to Square's complete API ecosystem, enabling interactions with services such as catalog management, customer management, payment processing, order management, inventory tracking, appointment booking, gift cards, loyalty programs, and many other Square business services.
スクエアモデルコンテキストプロトコルサーバー(ベータ版)
このプロジェクトはモデルコンテキストプロトコル標準に準拠しており、AI アシスタントが Square の connect API と対話できるようになります。
クイックスタート
npx を使用して Square MCP サーバーを起動して実行します。
YOUR_SQUARE_ACCESS_TOKEN
を実際のSquareアクセストークンに置き換えてください。アクセストークンは、 Squareアクセストークンのガイドに従って取得できます。コマンド実行前に環境変数を設定することもできます。
設定オプション
環境変数 | 目的 | 例 |
---|---|---|
ACCESS_TOKEN | Square APIアクセストークン | ACCESS_TOKEN=sq0atp-... |
SANDBOX | Squareサンドボックス環境を使用する | SANDBOX=true |
PRODUCTION | Square の制作環境を使用する | PRODUCTION=true |
DISALLOW_WRITES | 読み取り専用操作に制限する | DISALLOW_WRITES=true |
SQUARE_VERSION | Square APIのバージョンを指定する | SQUARE_VERSION=2025-04-16 |
AIアシスタントとの統合
Goose統合
Gooseを使用して Square MCP サーバーを構成するには:
install
コマンドは Goose の設定を自動的に更新します。
クロードデスクトップ統合
Claude Desktopとの統合については、 Model Context Protocolクイックスタートガイドclaude_desktop_config.json
ご覧ください。claude_desktop_config.jsonに以下の設定を追加してください。
ツールリファレンス
Square MCP サーバーは、Square API と対話するための合理化されたツール セットを提供します。
道具 | 説明 | 主な用途 |
---|---|---|
get_service_info | サービスで利用可能なメソッドを見つける | 探検と発見 |
get_type_info | 詳細なパラメータ要件を取得する | リクエストの準備 |
make_api_request | SquareへのAPI呼び出しを実行する | 操作の実行 |
サービスカタログ
Square MCPサーバーは、Squareの完全なAPIエコシステムへのアクセスを提供します。各サービスの詳細については、 Square APIドキュメントをご覧ください。
サービス | 説明 |
---|---|
applepay | Apple Payの統合 |
bankaccounts | 銀行口座管理 |
bookingcustomattributes | 予約のカスタム属性 |
bookings | 予約管理 |
cards | 決済カード管理 |
cashdrawers | キャッシュドロワー管理 |
catalog | カタログ管理(商品、カテゴリなど) |
checkout | チェックアウトと支払い処理 |
customercustomattributes | 顧客向けカスタム属性 |
customergroups | 顧客グループ分け |
customersegments | 顧客セグメンテーション |
customers | 顧客管理 |
devices | Squareデバイス管理 |
disputes | 支払い紛争処理 |
events | イベントトラッキング |
giftcardactivities | ギフトカードアクティビティの追跡 |
giftcards | ギフトカード管理 |
inventory | 在庫追跡 |
invoices | 請求書管理 |
labor | 人材管理 |
locationcustomattributes | 場所のカスタム属性 |
locations | ロケーション管理 |
loyalty | ロイヤルティプログラム管理 |
merchantcustomattributes | 販売者向けカスタム属性 |
merchants | 加盟店アカウント管理 |
oauth | 認証 |
ordercustomattributes | 注文のカスタム属性 |
orders | 注文管理 |
payments | 支払い処理 |
payouts | 支払い管理 |
refunds | 払い戻し管理 |
sites | ウェブサイトの統合 |
snippets | Squareオンラインコードの統合 |
subscriptions | サブスクリプション管理 |
team | スタッフ管理 |
terminal | スクエアターミナル管理 |
vendors | サプライヤー管理 |
webhooksubscriptions | イベント通知 |
使用パターン
MCP を介して Square API と最適にやり取りするには:
- 発見:
get_service_info
を使用して利用可能なメソッドを探索するCopy - 理解:
get_type_info
を使用してパラメータの要件を確認するCopy - 実行:
make_api_request
を使用して操作を実行しますCopy
開発とデバッグ
MCPインスペクターの使用
MCP Inspector は、テスト用の視覚的なインターフェースを提供します。
開発ワークフロー
- リポジトリをクローンする
- 依存関係をインストール:
npm install
- 開発モードを開始:
npm run watch
- サーバーを実行します:
node dist/index.js start
- MCP Inspector を使用して変更をテストします
貢献
このリポジトリは、SquareのOpenAPI仕様に基づいて自動生成されています。貢献は歓迎しますが、変更内容はこのコードを生成するジェネレーターに反映される必要があることにご注意ください。プルリクエストを送信する前に、Issueを開いて変更案について議論してください。
You must be authenticated.
AI アシスタントがモデル コンテキスト プロトコル標準を通じて Square の Connect API と対話できるようになり、顧客の管理、支払いの処理、在庫の管理などの操作が可能になります。
- Quick Start
- Configuration Options
- Integration with AI Assistants
- Tool Reference
- Service Catalog
- Usage Pattern
- Development and Debugging
- Contributing
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.Last updated -1TypeScript
- -securityAlicense-qualityA Model Context Protocol server that connects AI assistants like Claude to Moneybird accounting software, enabling management of contacts, financial data, products, and business operations through natural language.Last updated -1JavaScriptMIT License
Kong Konnect MCP Serverofficial
AsecurityAlicenseAqualityA Model Context Protocol server enabling AI assistants to interact with Kong Konnect's API Gateway, providing tools to query analytics data, inspect configurations, and manage control planes through natural language.Last updated -1022TypeScriptApache 2.0- AsecurityAlicenseAqualityA server implementing Model Context Protocol that enables AI assistants to interact with Slack API through a standardized interface, providing tools for messaging, channel management, user information retrieval, and more.Last updated -918JavaScriptApache 2.0