agentic-commerce
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., "@agentic-commercesearch for running shoes under $100"
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.
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: computer-use-mcp
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.
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
- AlicenseAqualityBmaintenanceMCP server to dynamically load Claude Code skills into AI agentsLast updated57914MIT
- Alicense-qualityCmaintenanceMCP server that enables Claude to control your computer, similar to Anthropic's computer use but easy to set up locally.Last updated500338MIT
- Alicense-qualityFmaintenanceAn 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.Last updated2MIT
- Alicense-qualityDmaintenanceAn 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.Last updated15MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
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/sunilvarun/agentic-commerce-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server