Skip to main content
Glama
Square Model Context Protocol Server

Square Model Context Protocol Server

Official
by square

Square Model Context Protocol Server (Beta)

This project follows the Model Context Protocol standard, allowing AI assistants to interact with Square's connect API.

Most people should use the hosted server. Square runs a remote MCP server at https://mcp.squareup.com/mcp with OAuth sign-in; see the Square MCP documentation for setup with your AI assistant. This repository is the local, self-hosted server: a starting point if you want to run your own copy. Code changes go through the generator described under Contributing.

Quick Start

Get up and running with the local server using npx. This runs the server on your own machine with your own access token; for the hosted server, see the note above.

# 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

Replace YOUR_SQUARE_ACCESS_TOKEN with your actual Square access token. You can obtain your access token by following the guide at Square Access Tokens. You can also set environment variables before running the command.

Related MCP server: AI-Assisted CRM MCP Server

Remote MCP Server

Square offers a hosted remote MCP server at:

https://mcp.squareup.com/mcp

The remote server is recommended: it uses OAuth, so you sign in with your Square account instead of creating and managing access tokens. Setup guides for Claude, ChatGPT, Goose and other assistants are in the Square MCP documentation. The older https://mcp.squareup.com/sse endpoint is still served for existing SSE configurations.

Configuration Options

Environment Variable

Purpose

Example

ACCESS_TOKEN

Your Square API access token

ACCESS_TOKEN=sq0atp-...

SANDBOX

Use Square sandbox environment

SANDBOX=true

PRODUCTION

Use Square production environment

PRODUCTION=true

DISALLOW_WRITES

Restrict to read-only operations

DISALLOW_WRITES=true

SQUARE_VERSION

Specify Square API version

SQUARE_VERSION=2025-04-16

Integration with AI Assistants

Goose Integration

To configure the Square MCP Server with Goose:

Remote MCP

To install the Square remote MCP in Goose, click this URL on a computer where Goose is installed:

goose://extension?cmd=npx&arg=mcp-remote&arg=https%3A%2F%2Fmcp.squareup.com%2Fmcp&id=square_mcp_production_remote&name=Square%20MCP%20Remote&description=Square%20Production%20MCP%20Remote

Or copy and paste the URL into your browser's address bar.

The commands below configure the local server (npx square-mcp-server start), not the hosted one:

# Automatic installation
npx square-mcp-server install

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

The install command automatically updates your Goose configuration.

Claude Desktop Integration

For Claude Desktop integration, see the Model Context Protocol Quickstart Guide. Add this configuration to your claude_desktop_config.json:

Remote MCP

{
  "mcpServers": {
    "mcp_square_api": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.squareup.com/mcp"]
    }
  }
}

This approach allows you to authenticate directly with your Square account credentials without needing to manage access tokens.

Local MCP

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

Tool Reference

The Square MCP Server provides a streamlined set of tools for interacting with Square APIs:

Tool

Description

Primary Use

get_service_info

Discover methods available for a service

Exploration and discovery

get_type_info

Get detailed parameter requirements

Request preparation

make_api_request

Execute API calls to Square

Performing operations

Service Catalog

Square MCP Server provides access to Square's complete API ecosystem. Check out the Square API Documentation for detailed information about each service:

Service

Description

applepay

Apple Pay integration

bankaccounts

Bank account management

bookingcustomattributes

Custom attributes for bookings

bookings

Appointment booking management

cards

Payment card management

cashdrawers

Cash drawer management

catalog

Catalog management (items, categories, etc.)

checkout

Checkout and payment processing

customercustomattributes

Custom attributes for customers

customergroups

Customer grouping

customersegments

Customer segmentation

customers

Customer management

devices

Square device management

disputes

Payment dispute handling

events

Event tracking

giftcardactivities

Gift card activity tracking

giftcards

Gift card management

inventory

Inventory tracking

invoices

Invoice management

labor

Workforce management

locationcustomattributes

Custom attributes for locations

locations

Location management

loyalty

Loyalty program management

merchantcustomattributes

Custom attributes for merchants

merchants

Merchant account management

oauth

Authentication

ordercustomattributes

Custom attributes for orders

orders

Order management

payments

Payment processing

payouts

Payout management

refunds

Refund management

sites

Website integration

snippets

Square Online Code integration

subscriptions

Subscription management

team

Staff management

terminal

Square Terminal management

vendors

Supplier management

webhooksubscriptions

Event notifications

Usage Pattern

For optimal interaction with the Square API through MCP:

  1. Discover: Use get_service_info to explore available methods

    get_service_info(service: "catalog")
  2. Understand: Use get_type_info to learn parameter requirements

    get_type_info(service: "catalog", method: "list")
  3. Execute: Use make_api_request to perform the operation

    make_api_request(service: "catalog", method: "list", request: {})

Development and Debugging

Using MCP Inspector

The MCP Inspector provides a visual interface for testing:

# Build the project
npm run build

# Start the inspector with the Square MCP Server
npx @modelcontextprotocol/inspector node dist/index.js start

Development Workflow

  1. Clone the repository

  2. Install dependencies: npm install

  3. Start development mode: npm run watch

  4. Run the server: node dist/index.js start

  5. Test your changes using the MCP Inspector

Contributing

This repository is auto-generated from Square's OpenAPI Specification. While contributions are welcome, please note that changes will need to be incorporated into the generator that produces this code. Please open an issue to discuss proposed changes before submitting a pull request.

Available Tools

3 tools
get_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

    A3.8/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct and clearly defined role in the workflow (service info, type info, API request), with no overlap in purpose.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_service_info, get_type_info, make_api_request), using snake_case throughout.

    Tool Count4/5

    Three tools is minimal but appropriate for a unified API wrapper, as the tools cover the essential introspection and request workflow.

    Completeness5/5

    The tool set covers the full lifecycle: discover services, get type information, and make API requests. No obvious gaps for the intended purpose.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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 npm
      10
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform CRM operations like creating contacts, managing deals, and updating leads through natural language using the Model Context Protocol.
      4
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage CRM prospects, activities, reminders, and mailbox via natural language commands through the Model Context Protocol.
      3
      MIT