Skip to content
FunCoding

secondhand-mcp

Listed in the official MCP Registry

Search Facebook Marketplace, eBay, Depop, and Poshmark from AI — filters, photos, full listings.

Star
110
Version
v0.6.0
License
MIT
Last commit
Nov 26, 2026

MseeP.ai Security Assessment Badge Verified on MseeP

Secondhand MCP

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.

This repoCloud
Claude Desktop, Code, Cursor✅✅
ChatGPT, Claude, and other assistants—✅
Searching from your phone—✅
Chrome running in the backgroundneedednot needed
Pricefree, foreverfree tier, then $4.99

Supported Marketplaces

MarketplaceAuth RequiredNotes
Facebook MarketplaceNoLocation-based search
eBayYes (API keys)Official Browse API
DepopNoRequires Chrome installed
PoshmarkNoNo browser needed
SidelineSwapNoUsed sporting gear; opt-in via MARKETPLACES
Play It Again SportsNoNew and used sporting goods from store inventory; opt-in via MARKETPLACES
GeartradeNoUsed outdoor and ski gear; opt-in via MARKETPLACES

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "secondhand": {
      "command": "npx",
      "args": ["-y", "secondhand-mcp"],
      "env": {
        "EBAY_CLIENT_ID": "your-ebay-client-id",
        "EBAY_CLIENT_SECRET": "your-ebay-client-secret",
        "EBAY_MARKETPLACE_ID": "EBAY_US"
      }
    }
  }
}

Claude Code

Add to ~/.claude/.mcp.json:

{
  "mcpServers": {
    "secondhand": {
      "command": "npx",
      "args": ["-y", "secondhand-mcp"],
      "env": {
        "EBAY_CLIENT_ID": "your-ebay-client-id",
        "EBAY_CLIENT_SECRET": "your-ebay-client-secret",
        "EBAY_MARKETPLACE_ID": "EBAY_US"
      }
    }
  }
}

eBay and Depop are optional — if eBay API keys are missing or Chrome isn't installed, that marketplace is automatically disabled and the rest still work.

Depop / Chrome Requirement

Depop requires a headless browser. If Google Chrome or Chromium is installed on your system, it is automatically enabled — no config needed. If Chrome isn't found, it is silently skipped.

On macOS, the first time you search Depop, 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.

Configuration

Choosing Marketplaces

By default Facebook, eBay, Depop and Poshmark are enabled. To choose which are active, set the MARKETPLACES env var (comma-separated):

{
  "env": {
    "MARKETPLACES": "facebook,ebay"
  }
}

Valid values: facebook, ebay, depop, poshmark, sidelineswap, playitagain, geartrade

SidelineSwap, Play It Again Sports and Geartrade are only enabled when listed here.

eBay API Keys

eBay uses the official Browse API. You need a free eBay developer account:

  1. Create an account at developer.ebay.com
  2. Create an application to get a Client ID and Client Secret
  3. Add them to your MCP config as EBAY_CLIENT_ID and EBAY_CLIENT_SECRET

eBay Marketplace / Region

By default the server targets the US eBay site. To search a different regional marketplace, set the EBAY_MARKETPLACE_ID environment variable:

{
  "env": {
    "EBAY_MARKETPLACE_ID": "EBAY_DE"
  }
}

Common values:

ValueSite
EBAY_USebay.com (default)
EBAY_DEebay.de
EBAY_GBebay.co.uk
EBAY_AUebay.com.au
EBAY_FRebay.fr
EBAY_ITebay.it
EBAY_ESebay.es
EBAY_CAebay.ca

The full list is available in the eBay API docs.

Tools

search_marketplace

Search for items across marketplaces.

ParameterRequiredDefaultDescription
queryYesSearch terms
marketplaceNofacebookfacebook, ebay, depop, poshmark, sidelineswap, playitagain, geartrade, or all
locationNosan franciscoCity to search in (Facebook only)
radiusMilesNo25Search radius in miles, up to 500 (Facebook only)
maxPriceNoMaximum price (Play It Again Sports: US stores only)
minPriceNoMinimum price (Play It Again Sports: US stores only)
limitNo20Max results
showSoldNofalseInclude sold items (Facebook, SidelineSwap)
includeImagesNofalseInclude image URLs in output
sortNorelevanceSort order (Poshmark, SidelineSwap, Play It Again Sports; Depop: price sorts only; Geartrade: relevance and price only): relevance, newest, most_popular, price_low_to_high, price_high_to_low
conditionNoItem condition. eBay: new or used only; a finer grade counts as used. Poshmark: new (with tags), like_new, good, fair. SidelineSwap and Play It Again Sports: new, used. Geartrade: new, excellent, good, fair, used
categoryNoProduct category. SidelineSwap: numeric ID, e.g. 110030 (goalie masks). Geartrade: exact product type, e.g. Alpine Skis w/ Bindings. Poshmark: Jackets_&_Coats, Dresses, Shoes, Accessories, etc.
brandNoBrand filter (Poshmark, Geartrade): e.g. "Nike", "Levi's", "Gucci"
departmentNoDepartment (Poshmark only, added to the search words): Women, Men, Kids
sizesNoSize filter (Poshmark, Geartrade): e.g. ["S", "M", "L"] or ["US 9", "US 10"]
colorsNoColor filter (Poshmark only): black, white, red, blue, green, yellow, orange, pink, purple, brown, grey, cream, multi, silver, gold

