ebay-mcp
Enables Claude to search eBay listings, analyze price distributions, find deals, and generate market research overviews via the Model Context Protocol.
README
ebay-mcp
Expose eBay's marketplace to Claude over the Model Context Protocol. Claude can search active listings, analyse price distributions, surface deals priced below the market median, and produce a market-research overview — all as structured JSON it can reason about.
It answers questions like:
- What does a used Nintendo Switch OLED actually sell for right now?
- Find me listings priced well below the going rate.
- Give me a market overview: price spread, condition mix, who's selling, and shipping.
How it works
OAuth2 (client credentials)
│
┌────────┐ tools ┌──────┴───────┐ HTTPS ┌──────────────────┐
│ Claude │ ────────► │ ebay-mcp │ ────────► │ eBay Buy Browse │
│ │ ◄──────── │ MCP server │ ◄──────── │ API │
└────────┘ JSON └──────────────┘ └──────────────────┘
The server authenticates to eBay with the OAuth2 client-credentials grant (caching and refreshing the application token), calls the Buy Browse API, normalises the verbose responses into typed objects, and runs price/market analysis locally before handing JSON back to Claude.
The code is layered so the analysis is testable without the network:
config.py— environment-driven configuration.models.py— typed value objects parsed from eBay JSON.auth.py— OAuth token caching/refresh (concurrency-safe).client.py— the only module that talks to eBay; retries + filter grammar.analysis.py— pure price/deal/market functions.server.py— the MCP tools.
Tools
| Tool | What it does |
|---|---|
search_products |
Search active listings (sort, condition, price range, free-shipping filters). |
analyze_prices |
Price distribution for a query: min/max, mean, median, p25/p75/p90, stdev. |
find_deals |
Listings priced at least N% below the market median, ranked by discount. |
market_research |
Full overview: price stats, condition mix, price-by-condition, shipping, seller locations, observations. |
get_item_details |
Full details for a single listing by item id. |
All prices are isolated to a single currency and, unless noted, reflect total cost (item + shipping).
Setup
Requires Python 3.10+ and an eBay developer account.
-
Create an application at https://developer.ebay.com/my/keys and copy the App ID (Client ID) and Cert ID (Client Secret).
-
Install:
git clone https://github.com/luke-nielsen/ebay-mcp.git cd ebay-mcp python3 -m venv .venv && source .venv/bin/activate pip install -e ".[dev]" -
Configure credentials (copy
.env.exampleto.env, or export directly):export EBAY_CLIENT_ID=your-app-id export EBAY_CLIENT_SECRET=your-cert-id -
Verify connectivity:
ebay-mcp check ebay-mcp search "nintendo switch oled" --limit 5 ebay-mcp research "airpods pro 2"
Connecting to Claude
Add the server to your MCP host. For Claude Code:
claude mcp add ebay -- ebay-mcp serve
Or use the bundled .mcp.json (it reads EBAY_CLIENT_ID / EBAY_CLIENT_SECRET
from your environment). The server speaks MCP over stdio.
Configuration
| Variable | Default | Description |
|---|---|---|
EBAY_CLIENT_ID |
— | App ID (Client ID). Required. |
EBAY_CLIENT_SECRET |
— | Cert ID (Client Secret). Required. |
EBAY_ENVIRONMENT |
production |
production or sandbox. |
EBAY_MARKETPLACE_ID |
EBAY_US |
e.g. EBAY_GB, EBAY_DE, EBAY_AU. |
EBAY_DELIVERY_COUNTRY |
— | Buyer country for shipping estimates. |
EBAY_DELIVERY_POSTAL_CODE |
— | Buyer postal code for shipping estimates. |
EBAY_TIMEOUT |
20 |
Per-request timeout (seconds). |
EBAY_MAX_RETRIES |
3 |
Retry attempts for transient failures. |
Development
pip install -e ".[dev]"
pytest # run the test suite
ruff check . # lint
The networking layer is exercised with httpx.MockTransport, so the full suite
runs offline and needs no credentials.
Notes & limitations
- Uses the Buy Browse API, which covers active listings. Sold/completed price history requires eBay's restricted Marketplace Insights API and is out of scope here; "market" statistics are therefore over current asking prices.
- The client-credentials token grants access to public search only — no user-specific or order data.
- eBay rate limits the Browse API (default ~5,000 calls/day); the analysis tools spend one call each.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。