ebay-lens
Integrates with eBay's official Browse and Taxonomy APIs to search listings by keyword or image, retrieve item details and photo sets, zoom into listing photos, and look up categories and aspects. Supports filtering by price, condition, buying format, location, shipping, and other aspects; it is read-only and does not support buying, bidding, offers, or messaging.
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., "@ebay-lens Find used Leica M6 cameras under $3000 with free shipping and show me the photos"
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.
ebay-lens
A local MCP server that lets Claude search eBay and look at the photos: thumbnail contact sheets of whole result pages, full listing photo sets, full-resolution zoom crops (tags, nameplates, flaws), and visual-similarity search from a photo or an existing listing.
It is read-only and uses only eBay's official APIs (Browse + Taxonomy) with your own developer keys. It cannot buy, bid, offer, or message, and it stores nothing on disk.
Tools
Tool | What it does |
| Keyword search with price, condition, buying-format, aspect (Size, Brand…), location, local-pickup-radius and free-shipping filters; sort by price/newest/ending/distance. Returns numbered results plus a contact-sheet image of thumbnails. |
| Visually similar listings from a local photo ( |
| Full details: condition notes, item specifics (measurements, MPN…), seller description (HTML stripped), shipping, returns, location, variations. Accepts `v1 |
| Downloads a listing's photos (up to 12 per call, paged) and returns them as images Claude sees. |
| Crops one photo at eBay's max (1600 px) resolution, e.g. |
| Category ids from a description, which aspect filters need. |
| Valid aspect names/values for a category (Size Type, Inseam, Voltage, Phase…). |
Related MCP server: mcp-ebay
Setup
1. eBay developer keys (free)
Join at https://developer.ebay.com and create an application keyset under Production. App ID =
EBAY_CLIENT_ID, Cert ID =EBAY_CLIENT_SECRET.eBay may ask you to configure Marketplace Account Deletion notifications before enabling production keys. This tool stores no eBay user data, so the exemption option applies.
Default quota is 5,000 Browse calls/day. A search is 1 call; photos/thumbnails come from eBay's image CDN and are not API calls.
2. Install
Requires Python 3.10+. Install into a dedicated environment, not a shared or system one: mcp
pulls in a fair number of dependencies.
Option A: uv
cd ebay-lens
uv syncOption B: plain venv + pip (no uv needed)
cd ebay-lens
python3 -m venv .venv # python3 must be 3.10+; check with: python3 --version
.venv/bin/pip install -e .If your default python3 is older (e.g. an active conda base on 3.9), create the venv with a
newer interpreter's full path instead, e.g. ~/miniconda3/envs/py312/bin/python -m venv .venv
or /usr/bin/python3.10 -m venv .venv. The venv keeps using that interpreter, so nothing needs
activating later.
On Windows (PowerShell), the venv puts executables in Scripts\ instead of bin/:
cd ebay-lens
py -3.12 -m venv .venv # any installed 3.10+ works; list them with: py -0
.venv\Scripts\pip install -e .Check the install with .venv/bin/python tests/test_mocked.py (Windows:
.venv\Scripts\python tests\test_mocked.py). No eBay keys needed.
3. Connect
Claude Code (available in all projects):
# Option A (uv)
claude mcp add ebay-lens -s user \
-e EBAY_CLIENT_ID=YOUR_APP_ID -e EBAY_CLIENT_SECRET=YOUR_CERT_ID \
-e EBAY_POSTAL_CODE=YOUR_POSTAL_CODE \
-- uv run --directory /absolute/path/to/ebay-lens ebay-lens
# Option B (venv): point straight at the venv's entry point
claude mcp add ebay-lens -s user \
-e EBAY_CLIENT_ID=YOUR_APP_ID -e EBAY_CLIENT_SECRET=YOUR_CERT_ID \
-e EBAY_POSTAL_CODE=YOUR_POSTAL_CODE \
-- /absolute/path/to/ebay-lens/.venv/bin/ebay-lensClaude desktop app (macOS, Windows, Linux):
Open the config file. In the app, go to Settings → Developer → Edit Config. That works on every OS and creates the file if it doesn't exist. Or open it directly:
OS
Config file
macOS
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows
%APPDATA%\Claude\claude_desktop_config.jsonLinux
~/.config/Claude/claude_desktop_config.jsonAdd the server. Put
ebay-lensunder"mcpServers". If the file already has content (other servers or settings), merge this entry in rather than replacing the file. Use thecommand/argsthat match how you installed:uv (any OS):
{ "mcpServers": { "ebay-lens": { "command": "uv", "args": ["run", "--directory", "/absolute/path/to/ebay-lens", "ebay-lens"], "env": { "EBAY_CLIENT_ID": "YOUR_APP_ID", "EBAY_CLIENT_SECRET": "YOUR_CERT_ID", "EBAY_POSTAL_CODE": "YOUR_POSTAL_CODE" } } } }The app is launched from your desktop, not a terminal, so it may not see the
PATHfrom your shell. If it can't finduv, use uv's full path ascommand(find it withwhich uvon macOS/Linux,where uvon Windows).venv, macOS/Linux: replace
command/argswith:"command": "/absolute/path/to/ebay-lens/.venv/bin/ebay-lens", "args": []venv, Windows: replace
command/argswith (backslashes must be doubled in JSON; forward slashes also work):"command": "C:\\Users\\you\\ebay-lens\\.venv\\Scripts\\ebay-lens.exe", "args": []Keep the same
envblock in every case.Restart the app fully. Closing the window isn't enough: quit with Cmd+Q on macOS, or right-click the tray icon → Quit on Windows/Linux, then reopen it.
Check it connected. Settings → Developer shows each server's status. If
ebay-lensfailed, look at themcp*.logfiles:OS
Logs
macOS
~/Library/Logs/Claude/Windows
%APPDATA%\Claude\logs\Linux
~/.config/Claude/logs/The most common error is
ENOENT(on Linux:Failed to spawn process: No such file or directory), meaning thecommandcan't be found. Check that it's a real absolute path, not the/absolute/path/to/...placeholder, and that the program exists: with"command": "uv"this also happens when uv isn't installed at all. In that case use the venv variant above.
A local stdio server works in Claude Code and the desktop app, not in claude.ai in a browser or on mobile. Those would need it hosted as a remote HTTPS connector.
Environment variables
Var | Default | Purpose |
| required | Production keyset |
| unset | Accurate shipping estimates, |
|
| e.g. |
|
| Country paired with the postal code |
Example prompts
"Find a used waxed cotton jacket in size L under $150. Check the contact sheet, then inspect the best few for wear, torn linings and broken zips, and zoom on the tags to confirm the brand and estimate its age."
"Here's a photo of a jacket I like (
photo.jpg). Find similar ones on eBay in men's size L.""Find a used mechanical keyboard under $80 with free shipping. Check the contact sheet, then look through the photos of the best few for missing keycaps, yellowing or worn legends, and compare them."
"Show me listings similar to https://www.ebay.com/itm/123456789012 but cheaper."
eBay terms: how this stays compliant
Official API, your keys. eBay's User Agreement (effective Feb 20 2026) prohibits scrapers and LLM-driven bots accessing eBay without eBay's express permission. The developer program and API License Agreement are that permission. This server never scrapes ebay.com pages.
No purchasing paths. The code calls only Browse search/searchByImage/getItem and Taxonomy lookups. There are no Order, Offer/bidding, or Sell endpoints. Buying happens with you on ebay.com.
No Restricted APIs. The API License restricts feeding "Restricted APIs" (market trends, pricing insights, AI-generated content, e.g. Marketplace Insights / sold-price data) into third-party AI tools. None are used. Don't add sold-listing tools without eBay's written consent.
No training, no persistence. Data is used only to answer your query. There's a 10-minute in-memory item cache; nothing is written to disk.
Not legal advice. Re-read the API License Agreement if you extend this.
Testing
.venv/bin/python tests/test_mocked.py (or uv run python tests/test_mocked.py) drives every
tool through a real MCP client session against a mocked eBay API: filter construction,
auth/token caching, contact sheets, photo paging, zoom, image search, variation listings, and an
assertion that no non-GET call except token and searchByImage is ever made. It writes sample
images to tests/out/ (git-ignored).
Known limits
searchByImageis marked experimental by eBay: quality varies, and addingcategory_idhelps a lot.Aspect filters need exactly one category id (an eBay rule).
Some listings only have low-resolution photos; zoom reports the source size.
Available Tools
7 toolsget_ebay_category_aspectsB
List the item-specific aspects for a category (e.g. Size, Size Type, Chest Size, Inseam, Brand; or Voltage, Phase, Horsepower) and common values, for use in search aspects filters.
Inputs: category_id (required), max_values. Returns: result
get_ebay_itemA
Full listing details: price, condition notes, item specifics (size, measurements, brand, model, MPN...), seller description, shipping, returns, location, variations, photo count. item: RESTful id (v1|...|0), numeric legacy id, or an ebay.com/itm/ URL.
Inputs: item (required), description_chars. Returns: result
get_ebay_item_photosB
Download a listing's photos and return them as images for visual inspection. Photos are numbered from 0 (0 = main photo). Page with start; max_px 512-1600.
Inputs: item (required), start, max_px, max_photos. Returns: result
search_ebayB
Keyword search of active eBay listings, returning numbered results and a thumbnail contact sheet.
aspects: item-specific filters such as {"Size": "M", "Brand": "Patagonia|Arc'teryx"} ('|' = OR); requires category_id. Use show_refinements=True to discover valid aspect names/values. buying_options: defaults to fixed_price + auction (eBay alone would return only Buy It Now). local_pickup_radius_miles: only items offering local pickup within this radius of the server's EBAY_POSTAL_CODE (useful for heavy equipment). limit: 1-50 recommended (contact sheet gets unwieldy above ~30).
Inputs: sort, limit, query, offset, +11 more. Returns: result
search_ebay_by_imageA
Visual-similarity search (eBay's experimental searchByImage). Give exactly one source: image_path (local file), image_url, or similar_to_item (item id/URL; uses its main photo). Adding category_id greatly improves relevance. Results come with a contact sheet.
Inputs: sort, limit, offset, aspects, +9 more. Returns: result
suggest_ebay_categoriesA
Suggest eBay category ids for a description (e.g. 'men's waxed cotton jacket', 'hydraulic gear pump'). Use the id as category_id in searches and aspect filters.
Inputs: query (required). Returns: result
zoom_ebay_photoA
Crop one listing photo at full resolution (eBay's largest, 1600px) to read tags, labels, nameplates, serial plates, or inspect a flaw. box = [x0, y0, x1, y1] as fractions of the photo (e.g. [0.5, 0.0, 1.0, 0.5] = top-right quarter).
Inputs: box (required), item (required), photo_index (required), max_px. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Keyword search vs. visual-similarity search are clearly separated, as are item metadata, photo download, and photo zoom. The only mild overlap is between get_ebay_item (which returns photo count), get_ebay_item_photos, and zoom_ebay_photo, but the granularity levels are described well enough to choose correctly. suggest_ebay_categories vs. get_ebay_category_aspects is a clean split (discover id vs. discover filters for an id).
All tools use snake_case with a consistent verb_ebay_noun shape (get_ebay_item, zoom_ebay_photo, suggest_ebay_categories, get_ebay_category_aspects). Minor deviations: search_ebay puts the object last and search_ebay_by_image adds a prepositional suffix. Still highly predictable and readable.
Seven tools covering search, visual search, detail retrieval, media inspection, and category/aspect discovery—each earns its place in the research workflow. No obvious redundancy or padding.
The find-inspect-verify loop is fully covered: discover categories/aspects → search (keyword or image) → pull item details → download and zoom photos. Notable gap: no access to sold/completed listings or seller feedback, which limits price valuation and seller vetting, though agents can work around it with external sources.
Related MCP Connectors
Search eBay sold and active listings, browse categories, and retrieve item details.
CompSniper gives AI assistants real eBay sold prices: up to 240 sold listings per call, 3 years (1,095 days) of eBay sold history on every plan including free, and the real accepted Best Offer price (what the buyer actually paid). 18 marketplaces on one key: 8 eBay sites (US, UK, Germany, France, Italy, Spain, Canada, Australia) plus TCGplayer, PSA, Grailed, Poshmark, Mercari, Depop and the Goldin, Fanatics Collect, Pristine Auction and MySlabs auction houses. Results come raw or AI-cleaned (accessories, lots and wrong models removed), with median, range and shipping. Free plan: 100 requests a month, no card. In the Claude Connectors Directory and ChatGPT Plugins.
Drafts eBay listings from your item photos: title, description, price and condition.
Live eBay prices, sellers and profit for any keyword on 8 eBay sites. Pay per call with x402 USDC.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search eBay listings, track item prices over time, and identify deals below market value using eBay's APIs. It provides tools for category browsing and retrieving detailed information for specific listings.1MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search products, view item details, track and place bids, make Buy It Now purchases, view order history, and track shipments on eBay via browser automation with Playwright.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to search eBay listings, analyze price distributions, find deals, and generate market research overviews via the Model Context Protocol.1MIT
- AlicenseAqualityDmaintenanceRead-only eBay search and listing lookup via the official Browse API, with filters for price, condition, buying format, shipping, and deals.4MIT