leboncoin API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read leboncoin. No leboncoin API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/leboncoin.md and add Bowmark's leboncoin MCP server to my agent.Run this in a terminal, then sign in when the browser opens.
claude mcp add --transport http bowmark-leboncoin https://api.bowmark.ai/mcp/site/leboncoinPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-leboncoin": {
"url": "https://api.bowmark.ai/mcp/site/leboncoin"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-leboncoin","type":"http","url":"https://api.bowmark.ai/mcp/site/leboncoin"}'Run this in a terminal.
codex mcp add bowmark-leboncoin --url https://api.bowmark.ai/mcp/site/leboncoinIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/leboncoinIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/leboncoinAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/leboncoinFunctions
Open a function to see its parameters and run it with your own API key.
searchSearches leboncoin, France's largest classifieds site, by keyword and returns listings (petites annonces) with title, price in euros, city, postcode…POST /v1/sites/leboncoin/search
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/leboncoin/search \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"velo electrique","opts":{}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.leboncoin.search("velo electrique", {});import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.leboncoin.search("velo electrique", {}))Responsereturns LeboncoinSearchResultinterface LeboncoinListing { id: string; title: string; priceEur: number | null; category: string | null; city: string | null; zipcode: string | null; region: string | null; sellerType: string | null; // "private" | "pro" sellerName: string | null; publishedAt: string | null; imageUrl: string | null; url: string; } interface LeboncoinSearchResult { query: string; page: number; total: number | null; listings: LeboncoinListing[]; }