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.

Square 모델 컨텍스트 프로토콜 서버(베타)

이 프로젝트는 모델 컨텍스트 프로토콜 표준을 따르므로 AI 어시스턴트가 Square의 Connect API와 상호 작용할 수 있습니다.

빠른 시작

npx를 사용하여 Square MCP 서버를 시작하고 실행하세요.

지엑스피1

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 로 Square MCP 서버를 구성하려면:

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

install 명령은 자동으로 Goose 구성을 업데이트합니다.

Claude 데스크톱 통합

Claude Desktop 통합에 대한 자세한 내용은 모델 컨텍스트 프로토콜 빠른 시작 가이드를 참조하세요. 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고객 관리
devices스퀘어 기기 관리
disputes결제 분쟁 처리
events이벤트 추적
giftcardactivities기프트 카드 활동 추적
giftcards기프트 카드 관리
inventory재고 추적
invoices송장 관리
labor인력 관리
locationcustomattributes위치에 대한 사용자 정의 속성
locations위치 관리
loyalty로열티 프로그램 관리
merchantcustomattributes판매자를 위한 사용자 정의 속성
merchants가맹점 계정 관리
oauth입증
ordercustomattributes주문에 대한 사용자 정의 속성
orders주문 관리
payments결제 처리
payouts지급 관리
refunds환불 관리
sites웹사이트 통합
snippetsSquare Online 코드 통합
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 Inspector 사용

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 검사기를 사용하여 변경 사항을 테스트하세요

기여하다

이 저장소는 Square의 OpenAPI 사양을 기반으로 자동 생성됩니다. 기여는 환영하지만, 변경 사항은 이 코드를 생성하는 생성기에 반영되어야 합니다. 풀 리퀘스트를 제출하기 전에 이슈를 열어 제안된 변경 사항에 대해 논의해 주세요.

You must be authenticated.

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

AI 어시스턴트가 Model Context Protocol 표준을 통해 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