Facebook Marketplace MCP
A focused Model Context Protocol server that enables AI agents to search Facebook Marketplace and retrieve listing details using public GraphQL endpoints, without browser automation or login.
README
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
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 build
MCP 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_marketplaces
Tools
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=dev
Quick smoke test:
node dist/index.js
Use 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.