mcp-lbc
This server provides tools to search and view Leboncoin (French classifieds marketplace) listings:
search_ads: Search ads using keywords, category, region, price range (min/max), sort order (newest, oldest, cheapest, most expensive, relevance), and pagination. ⚠️ Rate-limited to 10 requests/hour to avoid DataDome bot protection.get_ad_detail: Retrieve full details of a specific ad by its ID, including description, price, location, and images.
Example use cases: finding deals on used cars, gaming PCs, or general bargain hunting with AI-assisted analysis.
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., "@mcp-lbc Search for a used bicycle in Lyon under 200 euros"
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.
mcp-lbc
Serveur MCP qui expose les annonces Leboncoin à Claude via la lib lbc.
Prompt
En utilisant le serveur mcp leboncoin, les indications dans @pc-fixe/pc-fixe.md, fais des recherches leboncoin afin de trouver les meilleurs affaires En plus des informations que tu as déjà, j'aimerai que le PC ait une carte graphique haut de gamme (type RX 7900 XTX, RX 9070 XT, RX 6900 XT, ...), même si le reste du PC est beaucoup plus bas de gamme (upgradedable)
Related MCP server: yad2-mcp
Prérequis
Réseau résidentiel (les IPs datacenter/VPS sont bloquées par DataDome)
Installation
git clone <repo>
cd mcp-leboncoin
uv syncOutils exposés
Tool | Description |
| Recherche avec filtres (texte, catégorie, région, prix, pagination) |
| Détail complet d'une annonce par ID |
Rate limit :
search_adsest limité à 10 appels/heure côté serveur pour éviter le blocage DataDome. Au-delà, le tool retourne une erreur avec le temps d'attente restant. VoirAGENTS.mdpour les règles d'usage côté agent.
Intégration Claude Code
claude mcp add leboncoin -s user -- uv run --project /user/mcp-lbc python /user/mcp-lbc/lbc_mcp_server.pyVérifier avec /mcp après avoir redémarré une nouvelle session.
Intégration Claude Desktop
Ajouter dans claude_desktop_config.json :
macOS :
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux :
~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"leboncoin": {
"command": "uv",
"args": ["run", "--project", "/chemin/vers/mcp-leboncoin", "python", "/chemin/vers/mcp-leboncoin/lbc_mcp_server.py"]
}
}
}Tests
uv run python test_mcp_server.py # teste le serveur MCP via stdio
uv run python test_lbc.py # teste la lib lbc directementAvailable Tools
2 toolsget_ad_detailB
Retourne le détail complet d'une annonce Leboncoin (description, prix, localisation, images).
Inputs: ad_id (required). Returns: result
search_adsB
Recherche des annonces Leboncoin avec filtres. Limité à 10 requêtes/heure (DataDome).
Inputs: text, category, region, sort, +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Both tools have clearly distinct purposes: one searches for ads, the other retrieves details of a specific ad. There is no overlap or ambiguity.
Both tool names follow a consistent verb_noun pattern using snake_case: 'search_ads' and 'get_ad_detail'. This is predictable and clear.
With only two tools, the server feels thin for a full-fledged classified ads platform. Typical scopes require more tools for CRUD operations and additional features.
The server only provides read operations (search and detail). Missing create, update, delete, or management tools, leaving significant gaps for user workflows.
Related MCP Connectors
People and property search for Claude and ChatGPT. Phones, emails, addresses, relatives, properties.
Jobs, ads, SEO, keywords, YouTube and AliExpress data for AI agents. Runs on Apify.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Search and browse global classifieds across 80 markets. No auth required for read-only access.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search and consult Leboncoin classified ads through the MCP protocol, with tools for ad search, detail retrieval, user profiles, and category/region listings.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search and retrieve Yad2 real estate listings (for rent or sale) using MCP tools, with data scraped via GitHub Actions and served from a Cloudflare D1 database.MIT
- AlicenseAqualityBmaintenanceEnables turning photos and observed facts into a ready-to-publish Leboncoin ad, with comparable search, asking-price statistics, category lookup, local drafts, and browser form automation that stops one click short of publishing until approved.23MIT
- AlicenseAqualityCmaintenanceEnables Claude to search Leboncoin classified ads with multi-criteria queries, pagination, CSV/JSON export, ad details, and seller profiles.34MIT