Ecommerce Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Ecommerce Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A complete Model Context Protocol (MCP) server for e-commerce operations, enabling AI assistants to interact with your online store through a well-defined API.
This MCP server provides comprehensive e-commerce functionality:
npm installnpm run build# For HTTP server (default, accessible via URL)
npm start
# Or explicitly set transport
TRANSPORT=http npm start
# For stdio (local use)
TRANSPORT=stdio npm startThe server runs on HTTP by default, making it accessible via URL at http://localhost:3000/mcp.
npm startThis allows others to connect to your MCP server using the URL:
Check if server is running:
curl http://localhost:3000/healthAdd to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"ecommerce": {
"url": "http://localhost:3000/mcp"
}
}
}Or if running remotely:
{
"mcpServers": {
"ecommerce": {
"url": "https://your-server.com/mcp"
}
}
}ecommerce_list_productsList all products in the store, optionally filtered by category.
Parameters:
category (optional): Filter by category nameresponse_format: 'markdown' or 'json'ecommerce_search_productsSearch for products by name or description.
Parameters:
query: Search termcategory (optional): Filter by categoryresponse_format: 'markdown' or 'json'ecommerce_get_productGet detailed information about a specific product.
Parameters:
product_id: Unique product identifierresponse_format: 'markdown' or 'json'ecommerce_create_cartCreate a new shopping cart.
Parameters:
response_format: 'markdown' or 'json'Returns: Cart ID for future operations
ecommerce_get_cartView the contents of a shopping cart.
Parameters:
cart_id: Unique cart identifierresponse_format: 'markdown' or 'json'ecommerce_add_to_cartAdd a product to the shopping cart.
Parameters:
cart_id: Cart identifierproduct_id: Product to addquantity: Number of items (default: 1)response_format: 'markdown' or 'json'ecommerce_remove_from_cartRemove a product from the cart.
Parameters:
cart_id: Cart identifierproduct_id: Product to removeresponse_format: 'markdown' or 'json'ecommerce_update_cart_itemUpdate the quantity of an item in the cart.
Parameters:
cart_id: Cart identifierproduct_id: Product to updatequantity: New quantityresponse_format: 'markdown' or 'json'ecommerce_create_orderComplete checkout and create an order.
Parameters:
cart_id: Cart to checkoutshipping_address: Object with delivery detailsfull_name: Customer nameaddress_line1: Street addressaddress_line2: Apartment, suite, etc. (optional)city: City namestate: State/Provincepostal_code: ZIP/Postal codecountry: Country codephone: Contact numberpayment_details: Object with payment infomethod: 'credit_card', 'debit_card', 'paypal', or 'bank_transfer'card_last4: Last 4 digits (optional)card_brand: Card brand (optional)transaction_id: Payment transaction ID (optional)response_format: 'markdown' or 'json'ecommerce_get_orderGet details of a specific order.
Parameters:
order_id: Unique order identifierresponse_format: 'markdown' or 'json'ecommerce_list_ordersList all orders in the system.
Parameters:
response_format: 'markdown' or 'json'Here's a typical customer journey:
// 1. Browse products
ecommerce_list_products({ category: "Electronics" })
// 2. View product details
ecommerce_get_product({ product_id: "prod_001" })
// 3. Create a cart
ecommerce_create_cart({})
// Returns: { id: "cart_xxx", ... }
// 4. Add items to cart
ecommerce_add_to_cart({
cart_id: "cart_xxx",
product_id: "prod_001",
quantity: 2
})
// 5. View cart
ecommerce_get_cart({ cart_id: "cart_xxx" })
// 6. Complete checkout
ecommerce_create_order({
cart_id: "cart_xxx",
shipping_address: {
full_name: "John Doe",
address_line1: "123 Main St",
city: "New York",
state: "NY",
postal_code: "10001",
country: "US",
phone: "+1234567890"
},
payment_details: {
method: "credit_card",
card_last4: "4242",
card_brand: "Visa"
}
})
// 7. Check order status
ecommerce_get_order({ order_id: "order_xxx" })The server comes pre-loaded with sample products:
Replace the mock database in src/database.ts with your actual database:
// Example with PostgreSQL
import { Pool } from 'pg';
const pool = new Pool({
connectionString: process.env.DATABASE_URL
});
export async function getAllProducts(): Promise<Product[]> {
const result = await pool.query('SELECT * FROM products');
return result.rows;
}Add authentication middleware to your HTTP server:
app.use((req, res, next) => {
const apiKey = req.headers['x-api-key'];
if (!apiKey || !isValidApiKey(apiKey)) {
return res.status(401).json({ error: 'Unauthorized' });
}
next();
});PORT for the HTTP serverExample deployment with environment variables:
PORT=8080 DATABASE_URL=postgres://... npm startecommerce-mcp-server/
├── src/
│ ├── index.ts # Main MCP server with tool registrations
│ ├── types.ts # TypeScript interfaces
│ └── database.ts # Data layer (mock or real DB)
├── dist/ # Compiled JavaScript
├── package.json
├── tsconfig.json
└── README.mdBuild and run in dev mode:
npm run devJust build:
npm run buildThis server implements the Model Context Protocol (MCP), which allows AI assistants to:
All tools include:
MIT
For issues or questions about this MCP server:
/healthTo add new features:
src/types.tssrc/database.tssrc/index.ts following existing patterns~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.