mcp-search-auto-lbc
MCP Search Auto LBC
这是一个 MCP 服务器,通过可比较的 Leboncoin 列表来估算二手车市场价值。它会向模型提供每个保留列表的标题、描述、原始属性、图片、价格和 URL,以及其他列表被排除的原因。
端点
本地 MCP 端点:
http://127.0.0.1:3100/mcp健康检查:
http://127.0.0.1:3100/health建议的生产环境端点:
https://mcp.your-domain.com/mcp
该服务器使用 MCP Streamable HTTP 传输。POST /mcp 接受 MCP JSON-RPC 消息。GET /mcp 和 DELETE /mcp 会特意返回 HTTP 405,因为服务器在无会话状态下运行。
Related MCP server: immo-mcp
安装
要求:Node.js 20 或更高版本,以及 Python 3.11。所有 Leboncoin 网络流量都经由一个由 lbc 支撑的常驻 Python 工作进程处理;TypeScript 进程只负责暴露 MCP 并计算估值。
npm install
python3.11 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
npm start随后,服务器暴露 http://127.0.0.1:3100/mcp。
在 Windows 上,请使用 .venv\Scripts\python.exe -m pip install -r requirements.txt 安装 Python 依赖。
命令
npm start
npm run dev
npm test
npm run typecheck可用的环境变量:
MCP_HOST:默认为127.0.0.1MCP_PORT:默认为3100MCP_API_TOKEN:当服务器在 localhost 之外监听时必需的 Bearer 令牌MCP_ALLOWED_HOSTS:允许的主机名列表,以逗号分隔LBC_PYTHON_PATH:指向带有lbc>=1.1.5的 Python 可执行文件的显式路径LBC_MAX_PAGES:每次搜索获取的最大页数;默认为3LBC_PAGE_DELAY_MS:页面之间的基本延迟;默认为1500毫秒,并包含随机抖动LBC_MAX_RETRIES:Python 客户端内部的 Datadome 重试次数;默认为1LBC_REQUEST_TIMEOUT_SECONDS:每个 Python HTTP 请求的超时时间;默认为30LBC_WORKER_TIMEOUT_MS:一次完整工作进程搜索的最大持续时间;默认为90000LBC_PROXY_URL:可选代理 URL,在需要时包含凭据LBC_IMPERSONATE:受curl_cffi支持的可选浏览器配置文件VALUATION_CACHE_TTL_MS:内存缓存的生存时间;默认为 15 分钟
工具:resolve_leboncoin_vehicle
此工具将自然语言形式的车辆名称转换为准确的 Leboncoin 筛选器 ID。它首先检查本地目录,然后可以从一页实时列表中确认未知车型。
示例输入:
{
"brand": "Renault",
"model": "Clio III",
"fuel": "diesel",
"engine": "1.5 dCi 90"
}示例输出:
{
"resolved": true,
"brand": "Renault",
"model": "Clio",
"leboncoinBrand": "RENAULT",
"leboncoinModel": "RENAULT_Clio",
"generation": "3",
"fuel": "diesel",
"leboncoinFuel": "2",
"confidenceScore": 98,
"source": "catalog",
"warnings": [],
"alternatives": []
}工具:estimate_used_vehicle
示例输入:
{
"brand": "Renault",
"model": "Clio",
"leboncoinBrand": "RENAULT",
"leboncoinModel": "RENAULT_Clio",
"generation": "3",
"year": 2010,
"mileage": 100000,
"fuel": "diesel",
"engine": "1.5 dCi 90",
"gearbox": "manual",
"trim": "Dynamique",
"excludeCompanyVehicles": true,
"excludeProfessionalSellers": true,
"maxComparables": 20,
"includeDescriptions": true,
"includeImages": true
}Leboncoin 的精确筛选器 ID 与显示给用户的标签不同:
u_car_brand:RENAULT、PEUGEOT、BMW、MERCEDES-BENZ等u_car_model:品牌 ID、下划线以及区分大小写的车型标签,例如RENAULT_Clio、PEUGEOT_208、VOLKSWAGEN_Golf或TESLA_Model 3代际(
Clio 3)和发动机(1.5 dCi 90)不属于u_car_model;它们会与制造商版本、标题、属性和描述进行核对。主要燃料代码中,
1代表汽油,2代表柴油,4代表电动,6代表混合动力,8代表插电式混合动力。变速箱代码中,1代表手动,2代表自动。
当省略 leboncoinBrand 或 leboncoinModel 时,服务器会保留文本搜索作为后备方案。
精简输出示例:
{
"request": {},
"valuation": {
"estimatedPrice": 5000,
"lowPrice": 4600,
"highPrice": 5400,
"quickSalePrice": 4500,
"currency": "EUR",
"confidence": "high",
"confidenceScore": 82
},
"market": {
"adsFetched": 25,
"comparablesUsed": 14,
"excludedCount": 11
},
"comparables": [
{
"title": "Renault Clio III 1.5 dCi 90",
"price": 5100,
"description": "Full listing description...",
"characteristics": {
"regdate": "2010",
"mileage": "103000",
"fuel": "Diesel"
},
"images": ["https://..."],
"url": "https://www.leboncoin.fr/...",
"similarityScore": 0.92,
"matchedCriteria": ["brand", "model", "year", "mileage", "fuel", "engine"]
}
],
"excludedAds": [
{
"title": "Damaged Clio sold for parts",
"reasons": ["damaged, non-running, or parts-only vehicle"]
}
],
"warnings": []
}未来的目录数据应当遵循 catalog.example.json 的结构。服务器还会将此结构作为 MCP 资源发布到 vehicle://catalog/schema。
连接 MCP 客户端
服务器使用 Streamable HTTP。典型的客户端配置如下:
{
"mcpServers": {
"mcp-search-auto-lbc": {
"url": "http://127.0.0.1:3100/mcp"
}
}
}开箱即用的智能体技能位于 skills/leboncoin-vehicle-valuation。
免责声明
本项目使用非官方 API,与 Leboncoin 既无关联,也未获得其认可。估值是基于广告上标价得出的估算结果,并非对车辆的保证性评估。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityCmaintenanceExposes Leboncoin classified ads to Claude, allowing search with filters and full ad details. Includes rate limiting and optional residential proxy support.2
- AlicenseNot gradedqualityCmaintenanceAnalyzes French real-estate market using open data sources like DVF transactions, DPE certificates, and risk data.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
- FlicenseNot gradedqualityCmaintenanceEnables agents to search and analyze used-vehicle listings across multiple Serbian marketplaces, including price statistics, history, and per-user saved-search watches.1
Related MCP Connectors
VIN decoding and European vehicle data for automotive workflows.
Vehicle data for AI: VIN decoder, automotive specs, stolen checks, valuation and way more.
ECRVSP Vehicles: Cadastro BIN RENAVAM, official-source lookup. Platform-hosted, pay per query with p
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/npalissi/mcp-search-auto-lbc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server