Facebook Marketplace MCP
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., "@Facebook Marketplace MCP search for go kart in Phoenix under $1500"
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.
Facebook Marketplace MCP
A focused Model Context Protocol server for searching Facebook Marketplace from AI agents.
This repo is a hardened, Facebook-only variant inspired by jlsookiki/secondhand-mcp. It keeps the useful Facebook Marketplace search and details flow, removes the eBay/Depop/Poshmark paths, and avoids browser automation entirely.
What It Does
Search Facebook Marketplace listings by query, city, and price range
Get full listing details from a returned listing ID
Return listing title, price, location, seller name when available, URL, description, delivery type, and photo URLs
Prefer exact US city matches when Facebook returns ambiguous locations
Related MCP server: Facebook Marketplace MCP
Safety Defaults
No Facebook login
No Facebook cookies
No Chrome or headless browser automation
No browser profile access
No eBay API keys
No paid APIs
The server only calls Facebook public/internal Marketplace GraphQL endpoints. These endpoints can change, so the tool may need maintenance if Facebook updates its frontend operation IDs.
Install
Requires Node.js 20.18.1+.
npm install
npm run buildMCP Config
Claude Desktop
Add this to your Claude Desktop MCP config:
{
"mcpServers": {
"facebook-marketplace": {
"command": "node",
"args": ["/absolute/path/to/facebook-marketplace-mcp/dist/index.js"]
}
}
}OpenClaw
openclaw mcp add facebook-marketplace \
--command node \
--arg dist/index.js \
--cwd /absolute/path/to/facebook-marketplace-mcp \
--include search_marketplace,get_listing_details,list_marketplacesTools
search_marketplace
Search Facebook Marketplace.
Parameters:
queryrequired: search terms, for examplego kartlocationoptional: city or area, defaultphoenixmaxPriceoptional: maximum priceminPriceoptional: minimum pricelimitoptional: maximum results, default20, Facebook caps one request at24showSoldoptional: include sold/pending/unavailable listingsincludeImagesoptional: include image URLs in search results
Example:
{
"query": "go kart",
"location": "phoenix",
"maxPrice": 1500,
"limit": 5
}get_listing_details
Get full details for one listing.
Parameters:
listingIdrequired: ID fromsearch_marketplace
Example:
{
"listingId": "999433246010406"
}list_marketplaces
Returns the enabled adapter and auth status.
Development
npm install
npm run build
npm audit --omit=devQuick smoke test:
node dist/index.jsUse an MCP client to call search_marketplace with a small limit before increasing scan volume.
Limitations
Facebook can change its internal GraphQL
doc_idvalues without notice.Location matching depends on Facebook's location search results.
Search radius is currently fixed to the same local radius used by the upstream implementation.
Respect Facebook's terms and rate limits. Do not hammer the endpoint.
Attribution
Derived from the Facebook Marketplace implementation in:
https://github.com/jlsookiki/secondhand-mcp
Original project copyright belongs to its author. This repo keeps the MIT license.
License
MIT
Available Tools
3 toolsget_listing_detailsA
Get full Facebook Marketplace listing details using a listing ID returned from search_marketplace.
Inputs: listingId (required).
list_marketplacesA
List the enabled marketplace adapter and auth status.
Inputs: no named parameters.
search_marketplaceA
Search Facebook Marketplace by query, location, and price. No Facebook login, browser automation, cookies, or profile access required. Use get_listing_details with a returned listing ID for description, seller, delivery type, and photos.
Inputs: query (required), limit, location, maxPrice, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a unique purpose: search finds listings, get_listing_details retrieves full details, and list_marketplaces shows adapter status. No overlap or ambiguity.
All tool names follow a consistent verb_noun convention in snake_case (search_marketplace, get_listing_details, list_marketplaces), making them predictable.
Three tools is minimal but appropriate for a focused server covering search and retrieval. Could potentially include pagination or filtering, but the count is reasonable for the stated purpose.
The tool surface covers the core workflow of searching and retrieving listing details. Minor gaps like pagination or sorting exist, but the essential search-to-details path is complete.
Maintenance
Related MCP Connectors
Search Facebook Marketplace, inspect listings and analyze deals. Paid Spottable Pro/Max required.
Facebook & Instagram data for AI agents: pages, posts, groups, ads, Marketplace, profiles, reels.
The agent-native marketplace for AI data: search listings and read their price and rights.
Marketplace for AI agents: goods, collectibles, real estate and services. List, search, offer, deal.
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.-
- FlicenseAqualityCmaintenanceEnables searching Facebook Marketplace listings from Claude using your existing Facebook session without a browser.72-
- AlicenseNot gradedqualityDmaintenanceMCP server that searches Facebook Marketplace and Craigslist for items for sale, returning structured JSON listings with filtering, deduplication, and optional deep description checks.3MIT
- FlicenseAqualityCmaintenanceEnables searching, retrieving details, and monitoring Facebook Marketplace listings through direct GraphQL API calls using existing Chrome session cookies, with support for saved searches and price/location filters.71-