Data returned per marketplace:

FieldFacebookeBayDepopPoshmark
TitleYesYesYesYes
PriceYesYesYesYes
LocationCityCity, State——
Condition—Yes—Yes
Photo count1 thumbnail1 thumbnail1 thumbnail1 thumbnail
SellerYesYes—Yes
Shipping cost—Cheapest, with delivered total——

get_listing_details

Get full details for a specific listing using an ID from search results.

ParameterRequiredDefaultDescription
listingIdYesListing ID from search results; for eBay also a listing link or a Share link (ebay.us, ebay.io)
marketplaceNofacebookfacebook, ebay, depop, poshmark, sidelineswap, playitagain, or geartrade; not needed for an eBay link or an id like ebay:123
optionsNoeBay only: the options wanted from a listing sold in several, e.g. {"Size": ["L"]}

Data returned per marketplace:

FieldFacebookeBayDepopPoshmark
Title and priceYes, with the price before a drop———
ConditionYes———
Date listedYes———
Sold or pendingYes———
DescriptionYesYesYesYes
All photosYesYesYesYes
LocationCityCity, State, Country——
SellerNameUsernameUsernameUsername
Brand——Yes—
Delivery typesYes———
ShippingYes/NoCost per serviceYes/NoAlways included

An eBay listing sold in several options (sizes, colours) also shows what the options differ by, every value they come in, the price range and a few options with their own price and link.

list_marketplaces

List all enabled marketplaces and their status.

search / fetch (deep research)

Convenience pair following the ChatGPT Deep Research tool contract — exact names, a single string argument each:

  • 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 price bounds and price sorts applied to the results. The browser instance is shared across requests.

Poshmark — Reads the JSON behind Poshmark's web app, so no browser is needed. Supports condition, brand, category, size, color, sort and price; a department is added to the search words. Poshmark is not location-based — all items ship nationally.

SidelineSwap — Reads the JSON behind SidelineSwap's storefront, so no browser is needed. Supports price, new/used condition, numeric category IDs, sort and offset. Prices are USD asking prices before shipping and tax.

Play It Again Sports — Reads the product data embedded in the storefront's search and product pages, so no browser is needed. Supports price, new/used condition, sort and offset. Prices are in the store's currency (USD or CAD) before shipping and tax; price bounds only match US stores.

Geartrade — Reads Geartrade's Shopify storefront, so no browser is needed. Supports price, condition, brand, product type, size, price sort and offset. Prices are USD asking prices before shipping and tax.

Development

git clone https://github.com/jlsookiki/secondhand-mcp.git
cd secondhand-mcp
npm install
npm run build

Adding a Marketplace

  1. Create a new file in src/marketplaces/
  2. Extend BaseMarketplace and implement search() and optionally getListingDetails()
  3. Add the constructor to defaultMarketplaces in src/marketplaces/index.ts, or to optInMarketplaces if it should only run when named in MARKETPLACES

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: Undocumented web app endpoint, so it may break if Poshmark changes it
  • SidelineSwap: Undocumented storefront endpoints, so it may break if SidelineSwap changes them
  • Play It Again Sports: Reads data embedded in the storefront's pages, so it may break if the site changes them; searches at most ten pages of 12 products
  • Geartrade: Reads storefront pages, so it may break if Geartrade changes its theme
  • Rate limiting: Don't make too many requests too quickly

License

MIT

Similar MCP servers

Scrapling MCP Server

Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.

D4D4Vinci/Scrapling107k1,730 new stars in the last 7 days

Official

Fetch

Fetches web content and converts it to Markdown for an LLM to read

MOmodelcontextprotocol/servers92k166 new stars in the last 7 days

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

EVevery-app/open-seo29k533 new stars in the last 7 days

Agent Skills Search Server

Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.

AGagentskills/agentskills28k175 new stars in the last 7 days

XERJ

The search engine for AI agents: cited answers from your local code, docs, specs and logs.

XExerj-org/xerj23k1,626 new stars in the last 7 days

Featured

Apify

Run ready-made Apify scrapers to extract data from social media, maps and e-commerce sites.

APapify/apify-mcp-server19k873 new stars in the last 7 days