agentic-commerce
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agentic Commerce MCP Server
A custom Model Context Protocol (MCP) server that turns Claude into an agentic shopping assistant. Search products, compare options, manage a cart, and check out — with built-in guardrails for safe autonomous commerce.
Powered by the DummyJSON Products API (194 products, 24 categories, no API key required).
Architecture
Claude (agent brain)
↓
MCP Server (this project)
↓
DummyJSON API → product search, details, categories
↓
Cart + Guardrails → spending limits, confirmation gates
↓
Checkout → human-in-the-loop confirmationRelated MCP server: haksnbot-tools
Tools
Tool | Description |
| Search by keyword, category, price, sort by price/rating |
| Full product info with specs, price history |
| Side-by-side comparison of multiple products |
| Add items (enforces per-item price limit) |
| Cart contents with subtotal, tax, total |
| Place order (requires explicit confirmation) |
| Empty the cart |
| Discover all 24 product categories |
Guardrails
Configurable safety limits in config.json:
{
"max_price_per_item": 200,
"max_order_total": 500,
"require_checkout_confirmation": true
}Per-item price cap — blocks expensive items (e.g. a $1,999 laptop)
Order total cap — prevents runaway spending
Checkout confirmation — forces the agent to ask the user before purchasing
Setup
Prerequisites
Python 3.11+
Claude Code or Claude Desktop
Install
git clone https://github.com/sunilvarun/agentic-commerce-mcp.git
cd agentic-commerce-mcp
pip install "mcp[cli]>=1.0.0"Configure Claude Code
Add to your project's .mcp.json (already included in this repo):
{
"mcpServers": {
"agentic-commerce": {
"command": "python3",
"args": ["-m", "agentic_commerce"],
"cwd": "/path/to/agentic-commerce-mcp/src"
}
}
}Run
Open Claude Code from the project directory and start shopping:
"Search for laptops under $150" "Compare products 80 and 81" "Add product 80 to my cart and check out"
Test
pip install pytest
pytest tests/ -vProject Structure
src/agentic_commerce/
├── server.py # MCP server — registers all tools
├── catalog.py # DummyJSON API client
├── cart.py # In-memory shopping cart
├── guardrails.py # Spending limits & confirmation gates
└── __main__.py # Entry pointExtending
The catalog module (catalog.py) exposes a clean interface (search, get_product, get_products). To swap in a real API (Amazon PA API, eBay, Shopify), just replace the implementation in that file — the server and cart don't need to change.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
Hosted WooCommerce MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that enables Claude to control your computer, similar to Anthropic's computer use but easy to set up locally.4,740 npm400MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets Claude control a Minecraft bot with 40+ actions including movement, combat, crafting, and inventory management. Built on Mineflayer, it supports Microsoft authentication, pathfinding, and auto-reconnect.3MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that wraps the Claude Agent SDK, enabling Claude-powered queries, coding tasks, web search, and customizable agent execution using OAuth without an API key.54 npmMIT
- AlicenseNot gradedqualityBmaintenanceLet AI assistants shop. An MCP server that gives Claude, Cursor, and any MCP-compatible AI the ability to interact with UCP-enabled merchants.MIT