Skip to main content
Glama
ChopChop MCP Server

ChopChop MCP Server

by coder01128

ChopChop MCP Server

A Model Context Protocol (MCP) server that exposes tools from a multi-tenant Supabase commerce backend. Lets an AI agent query tenants, browse catalogue items with pricing, pull recent orders, and add products — all through the MCP tool-calling interface.

Tools

Tool

Description

list_tenants

Returns all active tenants on the platform

get_products

Catalogue items with variant pricing for a tenant (embedded select join)

get_orders

Recent orders with line items for a tenant

add_item

Adds a product with a default variant and price to a tenant's catalogue

Related MCP server: shop-mcp

Setup

# Install dependencies
npm install

# Copy environment template and fill in your Supabase credentials
cp .env.example .env

# Build
npm run build

# Run
npm start

Environment Variables

Variable

Description

SUPABASE_URL

Your Supabase project URL

SUPABASE_SERVICE_ROLE_KEY

Service-role key (bypasses RLS)

Usage with MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

This opens a web UI where you can call each tool interactively.

Usage with Claude Desktop

Add to your Claude Desktop MCP config (claude_desktop_config.json):

{
  "mcpServers": {
    "chopchop": {
      "command": "node",
      "args": ["/absolute/path/to/chopchop-mcp-server/dist/index.js"]
    }
  }
}

Architecture

See ARCHITECTURE.md for data flow, project structure, and schema details.

Design Decisions

See DECISIONS.md for rationale on transport choice, auth strategy, schema validation, and more.

Tech Stack

  • Runtime: Node.js + TypeScript (strict mode)

  • MCP: @modelcontextprotocol/sdk (official TypeScript SDK)

  • Database: Supabase (PostgreSQL) via @supabase/supabase-js

  • Validation: Zod (integrated with MCP SDK)

  • Transport: stdio

Available Tools

4 tools
add_itemA

Adds a product to a tenant's catalogue. Creates both the item and a default variant with the given price.

Inputs: name (required), price (required), tenant_id (required), category_id, +1 more.

get_ordersA

Returns recent orders with line items for a tenant. Ordered by most recent first.

Inputs: tenant_id (required), limit, status.

get_productsA

Returns catalogue items with variant pricing for a tenant. Uses Supabase embedded select to join items with variants.

Inputs: tenant_id (required), limit, category_id.

list_tenantsA

Returns all active tenants on the ChopChop platform

Inputs: no named parameters.

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 4 tools

    Disambiguation5/5

    Each tool maps to a distinct resource and action: tenants, products, orders, and product creation. There is no overlap in purpose, so an agent can reliably choose based on the resource it needs.

    Naming Consistency5/5

    All tools use a consistent snake_case verb_noun pattern: list_tenants, get_products, get_orders, add_item. The minor variation between list/get and add/create does not break the pattern.

    Tool Count5/5

    Four tools is a reasonable, tightly scoped set for a platform integration focused on reading tenants, products, and orders while supporting product creation. Each tool has a distinct role and none feel redundant.

    Completeness3/5

    The core read paths for tenants, products, and orders are covered, and product creation exists. However, product update/delete and any order lifecycle mutations are absent, leaving the write surface incomplete for fuller management workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables an LLM agent to query a Shopify store's catalogue and stock via MCP, with tools for product search, product details, per-location inventory, and low-stock reports.
      4
      14 PyPI
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Serves a product store's catalog over MCP tool calls so agents can search products, add items to a cart, inspect the cart, and complete checkout without parsing full HTML pages. This keeps action payloads and token usage far smaller than DOM scraping, especially as catalogs grow, and also works through Chrome's native document.modelContext API.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to browse products, look up orders, and place orders through MCP tools, with API-key authentication, rate limiting, and idempotent order operations.
      MIT