shopnex-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shopnex-mcp show me today's sales analytics and top products"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
shopnex-mcp
Model Context Protocol (MCP) server for ShopNex stores. Connect Claude Desktop, Cursor, Cline / VS Code, Windsurf, or n8n to your ShopNex Admin REST API (/api/v1/admin/*) using a scoped sk_… API token.
Built on the official @modelcontextprotocol/sdk stdio transport with JSON Schema 2020-12 validated tool definitions, pagination from day one, dashboard analytics, preview-first inventory writes, and an optional read-only lock (SHOPNEX_READ_ONLY=1).
Features
Official MCP SDK transport: Uses
@modelcontextprotocol/sdk(Server+StdioServerTransport) with zero hand-rolled framing and zerostdoutlog pollution.JSON Schema 2020-12 & Anthropic API verified: Every tool's
inputSchemais validated in CI withAjv2020(strict: true) and checked against Anthropic's strict tool-use schema rules.ShopNex
/api/v1/admin/*native contract: Authenticates viaAuthorization: Bearer sk_…, maps pagination to?limit=&offset=, preserves exact integer-cent money amounts (priceCents,totalCents,salesCents), and surfaces missingread_*/write_*token scopes clearly on HTTP403.Safe-by-default writes:
update_product_inventorydefaults toconfirm: false(dry-run diff preview) before mutating live variant stock, andSHOPNEX_READ_ONLY=1removes write tools completely.
Related MCP server: Shopify MCP Server
Tools
Tool | Method & ShopNex Endpoint | Required Scope | Description |
|
|
| Paginated catalog listing ( |
|
|
| Full product details including options, variant UUIDs, SKUs, |
|
|
| Updates variant |
|
|
| Paginated orders with |
|
|
| Paginated customer directory with |
|
|
| Store sales, order count, AOV, returning customer rate vs. prior period, daily series, top 5 products, and unfulfilled/unpaid queues ( |
1-Step Token Setup
In your ShopNex Admin (Settings → API tokens), create a token (sk_…) with the scopes you want the assistant to have:
Mode | Recommended Scopes ( |
Read + Inventory updates |
|
Read-only ( |
|
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Base URL of your ShopNex store (e.g. |
| Yes | — | Secret API token ( |
| No |
| Set to |
| No |
| Per-request HTTP timeout in milliseconds ( |
Client Configuration
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"shopnex": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/shopnex-mcp"],
"env": {
"SHOPNEX_URL": "https://shop.example.com",
"SHOPNEX_API_KEY": "sk_your_token_here"
}
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"shopnex": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/shopnex-mcp"],
"env": {
"SHOPNEX_URL": "https://shop.example.com",
"SHOPNEX_API_KEY": "sk_your_token_here"
}
}
}
}Cline / VS Code (.vscode/mcp.json)
{
"servers": {
"shopnex": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:khoap1220-hue/shopnex-mcp"],
"env": {
"SHOPNEX_URL": "https://shop.example.com",
"SHOPNEX_API_KEY": "sk_your_token_here"
}
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"shopnex": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/shopnex-mcp"],
"env": {
"SHOPNEX_URL": "https://shop.example.com",
"SHOPNEX_API_KEY": "sk_your_token_here"
}
}
}
}n8n (MCP Client Tool Node — Command-line / Stdio)
Field | Value |
Connection Type |
|
Command |
|
Arguments |
|
Environment |
|
Development & Verification
Requires Node.js >= 20.
npm install
npm run lint
npm run typecheck
npm run build
npm testLicense
MIT © 2026 Khoa Phan
Available Tools
6 toolsget_productARead-onlyIdempotent
Fetch full details of a single ShopNex product by UUID, including options, variant IDs, SKUs, integer priceCents, inventory quantities, images, and collections. Requires read_products scope.
Inputs: productId (required).
list_customersARead-onlyIdempotent
List ShopNex customers with pagination (?limit=&offset= or page) and optional search across email, name, or phone. Requires read_customers scope.
Inputs: page, limit, offset, search.
list_ordersARead-onlyIdempotent
List ShopNex orders with pagination (?limit=&offset= or page) and optional filters for financialStatus, fulfillmentStatus, cancelled state, customerId, or search (#1001, email, customer name). Requires read_orders scope.
Inputs: page, limit, offset, search, +4 more.
list_productsARead-onlyIdempotent
List products in the ShopNex catalog with pagination (?limit=&offset= or page), optional search query, and customField filters. Requires read_products scope.
Inputs: page, limit, offset, search, +1 more.
shop_analyticsARead-onlyIdempotent
Retrieve ShopNex store analytics overview (/api/v1/admin/analytics/overview): sales, order count, average order value, returning customer rate vs. the previous period, daily series, top 5 products, and unfulfilled/unpaid attention queues. Requires read_orders scope.
Inputs: days, timezone.
update_product_inventoryAIdempotent
Update stock quantity (and optional integer priceCents or SKU) on a ShopNex variant via PATCH /api/v1/admin/variants/{variantId}. Provide variantId, or productId for a single-variant product. Defaults to confirm=false (dry-run preview); pass confirm=true to apply the change. Requires write_products scope.
Inputs: inventoryQuantity (required), sku, confirm, productId, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a clearly distinct resource and action: three list_* tools for separate entity types, one get_* for single-product detail, one write for variant inventory, and one analytics aggregate. The list vs. get split for products is explicitly clarified by descriptions (catalog listing vs. full detail by UUID).
Five of six tools follow a snake_case verb_noun pattern (list_products, list_orders, get_product, update_product_inventory). shop_analytics breaks the verb-first convention as a bare noun phrase, a minor but noticeable deviation.
Six tools is a tight, focused set that avoids redundancy and fits a read-oriented store admin surface. It sits at the lower end of the comfortable range, leaving room for obvious companions like get_order or get_customer.
Coverage is read-heavy: products, orders, and customers can be listed and product detail/inventory can be read and updated, but there is no get_order, get_customer, create operation, or order fulfillment/refund path. Agents can partially work around gaps via search filters on list tools, but common admin write workflows are dead ends.
Maintenance
Related MCP Connectors
Connect AI to store orders, products and inventory with scoped access and human approvals.
Connect ChatGPT or Claude to your CRM, store or shipping API. Keys stay out of the chat.
Connect Amazon Seller Central to Claude or ChatGPT via MCP. Orders, inventory, pricing, fees, FBA.
Unofficial Shopify MCP Pack — wraps the Shopify Admin REST API (2024-01)
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI assistants like Cursor or Claude Desktop to fully manage a Shopify store using the Model Context Protocol, with tools for products, orders, customers, inventory, discounts, and analytics.32MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude, ChatGPT, Cursor, or any MCP client to a Shopify store, enabling read-only access to themes, Liquid files, catalogue data, and store configuration through 122 tools.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceConnects MCP-compatible clients to a Shopify store's Admin GraphQL API, exposing products, orders, customers, inventory, and sales data as callable tools. It enables natural-language store queries, low-stock and sales summaries, customer support answers, and creation of draft products for review.MIT
- AlicenseCqualityCmaintenanceEnables Claude Desktop to interact with Shopify stores through a secure Admin API connection, supporting product, order, customer, inventory, fulfillment, discount, content, and analytics operations.512MIT