
MCP服务器将Shopline Open API包装成143个可调用AI工具(75个读取+68个写),用于电子商务操作。为Claude Code、Claude桌面及任何兼容MCP的AI客户端构建。
概览
一个开源的MCP(模型上下文协议)服务器,将Shopline Open API包装成143个可调用AI工具(75个读取+68个写),用于电子商务数据分析。 为Claude Code、Claude Cowork及任何兼容MCP的AI客户端构建。使AI代理能够通过自然语言查询订单、产品、库存、顾客行为和Shopline门店的促销信息。 - 涵盖订单、产品、库存、客户、促销、分类、订阅、对话、评价等 - (标准 JSON-RPC 2.0)—— 插入 Claude 代码,立即开始提问 - 超越 Python 3.9+ 标准库和请求 - 工具内部处理所有 API 复杂性 - - 结构化 JSON 输出,带有自然语言友好参数(日期为 YYYY-MM-DD,非时间戳) 该项目基于 Shopline Open API v1 构建。 - API 文档:https://open-api.docs.shoplineapp.com - 认证:通过 Shopline 商户管理员获得持有人令牌- 基础网址:https://open.shopline.
概述(AI 翻译)
繁體中文
一个开源的MCP(模型上下文协议)服务器,将Shopline Open API包装成143个可调用AI工具(75个读取+68个写),用于电子商务数据分析。
为Claude Code、Claude Cowork及任何兼容MCP的AI客户端构建。使AI代理能够通过自然语言查询订单、产品、库存、顾客行为和Shopline门店的促销信息。
这会带来什么
- 143个即用工具,涵盖订单、产品、库存、客户、促销、分类、订阅、对话、评论等
- MCP 服务器(标准 JSON-RPC 2.0)——插入 Claude Code,立即开始提问
- 除了Python 3.9+标准库和[[T0]之外,零外部依赖]
- 内置分页、重试和速率限制 — 工具内部处理所有API复杂性
- 为AI代理设计 — 结构化JSON输出,带有自然语言友好的参数(日期为
YYYY-MM-DD,而非时间戳)
API 参考
该项目基于 Shopline Open API v1 构建。
- API 文档:[https://open-api.docs.shoplineapp.com
- 认证:通过Shopline商户管理员获得持有人令牌
- 基础网址:
https://open.shopline.io/v1/
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Shopline
An open-source MCP (Model Context Protocol) server that wraps the Shopline Open API into 143 AI-callable tools (75 read + 68 write) for e-commerce data analysis.
Built for Claude Code, Claude Cowork, and any MCP-compatible AI client. Enables AI agents to query orders, products, inventory, customer behavior, and promotions from Shopline stores through natural language.
What This Does
- 143 ready-to-use tools covering orders, products, inventory, customers, promotions, categories, subscriptions, conversations, reviews, and more
- MCP server (stdio JSON-RPC 2.0) — plug into Claude Code and start asking questions immediately
- Zero external dependencies beyond Python 3.9+ standard library and
requests - Built-in pagination, retry, and rate limiting — tools handle all API complexity internally
- Designed for AI agents — structured JSON output with natural language-friendly parameters (dates as
YYYY-MM-DD, not timestamps)
API Reference
This project is built on the Shopline Open API v1.
- API Documentation: https://open-api.docs.shoplineapp.com
- Authentication: Bearer token via Shopline merchant admin
- Base URL:
https://open.shopline.io/v1/
You need a valid Shopline API access token from a Shopline merchant account. Refer to the Shopline API authentication guide for how to obtain one.
Quick Start
Install
pip install mcp-shopline
Or use uvx (no install needed):
uvx --from mcp-shopline mcp-shopline
Set your API token:
export SHOPLINE_API_TOKEN=your_token_here
Use with Claude Code
Add the server via the Claude CLI:
claude mcp add --transport stdio shopline -- mcp-shopline
Or with the environment variable inline:
安装
uvx --from mcp-shopline mcp-shopline配置
{
"mcpServers": {
"shopline": {
"command": "mcp-shopline",
"env": {
"SHOPLINE_API_TOKEN": "your_token_here"
}
}
}
}