MCP E-commerce Server
Provides CRUD operations for e-commerce product management using a MySQL database, including product catalog, search, and low-stock monitoring.
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., "@MCP E-commerce Server add a new product called Eco Mug priced at $12.99 with 50 in stock"
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.
MCP E-commerce Server
A comprehensive Model Context Protocol (MCP) server for e-commerce product management with CRUD operations, AI-powered descriptions, and database integration.
Features
🛍️ Complete CRUD Operations - Create, read, update, delete products
🤖 AI-Powered Descriptions - Automatic product description generation using MCP sampling
📊 Database Integration - MySQL database with proper schema
🔍 Smart Search - Search products by name with pagination
📦 Low Stock Monitoring - Resource for tracking inventory levels
🌐 Dual Transport Support - Both stdio and HTTP/SSE transports
🔧 TypeScript - Fully typed with Zod validation
📋 MCP Resources - Product catalog and low-stock resources
🎯 MCP Prompts - Pre-built prompt templates
Related MCP server: MCP E-commerce Server
Quick start
# 1) Install deps
npm i
# 2) Prepare env
cp .env.example .env
# 3) Create schema (optional, run in your MySQL)
# See sql/schema.sql
# 4) Run demo (non-MCP) usage
npm run dev:demo
# 5) Run MCP server (stdio transport)
npm run dev:mcpThe MCP server prints nothing special; it waits on stdio for a client like Claude Desktop / MCP Inspector / Apps SDK to connect.
Notes
This is intentionally minimal and tutorial‑friendly.
All database params come from environment variables.
You can extend with transactions, pagination, auth, etc.
#package.json npm link
npm login npm publish --access public
Available Tools
4 toolsadd_productAdd ProductB
Create a new product with sku, name, (optional) description, price, and quantity.
Inputs: sku (required), name (required), price (required), quantity (required), +1 more. Returns: id, sku, name, price, +4 more
add_product_smartAdd Product (Smart AI Enhanced)A
Create a new product with smart ai generated description if missing
Inputs: sku (required), name (required), price (required), quantity (required), +1 more. Returns: id, sku, name, price, +4 more
delete_productDelete ProductA
Delete a product by id. Returns { deleted: boolean }.
Inputs: id (required). Returns: deleted
get_product_by_idGet Product by IDA
Fetch a single product by numeric ID
Inputs: id (required). Returns: id, sku, name, price, +4 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
add_product and add_product_smart have heavily overlapping purposes—both create a product, differing only in whether a description is AI-generated. An agent could easily pick the wrong one, and there is no guidance on when to prefer the 'smart' variant.
All names are snake_case with a verb-first pattern (add_*, get_*, delete_*), which is mostly predictable. Minor deviations exist: the 'smart' suffix and 'by_id' qualifier break the strict verb_noun mold but remain readable.
Four tools is on the thin side for an e-commerce domain and the set is dominated by creation variants. It's not egregiously small, but it feels under-scoped given the domain.
The surface covers create (twice), read-by-id, and delete, but lacks update and any list/search operation—core operations for managing a product catalog. Agents will hit dead ends when they need to modify or enumerate products.
Maintenance
Related MCP Connectors
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
The E-commerce Marketplace For Every AI Agent. A Governed Catalog Of 600M+ US Products, Plus Four Agent Ready Capabilities Search, Price Comparison, Product-Vs-Product, And Detailed Q&A.
Run your online shop from your AI: products, prices, stock and orders. Payouts via your own Stripe.
Merchant product catalogs for AI agents: price, availability, specs, variants, buy links. Read-only.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables comprehensive product management for e-commerce with CRUD operations, AI-powered product description generation, inventory tracking, and MySQL database integration.57 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables management of retail e-commerce products with CRUD operations, AI-powered product description generation, and inventory tracking through SQLite database integration.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables full CRUD operations for e-commerce product management, featuring MySQL integration and AI-powered product description generation. It provides tools for inventory monitoring and supports both stdio and HTTP/SSE transports.7 npmMIT
- AlicenseCqualityDmaintenanceEnables e-commerce product management with CRUD operations, AI-powered descriptions, and MySQL database integration via MCP.47 npmMIT