Square Model Context Protocol Server
Officialスクエアモデルコンテキストプロトコルサーバー(ベータ版)
このプロジェクトはモデルコンテキストプロトコル標準に準拠しており、AI アシスタントが Square の connect API と対話できるようにします。
クイックスタート
npx を使用して Square MCP サーバーを起動して実行します。
# Basic startup
npx square-mcp-server start
# With environment configuration
ACCESS_TOKEN=YOUR_SQUARE_ACCESS_TOKEN SANDBOX=true npx square-mcp-server start
# local runs
npx /path/to/project/square-mcp-serverYOUR_SQUARE_ACCESS_TOKENを実際のSquareアクセストークンに置き換えてください。アクセストークンは、 Squareアクセストークンのガイドに従って取得できます。コマンド実行前に環境変数を設定することもできます。
Related MCP server: AI-Assisted CRM MCP Server
リモートMCPサーバー
Square は現在、次の場所でホスト型リモート MCP サーバーを提供しています。
https://mcp.squareup.com/sseリモート MCP は OAuth 認証を使用するため、アクセス トークンを手動で作成または管理することなく、Square アカウントで直接ログインできるため、推奨されます。
設定オプション
環境変数 | 目的 | 例 |
| Square APIアクセストークン |
|
| Squareサンドボックス環境を使用する |
|
| Square の制作環境を使用する |
|
| 読み取り専用操作に制限する |
|
| Square APIのバージョンを指定する |
|
AIアシスタントとの統合
Goose統合
Gooseを使用して Square MCP サーバーを構成するには:
リモートMCP
Goose に Square リモート MCP をインストールするには、Goose がインストールされているコンピューターで次の URL をクリックします。
goose://extension?cmd=npx&arg=mcp-remote&arg=https%3A%2F%2Fmcp.squareup.com%2Fsse&id=square_mcp_production_remote&name=Square%20MCP%20Remote&description=Square%20Production%20MCP%20Remote
または、URL をコピーしてブラウザのアドレスバーに貼り付けます。
# Automatic installation
npx square-mcp-server install
# Get URL for manual installation
npx square-mcp-server get-goose-urlinstallコマンドは、Goose の設定を自動的に更新します。
クロードデスクトップ統合
Claude Desktopとの統合については、 Model Context Protocolクイックスタートガイドclaude_desktop_config.jsonご覧ください。claude_desktop_config.jsonに以下の設定を追加してください。
リモートMCP
{
"mcpServers": {
"mcp_square_api": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.squareup.com/sse"]
}
}
}この方法により、アクセス トークンを管理する必要なく、Square アカウントの資格情報を使用して直接認証できます。
ローカルMCP
{
"mcpServers": {
"mcp_square_api": {
"command": "npx",
"args": ["square-mcp-server", "start"],
"env": {
"ACCESS_TOKEN": "YOUR_SQUARE_ACCESS_TOKEN",
"SANDBOX": "true"
}
}
}
}ツールリファレンス
Square MCP サーバーは、Square API と対話するための合理化されたツール セットを提供します。
道具 | 説明 | 主な用途 |
| サービスで利用可能なメソッドを見つける | 探検と発見 |
| 詳細なパラメータ要件を取得する | リクエストの準備 |
| SquareへのAPI呼び出しを実行する | 操作の実行 |
サービスカタログ
Square MCPサーバーは、Squareの完全なAPIエコシステムへのアクセスを提供します。各サービスの詳細については、 Square APIドキュメントをご覧ください。
サービス | 説明 |
| Apple Payの統合 |
| 銀行口座管理 |
| 予約のカスタム属性 |
| 予約管理 |
| 決済カード管理 |
| キャッシュドロワー管理 |
| カタログ管理(商品、カテゴリなど) |
| チェックアウトと支払い処理 |
| 顧客向けカスタム属性 |
| 顧客グループ分け |
| 顧客セグメンテーション |
| 顧客管理 |
| Squareデバイス管理 |
| 支払い紛争処理 |
| イベントトラッキング |
| ギフトカードアクティビティの追跡 |
| ギフトカード管理 |
| 在庫追跡 |
| 請求書管理 |
| 人材管理 |
| 場所のカスタム属性 |
| ロケーション管理 |
| ロイヤルティプログラム管理 |
| 販売者向けカスタム属性 |
| 加盟店アカウント管理 |
| 認証 |
| 注文のカスタム属性 |
| 注文管理 |
| 支払い処理 |
| 支払い管理 |
| 払い戻し管理 |
| ウェブサイトの統合 |
| Squareオンラインコードの統合 |
| サブスクリプション管理 |
| スタッフ管理 |
| スクエアターミナル管理 |
| サプライヤー管理 |
| イベント通知 |
使用パターン
MCP を介して Square API と最適にやりとりするには:
発見:
get_service_infoを使用して利用可能なメソッドを調べるget_service_info(service: "catalog")理解:
get_type_infoを使用してパラメータの要件を確認するget_type_info(service: "catalog", method: "list")実行:
make_api_requestを使用して操作を実行しますmake_api_request(service: "catalog", method: "list", request: {})
開発とデバッグ
MCPインスペクターの使用
MCP Inspector は、テスト用の視覚的なインターフェースを提供します。
# Build the project
npm run build
# Start the inspector with the Square MCP Server
npx @modelcontextprotocol/inspector node dist/index.js start開発ワークフロー
リポジトリをクローンする
依存関係をインストール:
npm install開発モードを開始:
npm run watchサーバーを実行します:
node dist/index.js startMCP Inspector を使用して変更をテストします
貢献
このリポジトリは、SquareのOpenAPI仕様に基づいて自動生成されています。貢献は歓迎しますが、変更内容はこのコードを生成するジェネレーターに反映される必要があることにご注意ください。プルリクエストを送信する前に、Issueを開いて変更案について議論してください。
Available Tools
3 toolsget_service_infoA
Get information about a Square API service. Call me before trying to get type info
Inputs: service (required).
get_type_infoA
Get type information for a Square API method. You must call this before calling the make_api_request tool.
Inputs: service (required), method (required).
make_api_requestB
Unified tool for all Square API operations. Be sure to get types before calling. Available services: applepay, bankaccounts, bookingcustomattributes, bookings, cards, cashdrawers, catalog, checkout, customercustomattributes, customergroups, customersegments, customers, devices, disputes, events, giftcardactivities, giftcards, inventory, invoices, labor, locationcustomattributes, locations, loyalty, merchantcustomattributes, merchants, oauth, ordercustomattributes, orders, payments, payouts, refunds, sites, snippets, subscriptions, team, terminal, vendors, webhooksubscriptions.
Inputs: service (required), method (required), request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct and clearly defined role in the workflow (service info, type info, API request), with no overlap in purpose.
All tool names follow a consistent verb_noun pattern (get_service_info, get_type_info, make_api_request), using snake_case throughout.
Three tools is minimal but appropriate for a unified API wrapper, as the tools cover the essential introspection and request workflow.
The tool set covers the full lifecycle: discover services, get type information, and make API requests. No obvious gaps for the intended purpose.
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Spacebring MCP server. Look up members, bookings, invoices, subscriptions, events and more, and take everyday actions such as creating events or replying to support tickets, from MCP-compatible AI assistants that support remote servers with OAuth.
Connect assistants to your workspace knowledge, skills, and work tools.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely interact with Fireblocks services through the Model Context Protocol, supporting transaction management, vault and exchange account queries, network connections, and workspace user management.80 npm10MIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform CRM operations like creating contacts, managing deals, and updating leads through natural language using the Model Context Protocol.4-
- AlicenseAqualityDmaintenanceEnables AI agents to manage crypto payments, stores, products, and orders through the Model Context Protocol.2066 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage CRM prospects, activities, reminders, and mailbox via natural language commands through the Model Context Protocol.3MIT