ebay-browse-mcp

ebay-browse-mcp

Minimal MCP server for searching eBay listings via the Browse API, enabling keyword search with filters, sorting, pagination, and retrieving full item details.

Category
访问服务器

README

ebay-browse-mcp

License: MIT Python 3.10+ MCP eBay Browse API

Minimal MCP server for searching eBay listings via the Browse API. Communicates over stdio JSON-RPC, so it works with any MCP-compatible host (Claude Desktop, Claude Code, Cursor, VS Code Copilot, Cline, Continue, Zed, Windsurf, LM Studio, Goose, and others).

Features

  • Two tools: search_ebay (keyword, filters, sort, pagination) and get_item_details (full item record by ID)
  • OAuth 2.0 client credentials flow, token cached in memory
  • Sandbox or production via a single env var
  • Pure Python, no framework lock-in beyond the official MCP SDK

Install

git clone https://github.com/<your-username>/ebay-browse-mcp.git
cd ebay-browse-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

Configure

  1. Create an eBay developer account at https://developer.ebay.com
  2. Generate an Application Keyset (both sandbox and production keysets are available)
  3. Enable OAuth for the keyset on the eBay developer portal
  4. Copy .env.example to .env and fill in your credentials:
cp .env.example .env
nano .env
EBAY_CLIENT_ID=your_app_id_here
EBAY_CLIENT_SECRET=your_cert_id_here
EBAY_MARKETPLACE=EBAY_GB
EBAY_ENV=sandbox

Sandbox vs production

  • EBAY_ENV=sandbox routes requests to api.sandbox.ebay.com. Sandbox listings are synthetic test data, not real inventory. Start here to verify your OAuth flow and integration end-to-end with no approval friction.
  • EBAY_ENV=production routes to api.ebay.com and returns real eBay listings. To use production you must:
    1. Use the production keyset credentials (different CLIENT_ID and CLIENT_SECRET than sandbox)
    2. Comply with eBay's marketplace account deletion notification process, or apply for an exemption if you do not store eBay user data
    3. Enable OAuth on the production keyset

Switching environments is a one-line change to .env. The credentials for each environment are separate and not interchangeable.

Test the client directly

.venv/bin/python ebay_client.py "macbook pro m4 max 64gb"

Expected output: a list of items with title, price, and URL.

Register with your MCP host

The server speaks stdio JSON-RPC. Add it to your host's MCP configuration with two values:

  • command: absolute path to the venv Python (/absolute/path/to/ebay-browse-mcp/.venv/bin/python)
  • args: ["/absolute/path/to/ebay-browse-mcp/server.py"]

Claude Desktop / Claude Code / Cursor / Windsurf / LM Studio / Cherry Studio / Goose

These hosts share the mcpServers JSON shape. Add the block below to the relevant config file and restart the host.

{
  "mcpServers": {
    "ebay-browse": {
      "command": "/absolute/path/to/ebay-browse-mcp/.venv/bin/python",
      "args": [
        "/absolute/path/to/ebay-browse-mcp/server.py"
      ]
    }
  }
}

Config file locations:

Host Path
Claude Desktop (macOS) ~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows) %APPDATA%\Claude\claude_desktop_config.json
Cursor (global) ~/.cursor/mcp.json
Cursor (per project) .cursor/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Claude Code claude mcp add ebay-browse /absolute/path/to/.venv/bin/python /absolute/path/to/server.py (CLI)

VS Code Copilot

VS Code uses servers (not mcpServers) under the mcp section of settings.json:

{
  "mcp": {
    "servers": {
      "ebay-browse": {
        "command": "/absolute/path/to/ebay-browse-mcp/.venv/bin/python",
        "args": ["/absolute/path/to/ebay-browse-mcp/server.py"]
      }
    }
  }
}

Zed

Zed uses context_servers in ~/.config/zed/settings.json:

