Skip to main content
Glama

shopnex-mcp

Official MCP Registry khoap1220-hue/shopnex-mcp MCP server License: MIT Secured with mcp-tool-guard MCPRush Grade-A

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 zero stdout log pollution.

  • JSON Schema 2020-12 & Anthropic API verified: Every tool's inputSchema is validated in CI with Ajv2020 (strict: true) and checked against Anthropic's strict tool-use schema rules.

  • ShopNex /api/v1/admin/* native contract: Authenticates via Authorization: Bearer sk_…, maps pagination to ?limit=&offset=, preserves exact integer-cent money amounts (priceCents, totalCents, salesCents), and surfaces missing read_* / write_* token scopes clearly on HTTP 403.

  • Safe-by-default writes: update_product_inventory defaults to confirm: false (dry-run diff preview) before mutating live variant stock, and SHOPNEX_READ_ONLY=1 removes write tools completely.


Related MCP server: Shopify MCP Server

Tools

Tool

Method & ShopNex Endpoint

Required Scope

Description

list_products

GET /api/v1/admin/products

read_products

Paginated catalog listing (limit, page / offset, search, customField).

get_product

GET /api/v1/admin/products/{id}

read_products

Full product details including options, variant UUIDs, SKUs, priceCents, and stock.

update_product_inventory

PATCH /api/v1/admin/variants/{variantId}

write_products

Updates variant inventoryQuantity (and optional priceCents / sku) with confirm preview gate. Hidden when SHOPNEX_READ_ONLY=1.

list_orders

GET /api/v1/admin/orders

read_orders

Paginated orders with financialStatus, fulfillmentStatus, cancelled, customerId, and search (#1001, email, name).

list_customers

GET /api/v1/admin/customers

read_customers

Paginated customer directory with search across email, name, and phone.

shop_analytics

GET /api/v1/admin/analytics/overview + /admin/shop

read_orders

Store sales, order count, AOV, returning customer rate vs. prior period, daily series, top 5 products, and unfulfilled/unpaid queues (days, IANA timezone).


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 (Settings → API tokens)

Read + Inventory updates

write_products, read_orders, read_customers (write_* automatically includes read_*)

Read-only (SHOPNEX_READ_ONLY=1)

read_products, read_orders, read_customers

Environment Variables

Variable

Required

Default

Description

SHOPNEX_URL

Yes

—

Base URL of your ShopNex store (e.g. https://shop.example.com or http://localhost:3000).

SHOPNEX_API_KEY

Yes

—

Secret API token (sk_…) from Settings → API tokens.

SHOPNEX_READ_ONLY

No

0

Set to 1 or true to hide and block all write tools.

SHOPNEX_TIMEOUT_MS

No

15000

Per-request HTTP timeout in milliseconds (1000–120000).


1-Click Install & Client Configuration

1-Click Claude Desktop Bundle (.mcpb): Download shopnex-mcp.mcpb and double-click to install in Claude Desktop, or use zero-install npx below.

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 Line (STDIO)

Command

npx

Arguments

-y github:khoap1220-hue/shopnex-mcp

Environment

SHOPNEX_URL=https://shop.example.com,SHOPNEX_API_KEY=sk_your_token_here


Development & Verification

Requires Node.js >= 20.

npm install
npm run lint
npm run typecheck
npm run build
npm test

License

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?


Project

Focus & Verification

mcp-tool-guard & a2a-card-guard

Zero-dep MCP & A2A v1.0 security guard, 11-CVE multi-lang SCA, RFC 8785 JCS/JWKS verifier & GitHub Action (Featured in awesome-a2a)

caido-mcp · anythingllm-mcp

Official Anthropic MCP Registry servers for Caido AppSec HTTPQL traffic/findings & AnythingLLM RAG workspaces with fail-closed ACLs

blender-mcp-suite · shopnex-mcp

Official Anthropic MCP Registry servers for 21-tool Blender 4.1+ 3D automation (zero-zombie Job Objects) & ShopNex e-commerce operations

wakatime-mcp · trefle-mcp

Read-only Official Anthropic MCP Registry servers for WakaTime developer productivity telemetry & Trefle botanical species data

khoaphan.dev

Architecture notes, live Ed25519-signed A2A v1.0.1 node & custom MCP engineering sprints (100% written async, zero live meetings)

Available Tools

6 tools
get_productA
Read-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_customersA
Read-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_ordersA
Read-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_productsA
Read-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_analyticsA
Read-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_inventoryA
Idempotent

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

    A4/5.0

    Scored across 6 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables 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.
      32
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects 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.
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects 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