capitalone-shopping-mcp
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.
@sohampatwardhan/capitalone-shopping-mcp
Unofficial MCP server for the public Capital One Shopping catalog. It lets an agent look up store rewards and coupons from the signed-out site, so it can help compare offers.
This project is not affiliated with, endorsed by, or maintained by Capital One. Rates and coupons belong to their publishers and can change at any time.
The server is read-only. It does not sign in, does not activate cash back, and does not call account endpoints.
Tools
Tool | What you get |
| Stores whose name or domain matches |
| One store ( |
| The featured set from the directory, with the rewards-engine rate when that domain is published there. Optional |
search_stores takes query, optional limit (default 10, max 25), and optional letter (a–z or 0-9) to scan one directory page instead of all of them.
Percentage amounts are basis points: 750 is 7.5%. Fixed amounts are US cents: 5000 is $50.00. Tiered offers include a categories list in those same units. The directory card's cashbackReward string can lag the engine. When cardRewardDiffers is true, use reward.display.
Examples
Search by name:
{
"name": "search_stores",
"arguments": { "query": "ancestry", "limit": 5 }
}Open one store:
{
"name": "get_store_offers",
"arguments": { "store": "ancestry.com" }
}Featured rates, filtered:
{
"name": "list_featured",
"arguments": { "query": "best buy" }
}Prompts that work once the server is connected:
"What cash back does Capital One Shopping show for Ancestry, and which number should I trust?"
"Search the directory for outdoor stores and list any featured rates."
"Get the current coupons for autozone.com. Do not activate anything."
Related MCP server: Is Agentic MCP
Setup
Requires Node.js 20 or newer.
npx -y @sohampatwardhan/capitalone-shopping-mcp@latestThe published bin is capitalone-shopping-mcp. Stdio is the default. Logs go to stderr so they stay off the JSON-RPC stream. The MCP server name is capitalone-shopping-mcp.
Cursor
Add this to ~/.cursor/mcp.json or the project's .cursor/mcp.json:
{
"mcpServers": {
"capitalone-shopping": {
"command": "npx",
"args": ["-y", "@sohampatwardhan/capitalone-shopping-mcp@latest"]
}
}
}Claude Desktop
The same mcpServers block goes in the desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after saving.
Claude Code
claude mcp add capitalone-shopping -- npx -y @sohampatwardhan/capitalone-shopping-mcp@latestVS Code
Create .vscode/mcp.json:
{
"servers": {
"capitalone-shopping": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@sohampatwardhan/capitalone-shopping-mcp@latest"]
}
}
}Other MCP clients use the same stdio command. Windsurf, Zed, and Continue take a command plus args of npx and -y @sohampatwardhan/capitalone-shopping-mcp@latest.
Streamable HTTP
HTTP mode is stateless and has no authentication. Bind it to localhost.
npx -y @sohampatwardhan/capitalone-shopping-mcp@latest --http --port 3333The MCP endpoint is http://127.0.0.1:3333/mcp. A client config looks like:
{
"mcpServers": {
"capitalone-shopping": {
"url": "http://127.0.0.1:3333/mcp"
}
}
}GET /health returns ok.
MCP Inspector
npm install
npm run build
npx @modelcontextprotocol/inspector node dist/cli.jsA non-interactive check of the stdio server:
npx @modelcontextprotocol/inspector --cli --method tools/list node dist/cli.jsPolite use
The public pages sit behind Cloudflare and are a shared site. This client:
Sends one catalog request at a time.
Waits at least one second between requests (
COS_MIN_INTERVAL_MS, default1000).Caches directory pages for one hour and store pages for 15 minutes.
Sends a User-Agent that names this package and says the access is read-only.
Does not send cookies.
A cold search_stores without letter reads 27 directory pages, so the first search takes about half a minute. Later searches in the same process reuse the cache. list_featured reads only the a page, because the featured set is repeated on every letter. Passing a domain to search_stores or get_store_offers avoids the full walk.
Some networks receive HTTP 403 before the public page is returned. The tool reports that refusal and does not keep retrying it.
Privacy
Reward payloads include a JWT and a user id even for a signed-out fetch. This server drops those fields, commissioning blobs, and activation URLs (/api/v3/r) before a tool result is built. A result that still contains either marker is refused. Do not paste raw .data files into a chat. The fixtures in this repository are trimmed copies with those fields removed.
Caveats
Directory rows are a name and a domain. They do not include a rate. Rates for featured stores come from
rewardsEngineData. Every other store needsget_store_offers.The card string (
cashbackReward) is not the live rate when it disagrees with the engine amount.Coupon codes are included only when the public page publishes a code. Some stores publish deal titles without a code.
Nothing here activates an offer, holds a rate, or checks out. Open the public coupon page and follow Capital One Shopping's own flow for that.
Offer text and rates are Capital One Shopping's. This server does not grant a license to that content beyond what the public pages already show.
Data source
Document | URL |
Directory |
|
Store |
|
Both are React Router single-fetch bodies (turbo-stream). No Authorization header and no cookie is sent. Logo URLs point at images.capitaloneshopping.com.
Variable | Default | Purpose |
|
| Catalog origin |
|
| Minimum gap between catalog requests |
|
| Directory cache lifetime |
|
| Store page cache lifetime |
| enabled | Set to |
| unset | Set to |
Development
npm install
npm run lint
npm test
npm run typecheck
npm run build
node dist/cli.js --help
npm run smokenpm test uses fixtures and does not call Capital One Shopping. COS_LIVE=1 npm test also fetches letter x and the Ancestry store page, one request per second. npm run smoke starts the built stdio server and checks the tool list. It does not fetch the catalog.
CI runs npm ci, lint, typecheck, test, build, and smoke on Node 22.
prepublishOnly compiles TypeScript into dist/ before the package is packed.
License
MIT. See LICENSE.
Store names, rates, coupon text, and logos are not relicensed by this MIT grant. They remain the property of their owners.
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
Read-only product catalog for shopping agents: search, details, compatibility, shop answers.
Read-only product catalog for shopping agents: search, details, compatibility, shop answers.
Read-only product catalog for shopping agents: search, details, compatibility, shop answers.
Read-only product catalog for shopping agents: search, details, compatibility, shop answers.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceProvides read-only access to the CatalogAPI global rewards and gift card API, enabling assistants to answer questions about reward coverage, catalog contents, and integration via live data.MIT- AlicenseNot gradedqualityCmaintenanceEnables agents to search a public product catalog, inspect product details and variants, browse collections, find gifts by occasion, and generate cart links for users to review and complete checkout themselves.MIT
- AlicenseNot gradedqualityCmaintenanceProvides LLM clients read-only access to product search, pricing, discounts, catalog categories, store locations, and per-store availability through the retailer's official integration API.MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only catalogue discovery through standard MCP tools for searching, batch lookup, and retrieving product/variant details with prices and availability.MIT