Square

Square MCP Server

A Model Context Protocol (MCP) server that provides access to Square API functionality.

Setup

  1. Install dependencies:
uv sync
  1. Set environment variables:
# Required
export SQUARE_ACCESS_TOKEN=your_access_token_here

# Optional - defaults to 'sandbox' if not set
export SQUARE_ENVIRONMENT=sandbox  # or 'production' for production environment
  1. Run the server:
uv pip install .
square-mcp

Or for development:

source .venv/bin/activate
mcp dev src/square_mcp/server.py

Environment Variables

VariableRequiredDefaultDescription
SQUARE_ACCESS_TOKENYes-Your Square API access token
SQUARE_ENVIRONMENTNosandboxSquare API environment (sandbox or production)