Square MCP Server is a server that follows the Model Context Protocol (MCP) standard, designed to enable AI assistants to interact with Square's Connect API. This project is officially maintained by Square and is currently in Beta.
Purpose
The main purpose of this server is to serve as a bridge between AI assistants and Square's commerce APIs. Through the MCP protocol, AI assistants can call various Square APIs, such as catalog management, order processing, etc., thereby directly completing operations related to the Square platform within a conversation.
Main Capabilities
The server provides a streamlined set of tools for interacting with the Square API:
- get_service_info: Used to explore available services and methods. For example,
get_service_info(service: "catalog")can retrieve information about the catalog service. - get_type_info: Used to understand the parameter requirements of a specific method. For example,
get_type_info(service: "catalog", method: "list")can retrieve the parameter details of the catalog list method. - make_api_request: Used to perform actual API operations. For example,
make_api_request(service: "catalog", method: "list", request: {})can call the catalog list endpoint.
These tools cover Square's complete API ecosystem; for specific services, refer to the Square API documentation.
Usage
Hosted Remote Server (Recommended)
Square provides a hosted remote MCP server at:
https://mcp.squareup.com/mcp
This server uses OAuth authentication; users only need to log in with their Square account and do not need to create and manage access tokens. For setup instructions, refer to the Square MCP documentation, which includes configuration instructions for assistants such as Claude, ChatGPT, and Goose. The old SSE endpoint https://mcp.squareup.com/sse still serves existing SSE configurations.
Local Self-Hosted Server
If you need to run your own copy, you can run the server locally using npx and use your own access token:
npx square-mcp-server start
You need to replace YOUR_SQUARE_ACCESS_TOKEN with your actual Square access token. For how to obtain an access token, refer to the Square Access Tokens guide. You can also set environment variables before running the command.
Integration with AI Assistants
Goose Integration:
To install the remote MCP into Goose, you can click the following URL on the 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 the browser address bar.
The following command configures the local server (npx square-mcp-server start), not the hosted server:
npx square-mcp-server start
The installation command will automatically update the Goose configuration.
Claude Desktop Integration:
For Claude Desktop integration, please refer to the Model Context Protocol quickstart guide. Add the following configuration to claude_desktop_config.json :
{
"mcpServers": {
"square": {
"command": "npx",
"args": ["square-mcp-server", "start"]
}
}
}
This approach allows authentication directly using Square account credentials, with no need to manage access tokens.
Use Cases
- Users who want to directly operate Square commerce data through AI assistants (such as Claude, ChatGPT, Goose).
- Developers who need to integrate the Square API into AI workflows.
- Teams that want to self-host the MCP server for customization or testing.
Limitations
- The project is currently in Beta.
- The local server requires you to manage the Square access token yourself.
- The code in this repository is automatically generated from Square's OpenAPI specification; contributing code requires going through the generator process first. It is recommended to open an issue for discussion before submitting a PR.
- The hosted server recommends using OAuth, but specific availability may be subject to Square account and regional restrictions.
Development and Debugging
You can use MCP Inspector for visual testing. The development workflow is as follows:
- Clone the repository
- Install dependencies:
npm install - Start development mode:
npm run watch - Run the server:
node dist/index.js start - Use MCP Inspector to test changes
Since the code is auto-generated, any modifications need to be merged into the generator.