Token导航 LogoToken导航TokenDH.com
Square MCP Server logo
AI代理stdio官方级别未说明来源级核验

Square MCP Server

MCP Server

square-mcp-server

Square Model Context Protocol Server是一个遵循Model Context Protocol标准的服务,允许AI助手与Square的Connect API进行交互,适用于支付处理和商业管理场景。

工具数

3

提示词数

0

GitHub Stars

99

资源数

0
支付处理TypeScriptClaudeAPI集成Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

square

提供方

square

最后核验

2026/5/17 20:24

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx square-mcp-server start

详细介绍

Square模型上下文协议服务器(测试版)

该项目遵循 模型上下文协议 标准,允许人工智能助手与Square的connect API进行交互。

快速开始

使用npx启动并运行Square MCP服务器:

# Basic startup
npx square-mcp-server start

# With environment configuration
ACCESS_TOKEN=YOUR_SQUARE_ACCESS_TOKEN SANDBOX=true npx square-mcp-server start

# local runs
npx /path/to/project/square-mcp-server

替换 YOUR_SQUARE_ACCESS_TOKEN 使用您实际的Square访问令牌。您可以按照以下指南获取访问令牌: Square访问令牌。您还可以在运行命令之前设置环境变量。

远程MCP服务器

Square现在提供托管远程MCP服务器:

https://mcp.squareup.com/sse

建议使用远程MCP,因为它使用OAuth身份验证,允许您直接使用Square帐户登录,而无需手动创建或管理访问令牌。

配置选项

环境变量目的示例
ACCESS_TOKEN您的Square API访问令牌ACCESS_TOKEN=sq0atp-...
SANDBOX使用Square沙盒环境SANDBOX=true
PRODUCTION使用Square生产环境PRODUCTION=true
DISALLOW_WRITES仅限于只读操作DISALLOW_WRITES=true
SQUARE_VERSION指定Square API版本SQUARE_VERSION=2025-04-16

与AI助手集成

鹅集成

配置Square MCP服务器 :

远程MCP

要在Goose中安装Square远程MCP,请在安装了Goose的计算机上单击以下URL:

goose://extension?cmd=npx&arg=mcp-remote&arg=https%3A%2F%2Fmcp.squareup.com%2Fsse&id=square_mcp_production _ remote&name=square%20MCP%20远程&描述=square%20生产%20MCP/20远程

或者将URL复制并粘贴到浏览器的地址栏中。

# Automatic installation
npx square-mcp-server install

# Get URL for manual installation
npx square-mcp-server get-goose-url

install 命令会自动更新Goose配置。

Claude桌面集成

有关Claude Desktop集成,请参阅 模型上下文协议快速入门指南。将此配置添加到您的 claude_desktop_config.json:

远程MCP

{
  "mcpServers": {
    "mcp_square_api": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.squareup.com/sse"]
    }
  }
}

这种方法允许您直接使用Square帐户凭据进行身份验证,而无需管理访问令牌。

本地MCP

{
  "mcpServers": {
    "mcp_square_api": {
      "command": "npx",
      "args": ["square-mcp-server", "start"],
      "env": {
        "ACCESS_TOKEN": "YOUR_SQUARE_ACCESS_TOKEN",
        "SANDBOX": "true"
      }
    }
  }
}

工具参考

Square MCP Server为与Square API交互提供了一套简化的工具:

工具描述主要用途
get_service_info发现服务可用的方法探索和发现
get_type_info获取详细的参数要求请求准备
make_api_request执行对Square的API调用执行操作

服务目录

Square MCP服务器提供对Square完整 API生态系统.看看 Square API文档 有关每项服务的详细信息:

服务描述
applepayApple Pay集成
bankaccounts银行账户管理
bookingcustomattributes预订的自定义属性
bookings预约管理
cards支付卡管理
cashdrawers现金抽屉管理
catalog目录管理(项目、类别等)
checkout结账和付款处理
customercustomattributes为客户定制属性
customergroups客户分组
customersegments客户细分
customers客户管理
devices方形设备管理
disputes付款争议处理
events事件跟踪
giftcardactivities礼品卡活动跟踪
giftcards礼品卡管理
inventory库存跟踪
invoices发票管理
labor劳动力管理
locationcustomattributes位置的自定义属性
locations位置管理
loyalty忠诚度计划管理
merchantcustomattributes商家的自定义属性
merchants商户账户管理
oauth身份验证
ordercustomattributes订单的自定义属性
orders订单管理
payments付款处理
payouts支出管理
refunds退款管理
sites网站集成
snippetsSquare在线代码集成
subscriptions订阅管理
team员工管理
terminal广场航站楼管理
vendors供应商管理
webhooksubscriptions事件通知

使用模式

为了通过MCP与Square API进行最佳互动:

  1. 发现:使用 get_service_info 探索可用的方法
   get_service_info(service: "catalog")
  1. 理解:使用 get_type_info 了解参数要求
   get_type_info(service: "catalog", method: "list")
  1. 执行:使用 make_api_request 执行操作
   make_api_request(service: "catalog", method: "list", request: {})

开发与调试

使用MCP检查器

MCP检查员 提供了一个用于测试的可视化界面:

# Build the project
npm run build

# Start the inspector with the Square MCP Server
npx @modelcontextprotocol/inspector node dist/index.js start

开发工作流程

  1. 克隆存储库
  2. 安装依赖项: npm install
  3. 启动开发模式: npm run watch
  4. 运行服务器: node dist/index.js start
  5. 使用MCP检查器测试您的更改

贡献

此存储库是根据Square的OpenAPI规范自动生成的。虽然欢迎贡献,但请注意,需要将更改合并到生成此代码的生成器中。在提交pull请求之前,请打开一个问题来讨论拟议的更改。

目录标签

目录标签

支付处理TypeScriptClaudeAPI集成混合部署商业管理AI助手

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

square-mcp-server

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP