Skip to main content
Glama

E-commerce MCP Server

by preetash88

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

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:mcp

The 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

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables comprehensive product management for e-commerce with CRUD operations, AI-powered product description generation, inventory tracking, and MySQL database integration.

  1. Features
    1. Quick start
      1. Notes

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/preetash88/custom-ecommerce-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server