# Square MCP Server

> 通过 MCP 与 Square API 交互。

- **URL**: https://followmcp.com/zh/servers/square-mcp-server
- **Category**: 其他
- **Origin**: 官方
- **Stars**: 112
- **FMRS Score**: 49/100 (Grade D)
- **Source**: https://github.com/square/square-mcp-server
- **Transports**: stdio（本地进程）
- **Runtimes**: Node.js
- **Auth**: 需要 API Key / 凭据

## Overview
Square MCP Server 是 Square 提供的 Beta 本地服务器，遵循 Model Context Protocol 标准，供 AI 助手调用 Square Connect API。它提供服务发现、参数查询和 API 请求工具，可访问 README 列出的 Square API 服务。Square 也提供使用 OAuth 登录的托管远程服务器。

## Best for
- 需要从 AI 助手访问 Square API 的开发者或团队。
- 希望自行运行本地服务器并配置 Square 访问令牌的用户。

## Not for
- 不使用 Square API 的用户。
- 不希望管理访问令牌、且不打算使用 Square 托管 OAuth 服务器的用户。

## Required permissions
- 本地服务器需要 Square API 访问令牌；令牌可授予的权限取决于其配置，README 未列明具体范围。
- 可设置 `DISALLOW_WRITES=true` 限制为只读操作。
- 托管远程服务器使用 Square 账户 OAuth 登录。

## Risks
- API 请求可能执行写入操作；如需只读使用，可设置 `DISALLOW_WRITES=true`。
- 应妥善保管访问令牌，避免泄露。
- README 将本地服务器标为 Beta。

## Client config (JSON)
```json
{"mcpServers":{"mcp_square_api":{"command":"npx","args":["square-mcp-server","start"],"env":{"ACCESS_TOKEN":"YOUR_SQUARE_ACCESS_TOKEN","SANDBOX":"true"}}}}
```

## Tools (3)
- `get_service_info`: 查询某个服务可用的方法。
- `get_type_info`: 查看方法所需的参数信息。
- `make_api_request`: 向 Square 执行 API 请求。
