Secondhand MCP
This server enables AI assistants to search secondhand items across Facebook Marketplace, eBay, Depop, and Poshmark—individually or all at once. You can filter results by price range, condition, category, brand, department, size, color, sort order, and location (Facebook), with optional inclusion of sold items (Facebook) and image URLs. Full listing details provide description, all photos, seller info, and shipping options. It lists enabled marketplaces, supports pagination (eBay), and works with MCP clients (Claude Desktop, Cursor). Configuration options include eBay API keys and Chrome for Depop/Poshmark scraping.
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., "@Secondhand MCP search Facebook Marketplace for a used sofa under $300"
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.
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.
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 repo | ||
Claude Desktop, Code, Cursor | ✅ | ✅ |
ChatGPT, Claude, and other assistants | — | ✅ |
Searching from your phone | — | ✅ |
Chrome running in the background | needed | not needed |
Price | free, forever | free tier, then $4.99 |
Supported Marketplaces
Marketplace | Auth Required | Notes |
Facebook Marketplace | No | Location-based search |
eBay | Yes (API keys) | Official Browse API |
Depop | No | Requires Chrome installed |
Poshmark | No | Requires Chrome installed |
Related MCP server: glongus-mcp
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, 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):
{
"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:
Create an account at developer.ebay.com
Create an application to get a Client ID and Client Secret
Add them to your MCP config as
EBAY_CLIENT_IDandEBAY_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:
Value | Site |
| ebay.com (default) |
| ebay.de |
| ebay.co.uk |
| ebay.com.au |
| ebay.fr |
| ebay.it |
| ebay.es |
| ebay.ca |
The full list is available in the eBay API docs.
Tools
search_marketplace
Search for items across marketplaces.
Parameter | Required | Default | Description |
| Yes | Search terms | |
| No |
|
|
| No |
| City to search in (Facebook only) |
| No |
| Search radius in miles, up to 500 (Facebook only) |
| No | Maximum price | |
| No | Minimum price | |
| No |
| Max results |
| No |
| Include sold items (Facebook only) |
| No |
| Include image URLs in output |
| No |
| Sort order (Depop, Poshmark): |
| No | Item condition. eBay: | |
| No | Product category. Depop: | |
| No | Brand filter (Poshmark only): e.g. | |
| No | Department filter (Poshmark only): | |
| No | Size filter (Depop, Poshmark): e.g. | |
| No | Color filter (Depop, Poshmark): |
Data returned per marketplace:
Field | eBay | Depop | Poshmark | |
Title | Yes | Yes | Yes | Yes |
Price | Yes | Yes | Yes | Yes |
Location | City | City, State | — | — |
Condition | — | Yes | — | — |
Photo count | 1 thumbnail | 1 thumbnail | 1 thumbnail | 1 thumbnail |
Seller | Yes | Yes | — | — |
get_listing_details
Get full details for a specific listing using an ID from search results.
Parameter | Required | Default | Description |
| Yes | Listing ID from search results | |
| No |
|
|
Data returned per marketplace:
Field | eBay | Depop | Poshmark | |
Description | Yes | Yes | Yes | Yes |
All photos | Yes | Yes | Yes | Yes |
Location | City | City, State, Country | — | — |
Seller | Name | Username | Username | Username |
Delivery types | Yes | — | — | — |
Shipping | Yes/No | Service codes | Yes/No | Always included |
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 }] }, whereidismarketplace:listingIdfetch(id)— returns full listing details for asearchresult 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
git clone https://github.com/jlsookiki/secondhand-mcp.git
cd secondhand-mcp
npm install
npm run buildAdding a Marketplace
Create a new file in
src/marketplaces/Extend
BaseMarketplaceand implementsearch()and optionallygetListingDetails()Add the constructor to
allMarketplacesinsrc/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
Available Tools
5 toolsfetchARead-onlyIdempotent
Fetch one listing in full for an id returned by the search tool, following the ChatGPT deep research tool contract. Id format: marketplace:listingId (for example "facebook:12345" or "ebay:v1|123|456"). Behavior: read-only. Errors: an id without the marketplace prefix, or for a removed listing, returns an error message. Not for: ids from search_marketplace, which take get_listing_details.
Inputs: id (required).
get_listing_detailsARead-onlyIdempotent
Get one listing in full using an id from search_marketplace or from a marketplace URL: description, every photo, location, seller and shipping options. Photos: by default (imageMode:"urls") you get direct full-resolution CDN image URLs to fetch yourself, which is the most reliable option because some CDNs block server-side fetches. Set imageMode:"inline" (or includeImages:true) to have the server fetch the photos and return them as base64 image blocks; if that fetch is blocked the server falls back to URLs. Use imageSize to trade resolution for payload and maxImages to cap the count. Requirements: the same as search_marketplace for that marketplace. Behavior: read-only, one listing per call, no login. Errors: a listing that has been removed, or an id from the wrong marketplace, returns an error message rather than a partial listing. Not for: searching (use search_marketplace) or fetching many listings at once.
Inputs: listingId (required), imageMode, imageSize, maxImages, +2 more.
list_marketplacesARead-onlyIdempotent
List the marketplaces this server can search right now, with each one's display name, whether it needs credentials, and whether it is currently reachable. Call it once when a search fails with an unknown-marketplace error or before offering a marketplace the user did not name. Behavior: read-only, no arguments, no network calls beyond a health check. Not for: searching or fetching listings.
Inputs: no named parameters.
searchARead-onlyIdempotent
Search every available secondhand marketplace at once with a single query string, following the ChatGPT deep research tool contract. Returns results whose ids (marketplace:listingId) can be passed to the fetch tool. Behavior: read-only; Facebook results use the server's default location because this contract carries no location, so prefer search_marketplace when a place matters. Not for: filtered or local searches.
Inputs: query (required).
search_marketplaceARead-onlyIdempotent
Search live listings on secondhand marketplaces by keyword. Marketplaces: . Returns up to limit listings with id, title, price, location, seller and a thumbnail; call get_listing_details with an id for the description, every photo and shipping. Requirements: Facebook Marketplace needs no credentials but is local, so pass location as "City, ST"; eBay needs EBAY_CLIENT_ID and EBAY_CLIENT_SECRET in the server environment; Depop and Poshmark need Chrome or Chromium on the machine. Behavior: read-only, no login, no purchases. Facebook may rate-limit repeated searches from one IP, and results for a query are cached for 90 seconds. Errors: a marketplace that fails returns success:false with the reason instead of throwing; an unknown marketplace name lists the valid ones; an empty result usually means the query was too specific, so widen the keywords or drop a price bound before concluding nothing exists. Not for: buying, messaging sellers, saved searches, or new-retail catalogs.
Inputs: query (required), sort, brand, limit, +13 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The tool set has two overlapping pairs: search_marketplace/search and get_listing_details/fetch. The descriptions help clarify that one pair is marketplace-specific and the other follows the deep research contract, but an agent can still easily pick the wrong tool when the only distinguishing factor is the id format or contract convention.
Three tools follow a verb_noun pattern (search_marketplace, get_listing_details, list_marketplaces), while two bare generic verbs (search, fetch) break the pattern. This is inconsistent and makes the duplicated functionality harder to tell apart by name alone.
Five tools is a reasonable size for a read-only marketplace search server. However, the two contract-wrapper tools (search and fetch) duplicate the core capabilities of the marketplace-specific tools, making the set feel slightly padded even though it remains manageable.
The core read-only workflow is covered: searching listings, fetching full details, and discovering available marketplaces. Minor gaps exist, such as no pagination for searches and no seller-profile or category-browsing endpoint, but agents can generally accomplish the intended search-and-inspect task without dead ends.
Maintenance
Related MCP Connectors
AI marketplace: search, buy, sell across Amazon, eBay, AliExpress. 13 tools.
Live second-hand price estimates with confidence for AI agents. Cached lookups free.
Search products in nearby stores. Agents can also list items for sale on a user's behalf.
Find garage sales and publish seller-verified listings directly from AI assistants.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like claude.ai to search online marketplaces (e.g., Facebook Marketplace) through your own logged-in browser, returning structured listings and details.-
- AlicenseAqualityBmaintenanceEnables AI agents to search, inspect, and purchase physical goods on an escrow-secured marketplace, including listing search, agent reputation checks, and offer creation.49392 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching multiple second-hand marketplaces simultaneously from a local command line or AI assistant, providing unified results with pricing insights while respecting each source's terms and robots.txt.AGPL 3.0
- AlicenseAqualityDmaintenanceEnables AI assistants to search and aggregate used-vehicle listings across Cars.com, Autotrader, and KBB, with filters for price, mileage, dealer information, and CARFAX-style history conditions.1MIT