{
  "context_servers": {
    "ebay-browse": {
      "command": {
        "path": "/absolute/path/to/ebay-browse-mcp/.venv/bin/python",
        "args": ["/absolute/path/to/ebay-browse-mcp/server.py"]
      }
    }
  }
}

Continue, Cline and others

Continue (~/.continue/config.json) uses an mcpServers array; Cline uses cline_mcp_settings.json with the same shape as Claude Desktop. Check your host's documentation for the exact file path. The command and args are always the same.

Once registered, restart the host and the search_ebay and get_item_details tools become available.

Tool: search_ebay

Parameter Type Required Description
query string yes Search keyword, e.g. "macbook pro m4 max 64gb"
limit integer no (default 10) Number of results, 1-200
filter_expr string no Browse API filter syntax, see below
sort string no price, -price, newlyListed, endingSoonest

Returns a list of items. Each item includes an item_id field (format v1|<numeric>|0) that can be passed to get_item_details for the full record.

Filter examples

Goal filter_expr
Price range in GBP price:[100..500],priceCurrency:GBP
New condition only conditions:{NEW}
Buy It Now only buyingOptions:{FIXED_PRICE}
UK sellers only itemLocationCountry:GB

Combine with commas: price:[800..3500],priceCurrency:GBP,itemLocationCountry:GB.

Full reference: https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html

Tool: get_item_details

Parameter Type Required Description
item_id string yes REST item ID from search_ebay, format `v1
fieldgroups string no COMPACT (price/availability only), PRODUCT (default plus product catalogue), or omit for full details

Returns the full item record: title, description, item specifics (aspects), all images, condition, brand, MPN, category path, buying options, availability, seller details, item location, shipping options with estimated delivery dates, and return terms.

Typical chain: an LLM calls search_ebay to find candidates, then get_item_details on the promising ones to read full descriptions or shipping costs before recommending.

Project structure

ebay-browse-mcp/
├── .env.example         template; copy to .env
├── .gitignore
├── README.md
├── requirements.txt
├── evaluation.xml       10 read-only LLM eval questions
├── ebay_client.py       Browse API client (no MCP dependency)
└── server.py            FastMCP server, wraps ebay_client.search_items

Evaluation

evaluation.xml contains 10 read-only questions designed for LLM evaluation harnesses. Questions target stable response properties (shape, field values, filter behaviour) rather than specific listings, because eBay inventory changes constantly. Each question has a single verifiable string answer.

Comparison with similar projects

Three open-source eBay MCP servers exist as of mid-2026. They target different use cases. Pick the one that fits yours:

ebay-browse-mcp (this) YosefHayim/ebay-mcp CooKey-Monster/EbayMcpServer
Best for Buyers: searching public listings Sellers: managing inventory, orders, ads Minimal auction listing
eBay API Browse API (buyer-side) Sell APIs (seller-side) Browse API, single endpoint
Tools 2 (search_ebay, get_item_details) with filters, sort, pagination 325 tools, 100% Sell API coverage 1 (list_auction)
Language Python TypeScript / Node 18+ Python (uv)
Setup venv + pip + .env npm install -g ebay-mcp + interactive wizard uv pip install
Auth Client credentials Client credentials + user OAuth (refresh tokens, 10k-50k req/day) Client credentials
Active maintenance Yes Yes (frequent releases) No (2 commits, stale)
Footprint ~190 lines of code 30+ files, src/api + src/tools + src/auth + scripts ~5 files

Pick ebay-browse-mcp (this project) if: you want an LLM to search eBay listings with filters (price range, condition, location, sort), with minimal setup and a small surface area. The goal is a focused tool that does one thing well.

Pick YosefHayim/ebay-mcp if: you run an eBay store and want an LLM to manage your inventory, fulfil orders, run marketing campaigns, or pull analytics. It is the most complete Sell-API integration available.

Pick CooKey-Monster/EbayMcpServer if: you want the absolute minimum dependency footprint and only need a single keyword lookup. Note that the repo has not been updated for over a year as of mid-2026.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选