Skip to main content
Glama
kitcommerce-mcp

kitcommerce-mcp

by itswadesh

kitcommerce-mcp

A standalone Model Context Protocol server that exposes the admin side of kitcommerce-api as MCP tools, so an AI assistant (Claude Desktop, Claude Code, Cursor, …) can manage a store: products, categories, collections, coupons, orders, inventory, customers and dashboard.

It talks to the API over HTTP — it does not import the API code — so it can point at any deployment (local, staging, prod) via environment variables.

How it works

  • Transport: stdio (spawned by the MCP client).

  • Auth: sends the admin API key as the authorization header (matched against ApiKey.secret in the API) and the store id as x-litekart-store.

  • Tools are a curated CRUD set over the core commerce entities (see below).

Related MCP server: WooCommerce MCP Server

Setup

cd mcp
npm install
npm run build

Configure credentials (copy .env.example for reference — the MCP client supplies these as env, see below):

Variable

Description

KITCOMMERCE_API_URL

Base URL of the API, e.g. https://api.litekart.in

KITCOMMERCE_API_KEY

Admin API key secret (sent as authorization)

KITCOMMERCE_STORE_ID

Store id (sent as x-litekart-store)

Create the API key in the admin API keys section; it is tied to a store and a user/role, which determines what the MCP server is allowed to do.

Register with an MCP client

Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json)

{
  "mcpServers": {
    "kitcommerce": {
      "command": "node",
      "args": ["D:/projects/lk/kitcommerce-api/mcp/dist/index.js"],
      "env": {
        "KITCOMMERCE_API_URL": "http://localhost:3000",
        "KITCOMMERCE_API_KEY": "your_admin_api_key_secret",
        "KITCOMMERCE_STORE_ID": "your_store_id"
      }
    }
  }
}

For local development you can skip the build and run from source with tsx:

{
  "command": "npx",
  "args": ["tsx", "D:/projects/lk/kitcommerce-api/mcp/src/index.ts"]
}

Tools

Group

Tools

Products

list_products, get_product, create_product, update_product, delete_product, bulk_update_product_status

Categories

list_categories, get_category, create_category, update_category, delete_category

Collections

list_collections, get_collection, create_collection, update_collection, delete_collection

Coupons

list_coupons, get_coupon, create_coupon, update_coupon, delete_coupon

Orders

list_orders, get_order, update_order

Inventory

list_inventory, get_inventory, update_inventory

Customers

list_customers, get_customer

Dashboard

get_dashboard_summary

list_* tools accept page, page_size, search, sort, status, and a free-form filters object for any additional query params. create_* / update_* accept a data object sent as the JSON body — call the matching get_* on an existing record first to learn the exact field shape.

Extending

Tools are declared in src/tools.ts. Add a resource with the crud() helper or push a bespoke ToolDef. Keep the set curated — most MCP clients cap the number of tools they will load.

Available Tools

30 tools
bulk_update_product_statusA

Update the status/active state of many products at once.

Inputs: data (required).

create_categoryA

Create a new category. Common fields: name, slug, parentCategoryId (null for a top-level category), description, image, active.

Inputs: data (required).

create_collectionB

Create a new collection. Common fields: name, slug, description, active, conditions.

Inputs: data (required).

create_couponB

Create a new coupon. Common fields: code, type (percentage|fixed), amount, minPurchase, maxDiscount, startDate, endDate, usageLimit, active.

Inputs: data (required).

create_productA

Create a new product. Common fields: name, slug, price, mrp, sku, stock, active, description, categoryId, images (string[]).

Inputs: data (required).

delete_categoryB

Delete a category by id.

Inputs: id (required).

delete_collectionB

Delete a collection by id.

Inputs: id (required).

delete_couponB

Delete a coupon by id.

Inputs: id (required).

delete_productA

Delete a product by id.

Inputs: id (required).

get_categoryB

Get a single category by id.

Inputs: id (required).

get_collectionA

Get a single collection by id.

Inputs: id (required).

get_couponB

Get a single coupon by id.

Inputs: id (required).

get_customerA

Get a single customer/user by id.

Inputs: id (required).

get_dashboard_summaryA

Get the admin dashboard summary (sales, orders, revenue and other store stats).

Inputs: no named parameters.

get_inventoryA

Get a single inventory by id.

Inputs: id (required).

get_orderA

Get a single order by id.

Inputs: id (required).

get_productA

Get a single product by id.

Inputs: id (required).

list_categoriesC

List categories with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_collectionsA

List collections with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_couponsA

List coupons with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_customersB

List store customers with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_inventoryB

List inventory with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_ordersC

List orders with pagination, search and filters.

Inputs: page, sort, search, status, +2 more.

list_productsA

List products with pagination, search and filters.

Inputs: page, skus, sort, search, +5 more.

update_categoryA

Update an existing category by id (partial update).

Inputs: id (required), data (required).

update_collectionA

Update an existing collection by id (partial update).

Inputs: id (required), data (required).

update_couponB

Update an existing coupon by id (partial update).

Inputs: id (required), data (required).

update_inventoryA

Update an existing inventory by id (partial update).

Inputs: id (required), data (required).

update_orderA

Update an existing order by id (partial update).

Inputs: id (required), data (required).

update_productA

Update an existing product by id (partial update).

Inputs: id (required), data (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 30 tools

    Disambiguation5/5

    Each tool is clearly scoped to a specific resource and action (e.g., product, order, coupon). There is no overlap between list/get/create/update/delete operations across different resource types, making it easy for an agent to select the right tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case (e.g., list_products, create_order, update_inventory). The one bulk operation (bulk_update_product_status) still fits the same convention.

    Tool Count4/5

    30 tools is slightly on the high side, but each tool serves a meaningful purpose within the e-commerce admin domain. The breadth is justified by covering multiple resources (products, categories, collections, coupons, orders, inventory, customers, dashboard).

    Completeness4/5

    The tool surface provides full CRUD for most master data and appropriate partial operations for transactional data (orders, inventory, customers) where creation is not an admin responsibility. Minor gaps like missing order-level item management or customer updates are acceptable for the domain.

    Related MCP Connectors

    Related MCP Servers