Clover MCP(模型上下文协议)服务器
使用 OAuth 身份验证与 Clover API 交互的最小 MCP 服务器。
概述
此 MCP 服务器允许生成式 AI 模型和其他客户端使用模型上下文协议 (MCP) 访问您的 Clover 商家数据。通过此集成,模型可以:
- 检索商户信息
- 列出库存物品
- 列出订单
- 访问单个商品和订单
快速入门
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Clover MCP 服务器:
与 Claude AI 一起使用(推荐)
- 将其添加到您的 Claude MCP 设置中(通常在
~/.config/anthropic/claude.mcp.json
中):
- 与 Claude 一起使用:
- 在与 Claude 的对话中启动 OAuth 流程:
通过命令行使用
您可以直接运行 MCP 服务器:
Clover OAuth 设置
在使用此 MCP 服务器之前,您需要设置一个 Clover 应用程序:
- 在developer.clover.com上创建Clover开发者帐户
- 在 Clover 开发者仪表板中注册新应用
- 使用以下配置来配置您的应用:
- 网站网址:
http://localhost:4000/oauth-callback
- 默认 OAuth 响应:
Code
- 网站网址:
- 记下您的客户端 ID 和客户端密钥
- 将这些凭据添加到您的环境或
.env
文件
MCP 工具
以下工具可通过 MCP 协议使用:
get_oauth_status
:检查 OAuth 凭证是否可用initiate_oauth_flow
:启动 OAuth 流程以获取访问令牌get_merchant_info
:获取商家信息list_inventory
:列出带有可选过滤器的库存项目list_orders
:列出带有可选过滤器的订单
Claude 的示例用法
以下是连接后您可以与 Claude 一起使用的一些示例提示:
- 连接到 Clover :
- 获取商户信息:
- 列出库存项目:
- 列出订单:
发展
本地安装
- 克隆此存储库
- 安装依赖项:
- 设置您的 OAuth 凭据:
- 构建 TypeScript 代码:
- 启动 MCP 服务器:
发布更新
要将新版本发布到 npm:
故障排除
如果您遇到 OAuth 问题:
- 验证您的 Clover 应用已正确注册
- 检查应用程序设置中的站点 URL 是否设置为
http://localhost:4000/oauth-callback
- 确保您的客户端 ID 和客户端密钥正确
- 确保开发者仪表板中的“默认 OAuth 响应”设置为“代码”
- 尝试使用
initiate_oauth_flow
再次启动 OAuth 流程
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使 AI 代理能够通过安全的 OAuth 认证 MCP 服务器访问并与 Clover 商家数据、库存和订单进行交互。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityThis server integrates AI assistants with ClickUp workspaces, enabling task, team, list, and board management through a secure OAuth2 authentication process.Last updated -5567TypeScriptMIT License
Fewsats MCP Serverofficial
AsecurityFlicenseAqualityAn MCP server that integrates with Fewsats allowing AI agents to securely purchase anything by retrieving balances, accessing payment methods, and processing payments.Last updated -413PythonArmor Crypto MCPofficial
AsecurityAlicenseAqualityAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.Last updated -20141PythonGPL 3.0- AsecurityAlicenseAqualityAn MCP server that enables AI agents to authenticate with and interact with Open eClass platform instances, supporting UoA's SSO authentication system for retrieving course information and performing basic platform operations.Last updated -41PythonMIT License