Skip to main content
Glama
npalissi

mcp-search-auto-lbc

by npalissi

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 /mcpDELETE /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.1

  • MCP_PORT:默认为 3100

  • MCP_API_TOKEN:当服务器在 localhost 之外监听时必需的 Bearer 令牌

  • MCP_ALLOWED_HOSTS:允许的主机名列表,以逗号分隔

  • LBC_PYTHON_PATH:指向带有 lbc>=1.1.5 的 Python 可执行文件的显式路径

  • LBC_MAX_PAGES:每次搜索获取的最大页数;默认为 3

  • LBC_PAGE_DELAY_MS:页面之间的基本延迟;默认为 1500 毫秒,并包含随机抖动

  • LBC_MAX_RETRIES:Python 客户端内部的 Datadome 重试次数;默认为 1

  • LBC_REQUEST_TIMEOUT_SECONDS:每个 Python HTTP 请求的超时时间;默认为 30

  • LBC_WORKER_TIMEOUT_MS:一次完整工作进程搜索的最大持续时间;默认为 90000

  • LBC_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_brandRENAULTPEUGEOTBMWMERCEDES-BENZ

  • u_car_model:品牌 ID、下划线以及区分大小写的车型标签,例如 RENAULT_ClioPEUGEOT_208VOLKSWAGEN_GolfTESLA_Model 3

  • 代际(Clio 3)和发动机(1.5 dCi 90)不属于 u_car_model;它们会与制造商版本、标题、属性和描述进行核对。

  • 主要燃料代码中,1 代表汽油,2 代表柴油,4 代表电动,6 代表混合动力,8 代表插电式混合动力。变速箱代码中,1 代表手动,2 代表自动。

当省略 leboncoinBrandleboncoinModel 时,服务器会保留文本搜索作为后备方案。

精简输出示例:

{
  "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 既无关联,也未获得其认可。估值是基于广告上标价得出的估算结果,并非对车辆的保证性评估。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    B
    quality
    C
    maintenance
    Exposes Leboncoin classified ads to Claude, allowing search with filters and full ad details. Includes rate limiting and optional residential proxy support.
    2
  • A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    23
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables agents to search and analyze used-vehicle listings across multiple Serbian marketplaces, including price statistics, history, and per-user saved-search watches.
    1

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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