Skip to main content
Glama
ebay-mcp
by jnslmk

ebay-mcp

An MCP server that lets an LLM search and inspect eBay listings through the official Browse API. Read-only, buyer-side: it searches and reads listings, it does not bid or buy.

This is a fork of Suat Oneren's ebay-browse-mcp, which speaks stdio. The fork keeps the two tools and their response shaping and swaps the transport for streamable-HTTP (:8000/mcp) plus a /healthz probe, so it runs as a self-hosted container behind an MCP client such as LibreChat — the same shape as its sibling kleinanzeigen-mcp.

Unlike Kleinanzeigen (no public API, so scraping is unavoidable), eBay offers a sanctioned API — so this server hits it directly: no headless browser, no bot-detection fragility.

Tools

Tool

What it does

search_ebay

Search by keyword with optional min_price/max_price (or a raw price filter via filter_expr — not both) plus condition, buying option and seller-country filters, and sort. Returns listing summaries + item_ids. query is ANDed against the listing title only, so it wants 2-4 short product keywords, not a sentence — a zero-result response explains why and may already include one narrowed retry (which preserves any price filter).

get_item_details

Full record for one item_id: description, item specifics, images, shipping options, return terms, seller.

Related MCP server: Tavily Web Search MCP Server

Configuration

Set an eBay Developer keyset (free — https://developer.ebay.com/my/keys):

Env var

Default

Meaning

EBAY_CLIENT_ID

—

App ID (Client ID) from your keyset

EBAY_CLIENT_SECRET

—

Cert ID (Client Secret) from your keyset

EBAY_MARKETPLACE

EBAY_DE

Marketplace: EBAY_DE, EBAY_US, EBAY_GB, …

EBAY_ENV

sandbox

sandbox or production

EBAY_RETRY_CAP

8

Upper bound (seconds) on retry sleeps, including a server-sent Retry-After

MCP_TRANSPORT

http

http (streamable-HTTP) or stdio

MCP_HOST / MCP_PORT / MCP_PATH

0.0.0.0 / 8000 / /mcp

HTTP bind

Sandbox has almost no real inventory — use it to prove the wiring, then set EBAY_ENV=production (with a production, OAuth-enabled keyset) for real results.

Run

docker run --rm -p 8000:8000 \
  -e EBAY_CLIENT_ID=... -e EBAY_CLIENT_SECRET=... \
  -e EBAY_MARKETPLACE=EBAY_DE -e EBAY_ENV=production \
  ghcr.io/jnslmk/ebay-mcp:latest
# MCP endpoint: http://localhost:8000/mcp   health: http://localhost:8000/healthz

Local (stdio, for desktop MCP clients)

python3 -m venv .venv && .venv/bin/pip install .
cp .env.example .env   # fill in your keyset
MCP_TRANSPORT=stdio .venv/bin/ebay-mcp

Quick client-free check of the keyset:

.venv/bin/python -m ebay_mcp.ebay_client "raspberry pi 5"

License

MIT. See LICENSE — retains the original upstream copyright.

Available Tools

2 tools
get_item_detailsGet Item DetailsA

Retrieve the shaped detail record for a single eBay item.

Use after search_ebay surfaces something worth a closer look: full description, item specifics (aspects), all images, shipping options, return policy, seller and location.

Inputs: item_id (required), fieldgroups. Returns: object

search_ebaySearch EbayA

Search eBay listings by keyword, with optional filters and sorting.

query is a strict AND over 2-4 short keywords matched against the listing TITLE only (see the query field's description) — a zero-result response carries a hint explaining why instead of a bare empty list, and one automatic narrowed retry may already have run (see fallback_query). Returns listing summaries — id, title, price, condition, seller reputation, location, thumbnail and URL. Pass an item's item_id to get_item_details for the full record. Prices and currency follow the configured marketplace. min_price/max_price are a convenience over filter_expr's price range syntax — see those parameters' own descriptions for the rule against combining the two.

Inputs: query (required), sort, limit, max_price, +3 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: search_ebay discovers listings, while get_item_details retrieves full details for a specific item. No overlap or ambiguity in their roles.

    Naming Consistency5/5

    Both names follow a consistent verb_noun pattern with snake_case (search_ebay, get_item_details), making them predictable and readable.

    Tool Count3/5

    With only 2 tools, the server feels thin for a domain as broad as eBay, but the two tools cover a basic search-and-detail workflow without redundancy.

    Completeness3/5

    The surface covers search and retrieval of item details, sufficient for a browsing use case, but lacks advanced features like pagination, seller-specific queries, or listing operations. There are notable gaps for more complex workflows.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Minimal MCP server for searching eBay listings via the Browse API, enabling keyword search with filters, sorting, pagination, and retrieving full item details.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that lets an LLM search Geizhals, a leading German/DACH price-comparison site, for the cheapest offers on new products.
      3
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      An MCP server that exposes Discord bot actions as tools for LLM clients.
      29
      1
      -