e-commerce MCP Server
Click on "Install 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., "@e-commerce MCP Serverresolve stuck package for order 98765"
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.
AI-Native Commerce Operations MCP Server
This repository contains a Model Context Protocol (MCP) server built in TypeScript, acting as an operational agent for e-commerce exception handling (e.g., stuck packages, missing items, refund escalations).
Features
MCP Tools: Exposes capabilities to check order details, tracking status, evaluate refund policies, and safely execute remediation actions.
Safety First: Hardcoded safety guardrail where any refund action above $150 is automatically blocked and flagged for human approval (
PENDING_APPROVAL).PostgreSQL Persistence: Complete operational schema including tracking order states, remediation actions, refunds with idempotency, and immutable audit logs.
SSE Transport: Uses standard Express server with Server-Sent Events (SSE) for reliable MCP transport.
Related MCP server: CRMy
Setup Instructions
Prerequisites
Node.js (v18+)
Docker & Docker Compose (for local PostgreSQL database)
Installation
Install dependencies:
npm installStart the local PostgreSQL database:
docker-compose up -dRun the database migrations and seed synthetic data:
npm run db:migrate npm run db:seed
Running the Server
Start the MCP server in development mode:
npm run devThe server will start on port 3000:
SSE Endpoint:
http://localhost:3000/sseMessages Endpoint:
http://localhost:3000/messages
You can connect to this server using an MCP client (like Claude Desktop) by configuring it to use the SSE transport with the URL http://localhost:3000/sse.
Testing
Run the vitest test suite to verify the core safety boundaries and business logic:
npm testProduct Decisions & Tradeoffs
Direct PostgreSQL Client (
pg) over ORMs: To prioritize a "small, coherent solution" and respect the provided raw SQL schema without abstracting it away, we used the standardpgdriver instead of heavy ORMs (Prisma, Drizzle). This keeps the migration and execution path 1-to-1 with the schema.Express + SSE for Transport: Since the goal is a "remotely accessible" MCP server, Server-Sent Events (SSE) is chosen as it's the standard for remote MCP communication over HTTP, allowing a seamless connection with remote LLM clients without dealing with Stdio complexities over networks.
Audit Logging Strategy: Audit logs are inserted synchronously alongside the remediation actions within a database transaction. A tradeoff here is slightly longer transaction times in exchange for guaranteed logging correctness.
Exclusions: As requested by the assignment scope, this solution excludes authentication, frontend applications, and full CI/CD deployment pipelines. The focus is strictly on a robust MCP server and accurate backend database operations.
Available MCP Tools
get_order_details: Fetch full order state, items, and customer risk score.check_tracking_status: Fetch carrier shipment logs and current status.evaluate_refund_policy: Checks refund eligibility based on SLA, customer risk, and tracking status.execute_remediation: Triggers an action (REFUND,REPLACEMENT,CARRIER_CLAIM). Safely catches high-value refunds and enforces an immutable audit trail.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceEnables natural-language control of e-commerce operations including product management, order processing, inventory tracking, customer service, content generation, and advertising analytics through 15 integrated MCP tools. Provides a local-first commerce automation solution with SQLite storage and extensible channel adapters for end-to-end online store workflows.Last updated153MIT
- Alicense-qualityBmaintenanceProvides AI agents with operational customer context, including typed revenue objects, persistent state, scoped tools, and human-in-the-loop handoffs through MCP, REST, and CLI.Last updated3312Apache 2.0
- Flicense-qualityCmaintenanceEnables customer support operations such as order lookup, store credit, refunds, and audit log review through an agent using safe, typed MCP tools.Last updated
- Flicense-qualityDmaintenanceEnables e-commerce shopping assistant capabilities including product search, cart management, payment processing, and order fulfillment via MCP tools.Last updated
Related MCP Connectors
Remote MCP for Universal Cart merchant readiness MCP, structured receipts, audit logs, and reviewer-
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/phanidharguttikonda0/e-commerce-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server