Can Square MCP server access be locked down to least privilege?
The official remote Square MCP server supports OAuth login with granular permissions, so the scopes you grant set the practical limit on what an AI assistant can reach. Square's docs say the server connects AI tools to the full Square API platform, including customers, orders and items, so a broad grant means broad access. The DISALLOW_WRITES read-only setting is documented only for the local server, not the remote one, and the Square MCP server itself is marked Beta. A reviewer should not assume a read-only control exists on the remote path without confirming it with Square.
Least privilege starts with a scope review. List the Square API areas each intended use case needs, then map them to the scopes in Square's OAuth Permissions Reference, which lists the scopes required for each endpoint. Grant only those scopes and record why each one is present. Then decide between the remote server and a local instance. Remote instances access only production resources, so a local instance is the only documented way to point the server at a Sandbox environment during testing, and the local path also carries the DISALLOW_WRITES switch and the SANDBOX and PRODUCTION settings described in the README.
Test before production. Square recommends testing prompts against a Sandbox account before using the server in production. Run the intended prompts, including attempts to read records outside the approved scope and to create or change orders and items, and confirm the results match the scope decision. Because the server is Beta, retest after each Square release and check the GitHub issues for known behavior changes. Ask Square to confirm, in writing, whether any write restriction applies to the remote endpoint and which production scopes it can reach.
Square MCP security controls by deployment and access path
This table compares the remote Square MCP server with the local server across scopes, read-only enforcement, Sandbox access, the three documented tools and admin controls. Each row marks whether a control is built in, set by your organization, documented for one path only, or not documented in the supplied sources. The Beta label applies to the whole server, so treat every row as provisional until Square confirms it.
| Control | Remote server (hosted) | Local server (self-run) |
|---|---|---|
| OAuth login with granular scopes | Built in: you authorize only the scopes your application needs | Not documented for this path; local setup uses access tokens instead |
| Scope limit on Square API reach | Configured by the organization through the scopes you grant | Configured by the organization through the credentials and permissions used |
| Read-only enforcement | Not documented for this path | Documented: the DISALLOW_WRITES variable restricts the server to read-only operations |
| Sandbox access | Not available: remote instances access only production resources | Documented: can be pointed at a seller's Sandbox environment for testing |
| Discovery, parameter and call tools | Documented: get_service_info, get_type_info and make_api_request are the three tools listed | Documented: the same three tools listed in the README |
| Admin allowlist of AI clients | Not documented in the supplied sources; confirm with Square | Not documented in the supplied sources; confirm with Square |
| Beta status | Applies: Square marks the whole server as Beta | Applies: the Beta label covers the server, local build included |
What the three Square MCP tools can reach in the Square API
The Square MCP server exposes three documented tools: get_service_info for discovery, get_type_info for parameter details, and make_api_request, which executes API calls against Square. The first two only describe the platform. The third is the one that matters for security review, because it is the path through which an AI assistant can actually call endpoints. Square's docs describe the server as bridging assistants to the full Square API platform, including customers, orders and items. That breadth means the set of OAuth scopes you grant is the practical boundary of what the assistant can do, not the tool list and not the prompt.
Treat the scope set as the control you approve. Before connecting, list the scopes the remote OAuth login would request and map each one to the Square endpoints it unlocks using the OAuth Permissions Reference. Then ask whether any scope that allows writes is needed for the use case at all. A read-only intent is only enforced when the scope set or the server setting enforces it. A system prompt that says "only look up orders" is guidance to the model, not a permission check, and a manipulated or confused model can still send a write request through make_api_request if the granted scopes allow it.
For the local server, the README documents a DISALLOW_WRITES environment variable that restricts operations to read-only, along with SANDBOX and PRODUCTION switches. Confirm in your own test environment that a write call is actually rejected when this variable is set, rather than assuming it from the README. Note that Square's docs say remote instances access only production resources, so a read-only remote connection to live data still needs narrow scopes. Record the scopes granted, the environment used, and the result of a deliberately blocked write before any staff member relies on the setup.
Decisions that set the Square MCP permission boundary
Before any AI assistant reaches Square, six decisions fix how far it can go and how well you can trace it. Deployment mode, read-only versus write access, the Square resources each scope covers, account ownership, token handling and Sandbox testing all shape the blast radius and the audit trail. Settle them in this order, because later controls only narrow what the earlier choices allow.
Remote OAuth or local deployment
The remote server at the hosted endpoint uses OAuth login with granular permissions, so the seller authorizes scopes in a browser and no long-lived token is handled by hand. A local instance runs from the open-source repository on a machine you control, where you hold the credentials and the environment switches. Remote is simpler to govern. Local gives you the DISALLOW_WRITES setting and the ability to point at Sandbox, but it moves credential custody and patching to your team. Confirm which path your rollout uses before anything else.
Square MCP docsRead-only or write scopes
Scope choice decides whether an assistant can only look at data or can also change it. Ask for read scopes only in the first phase, and add write scopes when a named workflow needs them. The local server offers a DISALLOW_WRITES setting that restricts it to read-only operations, which is a hard stop on that instance. Write access should be a separate, reviewed grant, not a default that comes with the connection.
Square resources each scope covers
Square's documentation says the server reaches the full API platform, including customers, orders and items. Each OAuth permission maps to specific endpoints, and Square's OAuth Permissions Reference lists the scopes needed per endpoint. Build a table that maps each business task to the resources it touches, such as customer records, order history or catalog items, then grant only the scopes that table requires. Customer and payment-adjacent data deserve the strictest review.
OAuth Permissions ReferenceSeller account ownership
The seller who authorizes the connection determines which account and locations the assistant acts on, and their role determines what they can grant. A personal login on a shared seller account makes actions hard to attribute to a team or a purpose. Decide which accounts may be connected, who owns the authorization, and how access ends when that person leaves. Confirm with Square how its audit records identify an action taken through an authorized application.
Token handling on the client
Remote OAuth avoids manual token management, but the client still stores the resulting access and refresh credentials in its own configuration. Local setups hold access tokens in environment settings on the machine. Decide where those credentials live, who can read the client configuration, and how you revoke access when a device is lost. Keep tokens out of shared repositories and chat logs, and confirm the revocation path with Square before you need it.
Square MCP server repositorySandbox first, production later
Square's docs say remote instances access only production resources, while a local instance can point at a seller's Sandbox environment. Square recommends testing your prompts against a Sandbox account before production use. Run the planned prompts against Sandbox data, including the edge cases where a model might attempt a write you did not intend. Treat the Beta status of the server as a reason to repeat these tests after each update and to report defects through the project's GitHub issues.
How the lockdown changes by deployment path
The remote server at ` signs the user in through OAuth and grants only the scopes the connecting application requests. Square's docs say remote instances access only production resources, so this path touches live seller data from the first call. The scopes you approve are the main control on what the AI client can reach.
- What it limits: Access is bounded by the granted OAuth scopes, so a client that was approved for read scopes should not be able to call endpoints that need write scopes.
- What it does not limit: Square's docs describe the server as covering the full Square API platform, including customers, orders and items, so a broad grant still exposes broad data.
- Environment: Remote instances reach production only. There is no Sandbox switch on this path.
- Read-only status: The DISALLOW_WRITES setting is documented for the local server, so do not assume it applies to the remote endpoint.
- Confirm with Square: Ask which scopes the server requests by default, how a seller revokes access, and whether the endpoint in the docs matches the
/ssepath still listed in the GitHub README.
Before approval, check the exact scope list in the OAuth consent screen against the Square OAuth Permissions Reference.
Running the server locally from the source in square/square-mcp-server lets the organization control the process, its environment and its credentials. The README documents a DISALLOW_WRITES environment variable that restricts the local server to read-only operations. This is a configuration control on the host, so its strength depends on how it is deployed and enforced.
- What it limits: With
DISALLOW_WRITESset, the server is documented to refuse write operations, which narrows the make_api_request tool to reads. - What it does not limit: Read access to customers, orders and items remains. The variable does not reduce the scopes held by the access token, so a token with write scopes still carries them.
- Who controls it: The setting lives in the local environment, so a user who can edit the launch configuration can remove it unless the organization manages that configuration centrally.
- Testing it: Verify the setting by attempting a write call in a non-production test and recording the refusal.
- Confirm with Square: Ask whether the read-only guard is enforced server-side for every write endpoint, and whether it is covered by the Beta label.
Before approval, confirm that the token used locally is scoped to reads and that the launch configuration is controlled by IT.
The local server can be pointed at a seller's Sandbox environment through the SANDBOX and PRODUCTION switches documented in the README. Square's docs recommend testing prompts against a Sandbox account before production use. This path lets a team observe what the assistant does without touching live seller records, but it proves only the behavior seen in Sandbox.
- What it limits: Sandbox calls do not change production customers, orders or items, so trial prompts carry less business risk.
- What it does not limit: Sandbox does not prove that a production token with the same scopes would behave identically, and it does not stop a user from switching the environment to PRODUCTION.
- Switching risk: The environment variable is a simple switch, so pair it with a check that confirms the target before any write-capable test.
- Data fidelity: Sandbox data is test data, so the reviewer cannot judge how real records would be exposed or returned to the client.
- Confirm with Square: Ask how Sandbox accounts are created, whether Sandbox tokens use the same scope model, and what differs between Sandbox and production behavior.
Before approval, run the agreed test prompts in Sandbox, record which tools and endpoints were called, and repeat the critical checks on the production path with read-only scopes.
Testing prompts and scopes in Sandbox before production
This sequence tests the Square MCP server against a Sandbox account so the organization can see what reads and writes an AI assistant actually performs, and records that evidence before any production access is approved.
Build a Sandbox test plan from the scope list
The security lead or platform owner writes a test plan that starts from the OAuth scopes the application would request, using the OAuth Permissions Reference to map each scope to the Square API endpoints it unlocks. Square's documentation recommends testing prompts against a Sandbox account before production use, so the plan should name the Sandbox seller account, the scopes under test and the prompts staff are expected to send. The step is done when every requested scope has a matching test case and an owner has signed the plan.
Run read cases for customers, orders and items
A tester connects the assistant to the remote server with the planned scopes and runs prompts that read customers, orders and items in the Sandbox account. Square's docs say the server reaches the full API platform, so the tester should also try prompts that ask for data outside the intended business need and note whether the scopes allow it. The output is a log of each prompt, the tool call made, the data returned and whether the result matched the scope expectation.
Run write cases and confirm each change in Sandbox
The tester runs prompts that create or modify Sandbox records, such as an order or an item update, and then checks the change in the Sandbox dashboard. Each write case should be run once with the scope granted and once with that scope removed or narrowed, so the reviewer can see whether the permission actually blocked the action. The step closes when every write case has a recorded expected result and an observed result, with any mismatch flagged for the vendor or the scope owner.
Verify the local read-only and Sandbox switches
If the team also runs the local server, the engineer confirms that the DISALLOW_WRITES setting blocks write operations and that the SANDBOX switch sends requests only to the Sandbox environment. The engineer should run one write attempt with DISALLOW_WRITES enabled and one read against a known Sandbox record, then inspect the configuration file and the environment variables in the process that starts the server. The check is complete when the reviewer can show that writes were refused and that no production account was reachable from that configuration.
Confirm the remote server reaches production only
Square's docs state that remote instances access only production resources, so Sandbox results do not prove how the remote server behaves on live data. The security lead records this limit in the test file and states that any production approval depends on a separate, controlled check against production with the smallest scope that works. Before anyone uses the remote server with real seller data, the owner should confirm the current endpoint in Square's developer documentation, because the GitHub README and the developer docs list different endpoints. The step closes with a written note that identifies which results came from Sandbox and which claims still need production evidence.
Record results in the approval file
The tester compiles the prompts, tool calls, scopes, observed outcomes and open defects into one approval record, with the date, tester names, Square account identifiers for the Sandbox, and the version of the client in use. The security lead reviews the record and decides which scopes are approved, which are removed and which tests must be rerun after a configuration or client change. The step is done when the approval file lists each approved scope with its supporting test case and a named owner, and it becomes the reference for any later change to permissions.
Gaps that scopes and read-only do not close
Scopes and the read-only setting narrow what the Square MCP server can reach, but several gaps remain that no single Square setting closes. Each card names one gap, why it matters for Square MCP security, and the usual way reviewers cover it. Confirm each point with Square before you approve the connection.
No documented per-tool allowlist
The supplied sources describe three tools: get_service_info, get_type_info and make_api_request. The third tool can run any Square API call the granted scopes allow, and the sources do not document a setting that limits it to named endpoints. Ask Square whether the remote server offers per-tool or per-endpoint restrictions. If not, place a gateway or proxy in front of the server that permits only the calls your use case needs.
Square MCP docsBeta status and changing endpoints
Square marks the server as Beta and asks users to report bugs through GitHub issues. Its docs list the remote endpoint at mcp.squareup.com/mcp, while the GitHub README still shows an older /sse endpoint. A client pointed at the wrong address can fail open to a path you did not review. Record the exact endpoint in your approved configuration, and recheck it whenever Square updates its docs or the server.
GitHub repositoryNo Sandbox path for remote instances
Square's docs say remote instances access only production resources. A read-only scope set still exposes live seller data, and a test run against the remote server cannot be isolated from real customers and orders. Square's guidance is to test prompts against a Sandbox account, which applies to the local server. Plan any remote testing with production data in mind, and restrict who can run it.
Broad API reach from one grant
Square's docs say the server connects to the full Square API platform, including customers, orders and items. A single OAuth authorization can therefore cover several data domains. Use the OAuth Permissions Reference to map each scope to the endpoints it unlocks, and request only the scopes your application needs. Review the granted list at each renewal, since it sets the practical limit on what the agent can do.
OAuth Permissions ReferenceNo per-action human approval
The sources do not describe a confirmation step before a write executes, such as a prompt that asks a person to approve each change. Once a user authorizes the connection, the assistant can call make_api_request within the granted scopes. Require approval in the AI client where it is available, and keep write-capable scopes out of users' grants unless a named workflow needs them.
Limited audit detail in the sources
The supplied sources do not describe what the server logs, which request content is recorded, or how long records are kept. Without that detail, an incident review may be unable to tie a changed order or customer record to a specific assistant session. Ask Square which events are logged, where to view them, and the retention period. Until confirmed, log requests at your own gateway if the connection carries sensitive data.
Questions security reviewers ask before approving the Square MCP server
Can the remote Square MCP server be set to read-only?
The documented read-only switch, DISALLOW_WRITES, applies to the local server, not the remote one at For the remote server, the practical write limit is the OAuth scopes the seller authorizes, so a read-only review depends on granting only read scopes. Confirm with Square whether the remote server offers any additional write restriction before you approve it for staff. The local server gives you a documented read-only mode, but it runs on the employee's machine and needs its own review of where its credentials are stored.
How do we verify which scopes an AI client actually gets?
Start with the OAuth Permissions Reference, which lists the scopes needed to call each Square API endpoint with an OAuth access token. Map the endpoints the use case needs to those scopes, then compare that list with the consent screen the seller sees during login. Square's docs say you authorize only the scopes your application needs, so the approved scope list should be written down and checked during each review. Because the server connects to the full Square API platform, including customers, orders and items, treat any scope you do not map to a business need as a risk to remove.
Does Sandbox testing cover the remote Square MCP server?
No. Square's docs say remote instances access only production resources, so Sandbox does not test the remote server. The docs recommend testing your prompts against a Sandbox account before using the server in production, and a local instance can be pointed at a seller's Sandbox environment. That means a full test of the remote server must run against live data, so reviewers should limit scopes, use a controlled seller account, and agree on read-only test prompts before any write-capable test. Confirm this behavior with Square if your review requires it in writing.
Who should set the OAuth scopes for the Square MCP server?
The seller or account administrator who completes the OAuth login decides which scopes are granted, so the security team should define the approved scope list and the administrator should enforce it during login. Square's docs describe granular permissions at login and say no manual token management is needed. Record who performed each authorization, when, and with which scopes, and repeat the check when someone changes the scope set. Ask Square how an organization can review or revoke existing grants.
Does the Beta label stop us from approving the Square MCP server?
The Beta label does not block approval by itself, but it changes what you can rely on. Square's docs mark the Square MCP server as Beta and ask users to report bugs through GitHub issues, so behavior and controls may change. Approve it, if at all, for a narrow use case with a fixed scope list, a documented owner, and a re-review date. Require a written record of which endpoint versions and transports your team tested, since the remote endpoint in the docs and the older /sse endpoint in the GitHub README do not match.
How much internal effort does a Square MCP security review take?
The main internal effort is an administrator and a security reviewer working through the scope mapping, a Sandbox or limited-scope test plan for the local server, and a written approval record. The effort grows with the number of scopes requested, the number of staff clients connecting, and whether the team also reviews a local server, which needs separate credential and host controls. No effort figure is supplied for this review, so ask the team who will own scope changes and how often the review repeats.
Can our own team run this review without outside help?
Often yes, if the team has someone who can read the OAuth Permissions Reference, administer the Square seller account, and test the chosen client. Outside help is most useful for independent security testing of the AI setup, such as prompt injection, tool permission and credential handling checks, which DeployOpen runs as fixed-scope work with a findings report and retest once the scope is agreed in writing. Any quote follows from that written scope, and DeployOpen does not publish a price list.
How DeployOpen tests and reviews a Square MCP setup
DeployOpen reviews how a Square MCP setup is permissioned before staff rely on it, from the OAuth scopes granted to the client through the read-only and Sandbox test paths. The work is fixed-scope, agreed in writing, and produces documented findings, fixes and a retest.
How we scope
- Confirm which Square accounts, locations and AI clients are in the review and who approves each scope.
- List the scopes each client has been granted and compare them with the work staff actually need.
- Agree in writing whether the review covers remote production access, a local instance, or both.
- Engagements are fixed-scope, with deliverables and timelines agreed before work starts.
How we build
- Test the remote server's OAuth consent and scope grants against a documented permission list.
- Run prompt injection and tool misuse tests against the three tools the server exposes.
- Check whether a local instance is set to read-only and confirm it cannot reach production by mistake.
- Verify that test prompts are run against a Sandbox account before any production use.
How we hand over
- Deliver a findings report with severity, evidence and a specific fix for each permission issue.
- Provide a recommended scope baseline, a read-only configuration record and a Sandbox test script.
- Walk the security and IT owners through the findings and the retest results.
- Retest after fixes are applied and document what changed and what remains open.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers.
- Retesting can follow Square changes to the Beta server, its endpoints or its scope list.
- Ask us to confirm the support scope and the retest terms in the written proposal.

