Install
$ agentstack add mcp-cosjef-keepa-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Keepa MCP Server
A Model Context Protocol (MCP) server that gives Claude access to Keepa's product and sales data through a more approachable, conversational interface. It simplifies Keepa's complex, engineer-oriented design, making it easier to explore product research, sales trends, inventory signals, and competitive analytics without needing to master Keepa's native UI.
✨ Core Capabilities
📊 Advanced Sales Velocity & Inventory Optimization
- 🚀 Sales Velocity Analysis: Identify fast-moving products that generate cash flow (20+ units/day)
- 📈 Inventory Turnover Intelligence: Avoid slow movers that tie up capital ( 💬 Natural Language Interface: Simply ask Claude questions - no JSON or technical syntax required! Claude automatically uses these tools based on your requests.
🔍 Core Product Intelligence
keepa_product_lookup- Deep product analysis with included Statistics Object analyticskeepa_batch_product_lookup- Portfolio analysis for up to 100 ASINs simultaneouslykeepa_price_history- Historical pricing trends and market stability analysis
🎯 Advanced Market Discovery
keepa_product_finder- 20+ advanced filters for opportunity discoverykeepa_category_analysis- Comprehensive market intelligence with opportunity scoringkeepa_search_deals- Enhanced deal discovery with profit potential analysiskeepa_best_sellers- Category rankings and trending product identification
📊 Sales Velocity & Cash Flow Optimization
keepa_sales_velocity- Industry-standard velocity calculations for inventory turnoverkeepa_inventory_analysis- Portfolio management with stockout risk assessment
🏢 Competitive Intelligence
keepa_seller_lookup- Seller performance analysis and competitive research
🪙 Token Management
keepa_token_status- Check remaining API tokens and account status
Prerequisites
- Keepa API Key: Sign up at https://keepa.com/#!api
- Keepa requires a paid subscription with token-based pricing
- Different endpoints have different token costs
- Product history calls are more expensive than basic product info
- Node.js: Version 18 or higher
Installation
- Clone or download this repository
- Navigate to the project directory:
``bash cd keepa_mcp ``
- Install dependencies:
``bash npm install ``
- Build the TypeScript code:
``bash npm run build ``
- You'll configure your Keepa API key in the Claude Desktop config (next section)
Configuration
Environment Variables
The MCP server accepts these environment variables (configured in Claude Desktop):
KEEPA_API_KEY(required): Your Keepa API keyKEEPA_RATE_LIMIT_DELAY(optional): Delay between requests in milliseconds (default: 1000)KEEPA_TIMEOUT(optional): Request timeout in milliseconds (default: 30000)
Claude Desktop Configuration
Location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Note: If the file doesn't exist, create it. Some installations may have config.json instead - copy it to the correct filename:
cp ~/Library/Application\ Support/Claude/config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"keepa": {
"command": "node",
"args": ["/path/to/keepa_mcp/dist/index.js"],
"env": {
"KEEPA_API_KEY": "your_keepa_api_key_here"
}
}
}
}
Replace /path/to/keepa_mcp with your actual path and your_keepa_api_key_here with your Keepa API key.
⚠️ Important: After making any changes to your claude_desktop_config.json file, you must completely close Claude Desktop (Cmd+Q on macOS or Alt+F4 on Windows) and restart it for the changes to take effect.
Grant MCP Server Permissions
When you first start Claude Desktop with the MCP server configured, you'll see a permission dialog. Click "Allow" to grant the server access as needed:
You must grant these permissions for the Keepa tools to appear and function properly.
🔧 Troubleshooting
If MCP tools don't appear in Claude Desktop:
- Check Claude Desktop version: Ensure you're running version 0.7.0 or later (MCP support required)
- Click "Claude" menu → "About Claude"
- Verify config file location and format:
```bash # Check if file exists ls -la ~/Library/Application\ Support/Claude/claudedesktopconfig.json
# Validate JSON format cat ~/Library/Application\ Support/Claude/claudedesktopconfig.json ```
- Test MCP server manually:
``bash cd /path/to/keepa_mcp npm run build KEEPA_API_KEY=your_key_here node dist/index.js ``
- Complete restart: Force quit Claude Desktop (Cmd+Q) and relaunch
- Simplified config: Try removing other settings and use minimal config:
``json { "mcpServers": { "keepa": { "command": "node", "args": ["/full/path/to/keepa_mcp/dist/index.js"], "env": { "KEEPA_API_KEY": "your_keepa_api_key_here" } } } } ``
- Check for logs: Look for error messages in Claude Desktop console or system logs
Common Issues:
- Wrong file path: Ensure the path to
dist/index.jsis absolute and correct - Missing build: Run
npm run buildafter any code changes - Invalid JSON: Use a JSON validator to check config file syntax
- Missing API key: Make sure
KEEPA_API_KEYis set in the env section of your config
🚀 Usage Examples
✅ Verify MCP Server Connection
Once you've configured everything and restarted Claude Desktop, you should see your Keepa tools available:
The Keepa MCP server provides 10 powerful tools for Amazon marketplace intelligence, sales velocity analysis, and inventory management.
If you see these tools in Claude Desktop, your MCP server is successfully connected and ready to use!
> ✅ Verify Setup: After configuration, ask Claude any of these questions to test your MCP server connection.
🎯 Sales Velocity Optimization
Find Cash Flow Champions:
"Use Keepa to find products in Electronics that sell 50+ units daily with high inventory turnover"
Avoid Cash Flow Killers:
"Show me slow-moving products in my category that tie up capital for 60+ days using Keepa"
Portfolio Health Check:
"Analyze my current inventory for stockout risks and cash flow optimization using Keepa ASINs: [your ASINs]"
💎 Market Opportunity Discovery
Find High-Opportunity Niches:
"Use Keepa to find low-competition products in Home & Kitchen with 4+ star ratings and 1000+ monthly sales"
Category Market Intelligence:
"Analyze the Pet Supplies category for market opportunities, competition levels, and profit potential using Keepa"
Competition Gap Analysis:
"Find products with high sales but fewer than 5 sellers in the Beauty category using Keepa"
🔥 Deal Hunting & Profit Analysis
High-Margin Deal Discovery:
"Find current Amazon Lightning Deals with 30%+ discounts and high profit potential using Keepa"
Prime Deal Intelligence:
"Show me Prime-exclusive deals under $100 with 4+ star ratings that could be profitable using Keepa"
📊 Advanced Analytics & Forecasting
Seasonal Planning:
"Analyze seasonal patterns for Holiday products and recommend inventory levels for Q4 using Keepa"
Performance Benchmarking:
"Compare my product's sales velocity against top performers in its category using Keepa ASIN: [your ASIN]"
Market Trend Analysis:
"Identify trending products in Electronics with accelerating sales velocity using Keepa"
🪙 Token Management & Monitoring
Check Token Status:
"Check my Keepa token status"
Monitor Usage:
"How many Keepa tokens do I have left?"
🎯 Example Output
🔍 Product Finder Search Results
Perfect! I found exactly what you're looking for. Here are the top 5 Industrial & Scientific products that meet all your criteria (4.4-5.0 star rating, 4-5 sellers, 2000+ monthly sales), sorted by highest monthly sales:
Top 5 High-Volume Products:
1. 🏆 MedPride Nitrile Exam Gloves (Large) - B00GS8VGP6
• Monthly Sales: ~30,000 units 🔥
• Rating: 4.4-5.0 stars
• Sellers: 4 (medium competition)
• Product: Powder-free nitrile exam gloves, 100-pack
2. 🧴 Zep Industrial Sprayer Bottle - B08JSKYBKQ
• Monthly Sales: ~10,000 units
• Rating: 4.4-5.0 stars
• Sellers: 5 (medium competition)
• Product: 48oz sprayer with 30ft range, adjustable nozzle
3. 💍 BYASKZIV Ultrasonic Jewelry Cleaner - BOD7L961CR
• Monthly Sales: ~10,000 units
• Rating: 4.4-5.0 stars
• Sellers: 4 (medium competition)
• Product: 48KHz cleaner with dual modes, stainless steel tank
4. MedPride Nitrile Gloves (X-Large) - B00GS8VIKE
• Monthly Sales: ~10,000 units
• Rating: 4.4-5.0 stars
• Sellers: 4 (medium competition)
• Product: Powder-free nitrile exam gloves, 100-pack
5. MedPride Nitrile Gloves (Small) - B00GS8W2HC
• Monthly Sales: ~10,000 units
• Rating: 4.4-5.0 stars
• Sellers: 4 (medium competition)
• Product: Powder-free nitrile exam gloves, 100-pack
Key Insights:
• MedPride gloves dominate with the highest sales volume (30K monthly for Large size)
• Medical/safety products show strong consistent demand
• Medium competition level across all top products (4-5 sellers)
• Consumable products tend to have higher sales volumes
Would you like me to get more detailed information about any of these specific products, including price history or current pricing data?
📈 Sales Velocity Analysis Output
✅ Electronics Portfolio Analysis Complete!
📊 Portfolio Overview:
- Total Products: 25
- Average Turnover Rate: 18.5 times/year
- Portfolio Health: Excellent - High velocity, low risk
📈 Performance Metrics:
- Average Velocity: 145.2 units/month
- Total Revenue Velocity: $2,847.33/day
- Average Days Inventory: 22 days
⚠️ Risk Assessment:
- High Risk Products: 2 (8%)
- Fast Movers (≥30/month): 76%
- Slow Movers ( **💡 Pro Tip**: The MCP server automatically validates category IDs and suggests alternatives if you use an invalid one.
---
## 🌍 **Multi-Marketplace Support**
**Global Intelligence Across 11 Amazon Marketplaces:**
- 🇺🇸 **United States** (amazon.com) - *Default and most comprehensive*
- 🇬🇧 **United Kingdom** (amazon.co.uk)
- 🇩🇪 **Germany** (amazon.de)
- 🇫🇷 **France** (amazon.fr)
- 🇯🇵 **Japan** (amazon.co.jp)
- 🇨🇦 **Canada** (amazon.ca)
- 🇮🇹 **Italy** (amazon.it)
- 🇪🇸 **Spain** (amazon.es)
- 🇮🇳 **India** (amazon.in)
- 🇲🇽 **Mexico** (amazon.com.mx)
- 🇨🇳 **China** (amazon.cn)
> **💬 Simple Usage**: Just mention the country: *"Find deals in German Amazon using Keepa"*
---
## 💰 **Token Usage & Cost Information**
The Keepa API operates on a token-based system where each API query consumes tokens from your account. Different endpoints consume different amounts of tokens, and your usage is tracked across all requests.
### **📊 Token Usage Guidelines**
- **Product Lookup**: ~1 token (includes Statistics Object data at no additional cost)
- **Market Analysis**: ~5-15 tokens (depending on category size)
- **Deal Discovery**: ~3-8 tokens (varies by filters)
- **Velocity Analysis**: ~2-5 tokens (includes portfolio metrics)
### **💡 Cost Optimization Features**
- **Statistics Object Integration**: Sales velocity and inventory analytics included with product lookups (no additional tokens required)
- **Smart Batching**: Process up to 100 ASINs in single requests to minimize token usage
- **Efficient Caching**: Built-in rate limiting and request optimization
### **⚠️ IMPORTANT: Token Exhaustion Behavior**
**Critical Limitation**: When your Keepa API tokens are exhausted (≤0), the MCP server will fail and return "No products found" messages instead of meaningful data.
**What Happens:**
- ❌ **Searches return empty results** (not actual empty categories)
- ❌ **No error indicating token exhaustion** (appears as failed searches)
- ❌ **All tools appear broken** until tokens refresh
**How to Identify:**
- Use the dedicated token status tool: Ask Claude *"Check my Keepa token status"*
- Multiple categories returning "No products found"
- Recently working searches suddenly failing
- Low token warnings in search results
**Solutions:**
- **Wait for token refresh** (daily or monthly depending on your Keepa plan)
- **Upgrade your Keepa plan** for more tokens
- **Check your usage** at [Keepa API Dashboard](https://keepa.com/#!api)
**Low Token Warning**: The server warns when you have **👥 For Regular Users**: Skip this section - just ask Claude questions in natural language!
> **🛠️ For Developers**: Technical details for integration and customization.
### **🛠️ Development Scripts**
```bash
npm run build # Build TypeScript to JavaScript
npm run dev # Development mode with auto-reload
npm start # Start the built server
npm run lint # Run ESLint
npm run type-check # Check TypeScript types
📚 Technical Documentation
- API Types: See [types.ts](src/types.ts) for complete TypeScript definitions
- MCP Tools: See [tools.ts](src/tools.ts) for all 10 tool implementations with Zod validation
- Analytics Engine: See [keepa-client.ts](src/keepa-client.ts) for advanced algorithms
🚀 Get Started in 3 Steps
1. Get Your Keepa API Key
Sign up at https://keepa.com/#!api
2. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"keepa": {
"command": "node",
"args": ["/path/to/keepa_mcp/dist/index.js"],
"env": {
"KEEPA_API_KEY": "your_keepa_api_key_here"
}
}
}
}
3. Ask Claude Smart Questions
"Use Keepa to find fast-moving products in Electronics with high profit potential"
📞 Support & Resources
- 🛠️ MCP Server Issues: Create Issue on GitHub
- 📚 Keepa API Questions: Keepa Support
- 🔗 MCP Protocol: Official MCP Documentation
📄 License
MIT License - See [LICENSE](LICENSE) file for details.
🚀 Ready to transform your Amazon marketplace intelligence? Get started today!
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: cosjef
- Source: cosjef/keepa_MCP
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.