shop-mcp
Provides browser automation for Amazon.in accounts, enabling product search, product details retrieval, cart management, checkout dry-runs with summary, and guarded order placement using a session-based login.
Provides browser automation for Flipkart accounts, enabling product search, product details retrieval, cart management, checkout dry-runs with summary, and guarded order placement using a session-based login.
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., "@shop-mcpsearch for iPhone 15 on Amazon.in"
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.
shop-mcp
A local Python MCP server that wraps browser automation for your own Amazon.in and Flipkart accounts — search, cart management, and guarded checkout.
⚠️ Read this before using it
Terms of Service. Both Amazon.in and Flipkart's ToS restrict automated / bot access. This tool is built for personal, low-volume use of your own account (the way you'd use a browser yourself, just orchestrated by an MCP client). Running it at scale, using it commercially, or hiding automation from the platform is a ToS violation and can get your account flagged or banned. That risk is yours to accept.
No password storage or replay. This project never stores or types your password. You log in manually (including any OTP/CAPTCHA) in a real browser window the first time; Playwright saves the resulting session (cookies + local storage) to
sessions/<site>.json. All later tool calls reuse that session. When it expires, you just log in again.Purchases are guarded, not prevented.
place_orderwill not fire without aconfirm_tokenproduced bycheckout_dry_runin the same session, and it enforces a price cap fromconfig.py. Read the code inserver.pybefore raising the cap or automating around the confirmation step — that guard is there for a reason.Selectors will need maintenance. Amazon/Flipkart change their DOM often. The CSS/text selectors in
browser/amazon.pyandbrowser/flipkart.pyare starting points, not guarantees — expect to inspect the live page (DevTools) and adjust selectors when something breaks.Headed, not headless. Both sites detect and often block headless Chromium, especially at login/checkout. Everything here runs with a visible browser window (
headless=False).
Related MCP server: browser-agent-mcp
Setup
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
playwright install chromium # downloads Chromium browser binary (~180MB)Note:
playwright install chromiumis required — it downloads the browser binary that Playwright uses for automation. This is separate from the Python package and won't work without it.
First-time login (per site)
python -m browser.login amazon
python -m browser.login flipkartA browser window opens. Log in normally, complete any OTP/CAPTCHA, wait until you're on the homepage/account page, then return to the terminal and press Enter. The session is saved and reused by the MCP server.
Running the MCP server
python server.pyThis starts the server using stdio transport (the standard way local MCP servers communicate with clients). You don't interact with it directly — your MCP client connects to it.
MCP Client Configuration
An example config file is provided at mcp-config-example.json. Copy and
adapt it for your client. Replace paths with your actual absolute paths.
Claude Desktop
Edit claude_desktop_config.json (usually at
%APPDATA%\Claude\claude_desktop_config.json on Windows or
~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"shop-mcp": {
"command": "C:\\path\\to\\shop-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\shop-mcp\\server.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}Kiro IDE
Add to .kiro/settings/mcp.json in your workspace (or ~/.kiro/settings/mcp.json for global):
{
"mcpServers": {
"shop-mcp": {
"command": "python",
"args": ["server.py"],
"cwd": "D:\\path\\to\\shop-mcp",
"env": {
"PYTHONUNBUFFERED": "1"
},
"disabled": false
}
}
}Generic MCP Client (stdio)
Any MCP client that supports stdio transport can connect. The key settings:
Setting | Value |
Transport | stdio |
Command | Path to Python in your venv |
Args | Path to |
Working directory | The |
Linux / macOS paths
{
"mcpServers": {
"shop-mcp": {
"command": "/path/to/shop-mcp/.venv/bin/python",
"args": ["/path/to/shop-mcp/server.py"],
"env": {
"PYTHONUNBUFFERED": "1"
}
}
}
}Note: Always use the Python from your virtual environment (
.venv) so all dependencies are available. SettingPYTHONUNBUFFERED=1ensures tool output streams without buffering delays.
Tools exposed
Tool | Effect | Guarded? |
| Search a site, return structured results | Read-only |
| Price/rating/availability for one product URL | Read-only |
| List current cart contents | Read-only |
| Add item + quantity to cart | Reversible |
| Load checkout, read summary, do NOT submit | Read-only |
| Submit the order from a dry-run | Irreversible — token + price-cap guarded |
| Look up an order by ID | Read-only |
Config
Edit config.py:
MAX_ORDER_TOTAL_INR— hard ceiling;place_orderrefuses above this regardless of what's asked.REQUIRE_CONFIRM_TOKEN— leaveTrue. This ties every purchase to a specific dry-run summary so nothing can be placed "blind."
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
- Flicense-qualityCmaintenanceMCP server for grocery-related web automation using Playwright, enabling AI assistants to interact with grocery websites.Last updated
- Flicense-qualityDmaintenanceProduction-grade MCP server for autonomous web automation with stealth features, designed for complex booking workflows like tickets, tours, hotels, and transport.Last updated
- Alicense-qualityDmaintenanceBrowser automation MCP server using Camoufox anti-detect browser with fingerprint spoofing, geolocation/timezone spoofing, and human-like cursor movement.Last updated1Apache 2.0
- Flicense-qualityCmaintenanceLightweight MCP server for interacting with Amazon and Flipkart search and authentication components.Last updated
Related MCP Connectors
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.
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
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/detushar/shop-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server