Search Facebook Marketplace, eBay, Depop, and Poshmark from AI — filters, photos, full listings.
A Model Context Protocol (MCP) server that lets AI assistants search secondhand marketplaces. It searches Facebook Marketplace, eBay, Depop, and Poshmark for used items, supports filters, photos, and retrieves full listing details, including descriptions.
🛠️ Key Features
Search Facebook Marketplace, eBay, Depop, and Poshmark
Filter results by price, category, condition, size, and color
Return photos and full listing details
Provide descriptions as part of listing details
🚀 Use Cases
Find secondhand items across multiple marketplaces
Narrow results using price, category, condition, size, and color
Review listing context using photos and full descriptions
⚡ Developer Benefits
MCP server compatible with Model Context Protocol tooling
Uses marketplace-focused search plus structured listing details (photos and descriptions)
⚠️ Limitations
Scope is limited to Facebook Marketplace, eBay, Depop, and Poshmark
Available capabilities described are search, filtering, and full listing details (photos and descriptions)
A Model Context Protocol (MCP) server that lets AI assistants search secondhand marketplaces. Search Facebook Marketplace, eBay, Depop, and Poshmark for used and secondhand items — filter by price, category, condition, size, and color, then get full listing details with photos, descriptions, and seller info.
Works with Claude Desktop, Claude Code, Cursor, and other clients that run MCP servers locally.
TIP
Using ChatGPT? This one won't work there.
It runs on your computer, so it only works where your computer is — Claude Desktop, Claude Code, Cursor. Secondhand MCP Cloud is the same search, always on, so whichever assistant you actually use can reach it. Free tier, no card.
eBay, Depop, and Poshmark are all optional — if eBay API keys are missing or Chrome isn't installed, those marketplaces are automatically disabled and the rest still work.
Depop & Poshmark / Chrome Requirement
Depop and Poshmark require a headless browser. If Google Chrome or Chromium is installed on your system, both are automatically enabled — no config needed. If Chrome isn't found, they are silently skipped.
On macOS, the first time you search Depop or Poshmark, you may see a system prompt asking to allow Node.js to control Chrome. This is expected — puppeteer needs to launch Chrome in headless mode. Allow it once and it won't ask again.
The browser runs invisibly in the background and only launches when you actually search Depop or Poshmark.
Configuration
Choosing Marketplaces
By default all marketplaces are enabled. To limit which are active, set the MARKETPLACES env var (comma-separated):
json
{"env":{"MARKETPLACES":"facebook,ebay"}}
Valid values: facebook, ebay, depop, poshmark
eBay API Keys
eBay uses the official Browse API. You need a free eBay developer account:
search(query) — searches every enabled marketplace at once and returns { results: [{ id, title, text, url }] }, where id is marketplace:listingId
fetch(id) — returns full listing details for a search result ID as { id, title, text, url, metadata }
Useful for research-style clients that expect these standard tool names; for filtered searches use search_marketplace.
How It Works
Facebook Marketplace — Searches listings by location, radius, price, and query. Resolves city names to coordinates. No login or browser needed. Facebook serves non-browser callers a gated version of its search API from time to time (a single result with more pages behind it, or stubs with no listing inside); when that happens the server reads the logged-out search page instead, which still carries a full first page of results.
eBay — Uses the official eBay Browse API with OAuth 2.0 client credentials. Tokens are cached and auto-refreshed. The target regional marketplace is controlled by EBAY_MARKETPLACE_ID (default: EBAY_US).
Depop — Uses a headless browser to search listings with support for category, condition, size, and color filters. The browser instance is shared across requests.
Poshmark — Uses a headless browser to search listings with support for condition, size, color, sort, and price filters. Poshmark is not location-based — all items ship nationally.
Development
bash
git clone https://github.com/jlsookiki/secondhand-mcp.git
cd secondhand-mcp
npm install
npm run build
Adding a Marketplace
Create a new file in src/marketplaces/
Extend BaseMarketplace and implement search() and optionally getListingDetails()
Add the constructor to allMarketplaces in src/marketplaces/index.ts
Limitations
Facebook: May break if Facebook changes their frontend
eBay: Requires developer API keys (free tier available)
Depop: Requires Chrome/Chromium installed; slower than Facebook/eBay (~5s per search)
Poshmark: Requires Chrome/Chromium installed; no official API so relies on page scraping
Rate limiting: Don't make too many requests too quickly
License
MIT
Install
Configuration
Environment variables
EBAY_CLIENT_IDsecret
eBay API client ID (only needed for eBay search)
EBAY_CLIENT_SECRETsecret
eBay API client secret (only needed for eBay search)