keepa-adapter
This server is an MCP adapter for Amazon intelligence via the Keepa API, exposing tools for product lookups, monitoring, and market analysis.
Fetch current product data for ASINs: prices, BSR, ratings, buy box, variations, offers, and sales estimates.
Retrieve price, rank, rating, and review history over configurable time windows.
Get buy box ownership, seller info, offers, and per-seller buy box statistics.
Explore variation families and check for orphaned children or attribute drift.
Look up category details, best-seller lists, and category-based product discovery.
Pull deals, coupons, lightning deal history, and monthly sales volume time series.
Track ASINs locally, take snapshots, and detect changes with severity levels.
Analyze BSR trends and flag deterioration patterns.
Register, list, and measure promo impact with before/during/after comparisons.
Check remaining Keepa API tokens and support multiple Amazon domains.
Provides tools for monitoring Amazon product data via the Keepa API, including price history, BSR trends, buy box changes, variation families, monthly sales, coupon/deal tracking, seller stats, category lookup, and promotional impact analysis.
Click on "Deploy 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., "@keepa-adapter get product data for ASIN B08N5WRWNW"
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.
keepa-adapter
MCP server + OpenClaw skill for Amazon intelligence via the Keepa API. 33 MCP tools cover every path in Keepa's current endpoint index, plus local snapshots, change detection, BSR analysis, and promotion measurement.
Setup
git clone https://github.com/your-org/keepa-adapter.git
cd keepa-adapter
npm install
cp .env.example .env
# Edit .env and add your Keepa API keyRelated MCP server: amazon-mcp
Install Via Claude Desktop MCPB
The easiest Claude Desktop install path is the .mcpb bundle from GitHub Releases.
Download
keepa-adapter-vX.Y.Z.mcpbfrom the latest release.Open the
.mcpbfile with Claude Desktop.Enter your Keepa API key when Claude asks for
Keepa API Key.Enable or restart the extension if Claude Desktop prompts you.
Start a new Claude chat and confirm the Keepa tools are available.
The bundle passes your key to the local MCP server as KEEPA_API_KEY. Optional settings such as KEEPA_TOKENS_PER_MINUTE, KEEPA_DEFAULT_DOMAIN, and KEEPA_DB_PATH remain available for manual MCP installs.
The bundle uses sql.js, so it does not load native Node add-ons inside Claude Desktop. That avoids Node ABI rebuild issues and macOS Electron code-signing failures for SQLite.
Build A Local MCPB
npm install
npm run mcpb:validate
npm run mcpb:packThe packaged bundle is written to:
release/keepa-adapter-v1.2.0.mcpb
release/keepa-adapter.mcpbUse the stable filename for website download links:
https://github.com/BWB03/keepa-adapter/releases/latest/download/keepa-adapter.mcpbEnvironment Variables
Variable | Required | Default | Description |
| Yes | — | Your Keepa API key |
| No |
| Token refill rate for your Keepa plan |
| No |
| Default Amazon marketplace (e.g. |
| No |
| Path to SQLite database |
International Marketplaces
All tools support international Amazon marketplaces via the domain parameter. Set KEEPA_DEFAULT_DOMAIN in your .env to avoid passing it on every call:
# .env
KEEPA_DEFAULT_DOMAIN=uk # All tools now default to Amazon.co.ukSupported domains: com (US), uk, de, fr, jp, ca, it, es, in, mx, br. Keepa only supports Brazil on a subset of endpoints; the adapter validates that restriction before sending a request.
You can still override per-call by passing domain explicitly to any tool.
Usage
As an MCP Server (Claude Desktop)
If you prefer manual JSON config instead of the .mcpb installer, add this server to Claude Desktop's MCP config (claude_desktop_config.json):
{
"mcpServers": {
"keepa-adapter": {
"command": "node",
"args": ["/path/to/keepa-adapter/dist/index.js"],
"env": {
"KEEPA_API_KEY": "your_key_here"
}
}
}
}Or run in development mode:
npm run devClaude Code / Codex Setup
Claude Code, Codex, and other stdio MCP clients can use the same local server command after building from source:
{
"mcpServers": {
"keepa": {
"command": "node",
"args": ["/absolute/path/to/keepa-adapter/dist/index.js"],
"env": {
"KEEPA_API_KEY": "your_key_here"
}
}
}
}For Codex CLI-style configs, use the equivalent command/args/env shape supported by your client:
[mcp_servers.keepa]
command = "node"
args = ["/absolute/path/to/keepa-adapter/dist/index.js"]
[mcp_servers.keepa.env]
KEEPA_API_KEY = "your_key_here"As an OpenClaw Skill (for bots)
import { KeepaSkill } from "keepa-adapter";
const skill = new KeepaSkill({ apiKey: "your_key" });
// Fetch product data
const products = await skill.getProduct(["B0012ZQPKG"]);
// Get daily alerts for Telegram/Slack/etc.
const alerts = await skill.getAlerts();
const summary = await skill.getDailySummary();Daily Collection (Scheduler)
Run a one-time collection of all tracked ASINs:
# Via npm
npm run collect
# Or directly
npx tsx src/scheduler/runner.tsSchedule with cron for daily monitoring:
0 6 * * * cd /path/to/keepa-adapter && KEEPA_API_KEY=xxx npm run collectPlaybooks
Amazon Monitoring Playbook - Operating workflow for turning Keepa price, BSR, buy box, sales, variation, and promo signals into actions.
MCP Tools Reference
Read Tools
Tool | Description |
| Fetch current product data for 1-100 ASINs (title, brand, prices, BSR, rating, buy box, images, features, variations, monthly sales, offer counts, out-of-stock %, Subscribe & Save status) |
| Get price/rank/review time series history (includes list price, lightning deal, FBA/FBM prices, offer counts) |
| Get buy box ownership, seller info, and offers |
| Get variation family tree (parent/child relationships) |
| Check remaining API tokens and refresh rate |
Monitoring Tools
Tool | Description |
| Add ASINs to the adapter's local monitoring list |
| Fetch + store snapshot, return changes vs previous |
| Query detected changes by ASIN, severity, or date range |
| Analyze BSR trend and flag deterioration |
| Check for orphaned children, parent changes, attribute drift |
Market Intelligence Tools
Tool | Description |
| Get monthly sales volume time series (units sold over time) |
| Get ASIN-specific coupon, promotion, and lightning-deal history from |
| Get product-level Buy Box win %, average price, and FBA status from |
| Get the best seller ASIN list for a category |
| Look up category details (name, parent, children, product count) |
Official Keepa API Tools
Tool | Keepa operation |
| Product Search ( |
| Product Finder ( |
| Browsing Deals ( |
| Category Search ( |
| Seller Information ( |
| Seller Finder ( |
| Most Rated Sellers ( |
| Lightning Deals ( |
| Graph Image API ( |
| Add Keepa-hosted trackings ( |
| Remove one or all Keepa-hosted trackings |
| Get or list Keepa-hosted trackings |
| Retrieve tracking notifications; read-only by default |
| List named tracking lists |
| Configure the Keepa notification webhook |
keepa_track_asins remains a lightweight local snapshot list. The keepa_*_api_tracking* tools use Keepa's hosted Tracking API and affect the Keepa account associated with the API key.
Promo Tools
Tool | Description |
| Register a promo event (coupon, Lightning Deal, etc.) |
| List promo events for an ASIN |
| Measure rank/price lift before, during, and after a promo |
Example Prompts
Once connected via Claude Desktop, try:
"Show me product data for ASIN B0012ZQPKG"
"Track these ASINs: B0012ZQPKG, B001234567"
"Take a snapshot of all tracked ASINs and show me what changed"
"Analyze the BSR trend for B0012ZQPKG over the last 10 days"
"Check if any of my tracked products lost the buy box"
"Add a coupon promo for B0012ZQPKG starting today"
"Show me sales history for B0012ZQPKG"
"What deals or coupons are active for B0012ZQPKG?"
"Show me buy box stats by seller for B0012ZQPKG"
"What are the best sellers in category 3760911?"
"Look up category 3760911"
"How many API tokens do I have left?"
Price Format
All price fields (amazon_price, new_price, buy_box_price) are returned in dollars, not cents. The adapter converts from Keepa's raw cent values automatically.
snapshot.new_price → 35.99 (dollars, ready to display)Do not divide by 100 — the conversion is already done. Keepa's API returns prices in cents (e.g. 3599), but the adapter handles that internally.
Change Detection Severity
When snapshots are compared, changes are classified:
Severity | Triggers |
Critical | Title changed, buy box seller changed, parent ASIN lost/changed (orphaned) |
Warning | Images changed, BSR worsened >20%, Amazon price changed >10%, rating dropped, monthly sales dropped >30%, new offer count went to 0, out-of-stock % increased ≥10 points |
Info | Review count changed, features changed, description changed, new offer count changed >50%, Subscribe & Save status changed |
Development
npm run build # Build with tsup
npm test # Run unit tests
npm run mcpb:validate # Validate MCPB bundle
npm run mcpb:pack # Build release/keepa-adapter-vX.Y.Z.mcpb
npm run test:watch # Watch mode
npm run test:integration # Integration tests (requires KEEPA_API_KEY)
npm run discover # Hit live API and save raw response for schema modeling
npm run export:asins -- --input exports/todd-hydrapak-asins.txtRaw ASIN Export
For one-off catalog dumps, put ASINs in a text file and run:
KEEPA_API_KEY=xxx npm run export:asins -- --input exports/todd-hydrapak-asins.txtThe exporter writes a timestamped exports/keepa-raw-* folder with raw Keepa JSON plus CSVs for product fields, decoded price/rank histories, variations, and offers. By default it skips the higher-token offer scrape; add --buybox --offers 20 when seller/offer detail is needed.
MCPB Release Flow
Version tags create GitHub Releases with the packaged .mcpb attached:
git tag v1.2.0
git push origin v1.2.0The release workflow runs tests, builds the adapter, validates the MCPB manifest, packs the bundle, and uploads release/*.mcpb as a release asset.
MCPB Test Checklist
Run
npm test.Run
npm run build.Run
npm run mcpb:validate.Run
npm run mcpb:pack.Confirm
release/keepa-adapter-v1.2.0.mcpbexists.Confirm
release/keepa-adapter.mcpbexists for stable website download links.Open the
.mcpbfile with Claude Desktop.Enter
KEEPA_API_KEYin the install form.Confirm Keepa tools appear in Claude Desktop.
Run a low-cost call such as
keepa_check_tokens.Temporarily install with a missing or invalid key and confirm the adapter returns a clear API-key error rather than crashing.
Push a version tag and confirm the GitHub Action attaches the
.mcpbto the release.
Troubleshooting
Claude Desktop does not show the tools: restart Claude Desktop, confirm the extension is enabled, and reinstall the
.mcpbif needed.Missing API key errors: reinstall or edit the extension configuration and enter a valid Keepa API key.
Invalid Keepa key or token errors: verify the key works against Keepa directly and has enough token budget.
Node/runtime errors: use the
.mcpbinstall path when possible. For manual installs, confirmnode --versionis18or newer.Build output looks stale: run
npm run build, thennpm run mcpb:packagain.Network/API failures: confirm the machine running Claude Desktop can reach
https://api.keepa.com.Manual JSON config does not work: use an absolute path to
dist/index.js, keepcommandasnode, and restart the MCP client after editing config.
Token Budget
Keepa charges tokens per API call. At 5 tokens/min (default plan):
7,200 tokens/day — 100 ASINs daily is comfortable
Batch up to 100 ASINs per call for efficiency
Token cost is surfaced in every response so Claude/bots can plan ahead
The rate limiter self-adjusts from API response headers
Upgrade your Keepa plan for faster sweeps and on-demand history pulls.
License
MIT
Available Tools
18 toolskeepa_add_promoB
Register a promotional event for an ASIN (coupon, deal, Lightning Deal, etc.).
Inputs: asin (required), promo_type (required), start_date (required), notes, +2 more.
keepa_analyze_bsr_trendB
Analyze BSR trend for ASINs over a period. Flags deterioration patterns.
Inputs: asins (required), domain, period_days.
keepa_analyze_promo_impactA
Overlay a promo with rank/price data to measure lift. Compares before, during, and after the promo period.
Inputs: asin, domain, end_date, promo_id, +1 more.
keepa_check_tokensA
Check remaining Keepa API tokens and refresh rate.
Inputs: no named parameters.
keepa_check_variationsB
Check variation family for orphans, attribute drift, and child changes.
Inputs: asins (required), domain.
keepa_get_best_sellersB
Get the best seller ASIN list for a category.
Inputs: category (required), domain.
keepa_get_buy_boxA
Get buy box ownership info including current seller, FBA status, and offers for ASINs.
Inputs: asins (required), domain.
keepa_get_categoryA
Look up category details including name, parent, children, and product count.
Inputs: category (required), domain.
keepa_get_changesA
Query detected changes for ASINs over a given period.
Inputs: days, asins, domain, severity.
keepa_get_dealsA
Get coupon history, active promotions, and lightning deal data for ASINs.
Inputs: asins (required), domain.
keepa_get_price_historyC
Get price, rank, rating, and review history for ASINs. Returns time series data.
Inputs: asins (required), days, domain.
keepa_get_productA
Fetch current product data for 1-100 ASINs from Keepa. Returns title, brand, prices, BSR, rating, buy box, images, features, variations.
Inputs: asins (required), domain, stats_days.
keepa_get_sales_historyA
Get monthly sales volume time series for ASINs. Shows how many units are sold per month over time.
Inputs: asins (required), domain.
keepa_get_seller_statsA
Get buy box statistics per seller for ASINs, including win percentage, average price, and FBA status.
Inputs: asins (required), domain.
keepa_get_variationsB
Get variation family tree for an ASIN including parent/child relationships and attributes.
Inputs: asin (required), domain.
keepa_list_promosC
List promotional events for an ASIN or all tracked ASINs.
Inputs: asin, domain, active_only.
keepa_take_snapshotA
Fetch and store a snapshot for tracked ASINs. Returns any detected changes vs the previous snapshot.
Inputs: asins, domain.
keepa_track_asinsA
Add ASINs to the monitoring list for daily snapshot collection and change detection.
Inputs: asins (required), label, domain, priority.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Each tool targets a distinct resource or action: product data, price history, buy box, variations, tracking, changes, analysis, promotions, sales, deals, seller stats, best sellers, and category. Overlapping concerns like get_product vs get_price_history and analyze_bsr_trend vs analyze_promo_impact are clearly differentiated by their descriptions.
All 18 tools follow a consistent 'keepa_<verb>_<noun>' snake_case pattern. Verbs (check, get, track, take, analyze, add, list) are used predictably, with no camelCase or mixed conventions.
18 tools is at the upper end of a reasonable scope for a comprehensive Keepa adapter. Each tool addresses a specific feature area, and though slightly above the typical 3-15 range, the breadth of the domain justifies the count.
The set covers core product data, price history, buy box, variations, sales history, best sellers, categories, tracking with snapshots and changes, and promotional analysis. Missing operations like untrack_asins or delete_promo are minor gaps; agents could work around them, but they prevent full lifecycle management.
Maintenance
Related MCP Connectors
Keepa MCP — wraps the Keepa API (keepa.com) for Amazon price + sales-rank HISTORY.
Amazon product API & MCP server: search, prices, ratings, sellers, deals, and ASIN lookup by Canopy.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP server scrapes Amazon product details and reviews, manages a local JSON database, and visualizes intelligence data through a rich dashboard.-
- AlicenseNot gradedqualityDmaintenanceMCP server for Amazon Selling Partner API and Advertising API, enabling access to orders, inventory, pricing, ads, and reports via natural language.1MIT
- AlicenseAqualityDmaintenanceMCP server for tracking Amazon product prices via camelcamelcamel.com, using headless Chromium to bypass Cloudflare protection.31ISC
- FlicenseBqualityDmaintenanceProvides tools to access real-time Amazon data, including product details, reviews, offers, influencer profiles, and deals, through a FastMCP-based server.18-