E-commerce MCP Server
Provides tools to query e-commerce data including customer information, order details, and product inventory through a Model Context Protocol interface with test data.
README
E-commerce MCP Server
A simple Model Context Protocol (MCP) server with test data.
Setup
-
Create virtual environment and install dependencies:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv sync -
Configure MCP in VS Code:
- The json config to import into VS Code Augment Extension is configured in
.vscode/example-mcp.json - Update the python and args paths with the absolute path to your project
- Restart VS Code or reload the MCP server after setup (Command Palette
Developer: Reload Window)
- The json config to import into VS Code Augment Extension is configured in
Available Tools
The server provides 5 e-commerce tools:
get_customer_info- Get customer details by IDget_customer_ids_by_name- Search for customer IDs by nameget_order_details- Get order information by order IDget_orders_by_customer_id- Get all orders for a customercheck_inventory- Search product inventory by name
Test Data
Customers
- Alice Johnson (CUST123) - alice@example.com, 555-1234
- Bob Smith (CUST456) - bob@example.com, 555-5678
Orders
- ORD1001 - Alice's order (Shipped, $89.99)
- ORD1015 - Alice's order (Processing, $45.50)
- ORD1022 - Bob's order (Delivered, $120.00)
Products
- SKU100 - Wireless Mouse ($29.99, stock: 42)
- SKU200 - Keyboard ($59.99, stock: 18)
- SKU300 - USB-C Cable ($15.50, stock: 77)
Example Commands
Try these queries with the MCP server:
Get customer info for Bob Smith
Show me order ORD1001
Check inventory for mouse
Get all orders for customer CUST123
Find customer ID for Alice Johnson
Running Tests
pytest src/tests/test_server.py -v
Directions to import the MCP server into VS Code Augment Extension
- Open the VS Code Augment Extension
- Click the Setting icon(Gear) and select settings
- Click on the tools section
- Search for and click import from json
- Paste the JSON from
.vscode/example-mcp.jsoninto the dialog box - Click import
- Restart VS Code Command Palette
Developer: Reload Window
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Neon Database
MCP server for interacting with Neon Management API and databases