shopnex-mcp
This MCP server connects AI clients to a ShopNex store's Admin API for read-only catalog/order/customer analytics and guarded inventory updates.
List and search products with pagination, search, and custom-field filters.
Get full product details by UUID, including variants, SKUs, prices, stock, images, and collections.
Preview and apply inventory updates for variants, including optional price and SKU changes, with a
confirmsafety gate.List and filter orders by status, cancellation, customer, and search terms.
List and search customers by email, name, or phone.
View store analytics such as sales, order count, AOV, returning-customer rate, daily series, top products, and attention queues.
Run read-only when
SHOPNEX_READ_ONLY=1, which hides and blocks write tools.
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 ( |
1-Click Install & Client Configuration
1-Click Claude Desktop Bundle (
.mcpb): Downloadshopnex-mcp.mcpband double-click to install in Claude Desktop, or use zero-installnpxbelow.
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
Custom Enterprise MCP & Webhook Engineering
Need a production-hardened MCP server (OAuth 2.1, tenant scoping, annotation mutation guards, Official Registry server.json + Glama Grade-A) or replay-safe Stripe/HubSpot/n8n webhook integration?
48h Fixed Starter Slice: $145 via 0%-fee Contra Escrow (100% async — written spec, tested GitHub PR & 2-min walkthrough)
Portfolio & Services: khoaphan.dev/services
Related Open-Source MCP & A2A Security Suite
Project | Focus & Verification |
Zero-dep MCP & A2A v1.0 security guard, 11-CVE multi-lang SCA, RFC 8785 JCS/JWKS verifier & GitHub Action (Featured in | |
Official Anthropic MCP Registry servers for Caido AppSec HTTPQL traffic/findings & AnythingLLM RAG workspaces with fail-closed ACLs | |
Official Anthropic MCP Registry servers for 21-tool Blender 4.1+ 3D automation (zero-zombie Job Objects) & ShopNex e-commerce operations | |
Read-only Official Anthropic MCP Registry servers for WakaTime developer productivity telemetry & Trefle botanical species data | |
Architecture notes, live Ed25519-signed A2A |
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 maps to a distinct resource+action pair: list_products vs. get_product (browse vs. full detail), list_orders, list_customers, shop_analytics (aggregates), and update_product_inventory (the only mutation). The get/list split on products is explicitly clarified by the descriptions (UUID detail vs. catalog browsing), so misselection is unlikely.
Five of six tools follow a clean verb_noun pattern (get_product, list_orders, list_customers, list_products, update_product_inventory). shop_analytics breaks the pattern as a noun-only name, a minor but noticeable deviation.
Six tools is well within the sweet spot and each earns its place: two product reads, one product write, two resource lists, and one analytics aggregate. Nothing appears redundant or padding the set.
The surface is heavily read-oriented: orders and customers can only be listed, with no get_order/get_customer for single-record detail and no order mutation (fulfillment, cancellation, refund) despite the order status filters implying those workflows. Only products get a write path, so agents hit dead ends on the order and customer lifecycle.
Maintenance
Related MCP Connectors
Connect AI to store orders, products and inventory with scoped access and human approvals.
Manage a Shopify store from ChatGPT or Claude: products, collections, pages, blogs, themes.
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.
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