Square Model Context Protocol Server

by square
Apache 2.0
157
44

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 サーバーを起動して実行します。

# 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-server

YOUR_SQUARE_ACCESS_TOKENを実際のSquareアクセストークンに置き換えてください。アクセストークンは、 Squareアクセストークンのガイドに従って取得できます。コマンド実行前に環境変数を設定することもできます。

設定オプション

環境変数目的
ACCESS_TOKENSquare APIアクセストークンACCESS_TOKEN=sq0atp-...
SANDBOXSquareサンドボックス環境を使用するSANDBOX=true
PRODUCTIONSquare の制作環境を使用するPRODUCTION=true
DISALLOW_WRITES読み取り専用操作に制限するDISALLOW_WRITES=true
SQUARE_VERSIONSquare APIのバージョンを指定するSQUARE_VERSION=2025-04-16

AIアシスタントとの統合

Goose統合

Gooseを使用して Square MCP サーバーを構成するには:

# Automatic installation npx square-mcp-server install # Get URL for manual installation npx square-mcp-server get-goose-url

installコマンドは Goose の設定を自動的に更新します。

クロードデスクトップ統合

Claude Desktopとの統合については、 Model Context Protocolクイックスタートガイドclaude_desktop_config.jsonご覧ください。claude_desktop_config.jsonに以下の設定を追加してください。

{ "mcpServers": { "mcp_square_api": { "command": "npx", "args": [ "square-mcp-server", "start" ], "env": { "ACCESS_TOKEN": "YOUR_SQUARE_ACCESS_TOKEN", "SANDBOX": "true" } } } }

ツールリファレンス

Square MCP サーバーは、Square API と対話するための合理化されたツール セットを提供します。

道具説明主な用途
get_service_infoサービスで利用可能なメソッドを見つける探検と発見
get_type_info詳細なパラメータ要件を取得するリクエストの準備
make_api_requestSquareへのAPI呼び出しを実行する操作の実行

サービスカタログ

Square MCPサーバーは、Squareの完全なAPIエコシステムへのアクセスを提供します。各サービスの詳細については、 Square APIドキュメントをご覧ください。

サービス説明
applepayApple Payの統合
bankaccounts銀行口座管理
bookingcustomattributes予約のカスタム属性
bookings予約管理
cards決済カード管理
cashdrawersキャッシュドロワー管理
catalogカタログ管理(商品、カテゴリなど)
checkoutチェックアウトと支払い処理
customercustomattributes顧客向けカスタム属性
customergroups顧客グループ分け
customersegments顧客セグメンテーション
customers顧客管理
devicesSquareデバイス管理
disputes支払い紛争処理
eventsイベントトラッキング
giftcardactivitiesギフトカードアクティビティの追跡
giftcardsギフトカード管理
inventory在庫追跡
invoices請求書管理
labor人材管理
locationcustomattributes場所のカスタム属性
locationsロケーション管理
loyaltyロイヤルティプログラム管理
merchantcustomattributes販売者向けカスタム属性
merchants加盟店アカウント管理
oauth認証
ordercustomattributes注文のカスタム属性
orders注文管理
payments支払い処理
payouts支払い管理
refunds払い戻し管理
sitesウェブサイトの統合
snippetsSquareオンラインコードの統合
subscriptionsサブスクリプション管理
teamスタッフ管理
terminalスクエアターミナル管理
vendorsサプライヤー管理
webhooksubscriptionsイベント通知

使用パターン

MCP を介して Square API と最適にやり取りするには:

  1. 発見: get_service_infoを使用して利用可能なメソッドを探索する
    get_service_info(service: "catalog")
  2. 理解: get_type_infoを使用してパラメータの要件を確認する
    get_type_info(service: "catalog", method: "list")
  3. 実行: 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

開発ワークフロー

  1. リポジトリをクローンする
  2. 依存関係をインストール: npm install
  3. 開発モードを開始: npm run watch
  4. サーバーを実行します: node dist/index.js start
  5. MCP Inspector を使用して変更をテストします

貢献

このリポジトリは、SquareのOpenAPI仕様に基づいて自動生成されています。貢献は歓迎しますが、変更内容はこのコードを生成するジェネレーターに反映される必要があることにご注意ください。プルリクエストを送信する前に、Issueを開いて変更案について議論してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

AI アシスタントがモデル コンテキスト プロトコル標準を通じて Square の Connect API と対話できるようになり、顧客の管理、支払いの処理、在庫の管理などの操作が可能になります。

  1. Quick Start
    1. Configuration Options
      1. Integration with AI Assistants
        1. Goose Integration
        2. Claude Desktop Integration
      2. Tool Reference
        1. Service Catalog
          1. Usage Pattern
            1. Development and Debugging
              1. Using MCP Inspector
              2. Development Workflow
            2. Contributing

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                A 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 -
                1
                TypeScript
              • -
                security
                A
                license
                -
                quality
                A 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 -
                1
                JavaScript
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                A 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 -
                10
                22
                TypeScript
                Apache 2.0
                • Apple
              • A
                security
                A
                license
                A
                quality
                A 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 -
                9
                18
                JavaScript
                Apache 2.0

              View all related MCP servers

              ID: sbtj6cl8kw