Skip to content
← All MCP servers

Is the Square MCP server safe? What it can reach

What the Square MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Square runs an official hosted MCP server in beta at mcp.squareup.com, with OAuth sign-in, plus a local open-source server that uses an access token. Both expose Square’s whole API through three tools, so one tool can create orders, refund payments and change customers. Only the local server has a read-only switch, DISALLOW_WRITES.

Who maintains it

ImplementationKindStatus
Square remote MCP server (hosted by Block, beta)Officialactive
square/square-mcp-server (local, self-hosted, beta)Officialactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://mcp.squareup.com/mcp.

How it signs in

The hosted server signs you in to Square with OAuth and acts as your seller account. The local server uses a Square access token in ACCESS_TOKEN, so it acts with that token’s permissions.

What its tools can do

KindTools
Readget_service_info, get_type_info
Writenone documented
Can’t be undonemake_api_request

make_api_request calls any Square API method, so it covers reads, writes and deletes alike. The docs name customers, orders and items among the services.

Built-in limits

OptionWhat it does
DISALLOW_WRITESLocal server only. Set to true to restrict it to read-only operations.
SANDBOXLocal server only. Set to true to use the seller’s Sandbox instead of production. The hosted server only reaches production.
OAuth scopesSquare says you authorize only the scopes your application needs, but the pages read list no scope names.

The risks

  • Everything runs through make_api_request, so an injected instruction can issue refunds, change catalog items or edit customer records on a live seller account.
  • The hosted server only reaches production and the pages read document no way to make it read-only, so the safe mode is the local server with DISALLOW_WRITES.
  • The local server’s ACCESS_TOKEN is a Square API credential, and a token with write permission can move money through the API.
  • Customer and order data returned by the tools passes into your AI provider’s context.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env ACCESS_TOKEN=... --env SANDBOX=... --env DISALLOW_WRITES=... square -- npx square-mcp-server start

Claude Code names MCP tools mcp__square__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__square__make_api_request"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.square]
command = "npx"
args = ["square-mcp-server", "start"]
env_vars = ["ACCESS_TOKEN", "SANDBOX", "DISALLOW_WRITES"]

Checklist

  • Test every prompt against a Sandbox account first.
  • Use the local server with DISALLOW_WRITES=true for anything read-only.
  • Create the access token with the fewest permissions the task needs.
  • Ask before every make_api_request call that is not a read.
  • Rotate the access token when you finish.

Checked against the vendor documentation on November 25, 2026. Square developer docs: MCP server · square/square-mcp-server README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing