Store data access
75 read tools cover orders, products, inventory, customers, promotions, analytics, reviews, conversations, delivery, and store settings.
143 AI-callable tools for Shopline Open API analysis and operations
shopline-mcp connects Claude Code, Claude Desktop, Codex, and other MCP-compatible clients to Shopline store data through stdio.
A Node.js MCP server for store analysis and operations, backed by the Shopline Open API and exposed as structured tools for AI clients.
75 read tools cover orders, products, inventory, customers, promotions, analytics, reviews, conversations, delivery, and store settings.
High-value tools summarize sales, rank products, compare channels, segment customers, track stock risk, and measure promotion performance.
68 write tools can create, update, or delete Shopline resources when the connected API token has the required permissions.
Built-in analytical tools turn Shopline order, customer, product, inventory, and promotion data into answers that are useful for daily e-commerce decisions.
Use get_sales_summary, get_top_products, get_sales_trend, and get_channel_comparison to inspect revenue, AOV, product ranking, sales trends, and online versus POS performance.
Use get_rfm_analysis, get_repurchase_analysis, and get_customer_lifecycle to understand segments, repeat purchase patterns, and customer movement between periods.
Use get_inventory_turnover, get_promotion_roi, get_slow_movers, and get_stock_transfer_suggestions to spot stock risk, promotion lift, slow-moving products, and transfer opportunities.
Run the server with the supported Node.js runtime and a Shopline Open API token.
shopline-mcpSHOPLINE_API_TOKENInstall the npm package, or run the published server directly with npx.
npm install shopline-mcpnpx shopline-mcpexport SHOPLINE_API_TOKEN=your_token_hereConfigure your MCP client to start shopline-mcp over stdio.
claude mcp add --transport stdio shopline \
-e SHOPLINE_API_TOKEN=your_token_here \
-- npx shopline-mcp{
"mcpServers": {
"shopline": {
"command": "npx",
"args": ["shopline-mcp"],
"env": {
"SHOPLINE_API_TOKEN": "your_token_here"
}
}
}
}Use stdio transport with npx shopline-mcp or the installed shopline-mcp executable, and pass SHOPLINE_API_TOKEN in the environment.
The 143 tools span 75 read tools and 68 write tools across the core Shopline Open API resources used by merchants and store operators.
Query orders by date, status, channel, and store; inspect line items, labels, tags, action logs, transactions, archived orders, and shipment state.
Search products, inspect variants, product images, tags, categories, warehouse stock, locked inventory, low stock alerts, price, and quantity.
Work with customer profiles, search, groups, store credits, member points, membership tiers, tier history, custom fields, and customer promotions.
Cover promotions, coupons, flash price campaigns, affiliate campaigns, gifts, add-on products, subscriptions, campaign detail, and usage stats.
Read customer service conversations and messages, reply to order or shop threads, and manage product review comments when token permissions allow.
Inspect delivery options, time slots, order delivery records, return orders, return order details, and update delivery or pickup store data.
Access merchants, channels, payments, taxes, staff permissions, app settings, agents, and token information.
List purchase orders, inspect purchase order detail, create purchase orders, and work with POS-related inventory and revenue rules.
Upload media and create merchant app metafields for Shopline resources when the API token includes the necessary scopes.
This server includes 68 tools that can create, update, or delete Shopline data. Token permissions determine which write actions your AI client can actually use.
Write tool descriptions start with [WRITE] and include a 【副作用】 section so AI clients can distinguish operations that change store data.
Use the narrowest Shopline Open API token scopes needed for your workflow. Read tools are marked read-only, while write tools are marked as non-read-only and destructive.
Write coverage includes orders, customers, products, promotions, categories, returns, conversations, reviews, gifts and add-ons, purchase orders, media, metafields, delivery, and merchant settings.
These notes describe the Shopline Open API behavior handled by the server.
https://open.shopline.ioAuthorization: Bearer <SHOPLINE_API_TOKEN>page and per_pageper_page max is 50sort_byconfirmedcompletedshop or posdollarsRun the server with a Shopline Open API token, connect over stdio, and give your AI client access to Shopline store analysis and operations.
Install and Run View Tool Coverage