vehicle-mcp-server
车辆:品牌汽车区域销量情况
该MCP服务提供汽车品牌搜索、品牌详情、区域门店与销量、在售车型、车型销量、车款配置和经销商查询功能。
主要功能
🚘 汽车品牌及厂商搜索
📊 品牌区域门店和月销量分析
🚗 品牌在售车型查询
📈 车型最近12个月销量与排名
🧾 车款配置和上月销量查询
🏪 品牌区域经销商查询
Related MCP server: estore-mcp-server
环境要求
Python 3.10+
依赖包:python-dotenv, requests, mcp
本地快速启动
1. 克隆项目
git clone https://github.com/handaas/vehicle-mcp-server
cd vehicle-mcp-server2. 创建虚拟环境&安装依赖
python -m venv mcp_env && source mcp_env/bin/activate
pip install -r requirements.txt3. 环境配置
复制环境变量模板并配置:
cp .env.example .env编辑 .env 文件,配置以下环境变量:
INTEGRATOR_ID=your_integrator_id
SECRET_ID=your_secret_id
SECRET_KEY=your_secret_key
HANDAAS_REQUEST_TIMEOUT=304. streamable-http启动服务
python server/mcp_server.py streamable-http服务将在 http://localhost:8000 启动,MCP 地址为 http://127.0.0.1:8000/mcp。
支持启动方式 stdio 或 sse 或 streamable-http
5. Cursor / Cherry Studio MCP配置
{
"mcpServers": {
"vehicle-mcp-server": {
"type": "streamableHttp",
"url": "http://127.0.0.1:8000/mcp"
}
}
}STDIO版安装部署
设置Cursor / Cherry Studio MCP配置
{
"mcpServers": {
"vehicle-mcp-server": {
"command": "uv",
"args": ["run", "mcp", "run", "{workdir}/server/mcp_server.py"],
"env": {
"PATH": "{workdir}/mcp_env/bin:$PATH",
"PYTHONPATH": "{workdir}/mcp_env",
"INTEGRATOR_ID": "your_integrator_id",
"SECRET_ID": "your_secret_id",
"SECRET_KEY": "your_secret_key"
}
}
}
}使用官方Remote服务
当前服务暂未开放官方 Remote 地址。请使用本地 stdio、sse 或 streamable-http 方式运行;官方 Remote 地址开放后将在本节补充配置。
注意:integrator_id、secret_id、secret_key及Remote token需要登录 https://www.handaas.com/ 进行注册开通平台获取
可用工具
1. vehicle_brand_search
功能: 汽车品牌搜索
参数: 按品牌名称、厂商总公司、所属国、年销量和新款上市时间搜索汽车品牌。
keyword(可选): 品牌名称关键词manufacturerCompany(可选): 品牌厂商总公司brandCountry(可选): 品牌所属国annualSalesVolumeMin/annualSalesVolumeMax(可选): 年销量区间,单位为万辆newModelLaunchTimeMin/newModelLaunchTimeMax(可选): 新款上市日期区间,格式YYYY-MM-DDpageIndex(可选): 页码,从1开始pageSize(可选): 每页条数,默认10,最大10
返回值:
total: 品牌总数resultList: 品牌结果列表manufacturerId: 品牌厂商IDmanufacturerName: 品牌厂商名称manufacturerCompany: 厂商总公司brandCountry: 品牌所属国priceRange: 价格区间hotSellingCarModelName: 热销车型annualSalesVolume: 年销量,单位为辆onSaleCarModelNum: 在售车型数量onSaleCarTrimNum: 在售车款数量
2. vehicle_brand_detail
功能: 汽车品牌详情查询
参数:
manufacturerId(必需): 必须使用品牌搜索返回的品牌厂商ID
返回值:
total: 命中数量resultList: 品牌详情列表manufacturerName: 品牌厂商名称manufacturerCompany: 厂商总公司manufacturerIntroduction: 品牌厂商简介hotSellingCarModelList: 热销车型列表nationalHistoricalSalesList: 全国历史销量annualSalesVolume: 年销量brandStoreNum: 品牌门店数量brandMonthSales: 品牌月销量all_car_model_dict: 在售车型名称与ID映射
3. vehicle_brand_market_analysis
功能: 品牌汽车区域销量与门店分布查询
参数:
manufacturerId(必需): 品牌厂商IDprovince(可选): 省份短名,例如广东;不传时按省份汇总,传入后按城市汇总
返回值:
total: 命中数量resultList: 市场分析结果storeLayout: 区域经营布局列表storeLocation: 省份或城市storeNum: 门店数量monthlySalesVolume: 月销量percentage: 销量占比businessDistrictNum: 入驻商圈数量storeSurroundMonthlyTraffic: 门店周边月均客流
4. vehicle_on_sale_model_list
功能: 品牌在售车型查询
参数:
manufacturerId(必需): 品牌厂商IDpageIndex(可选): 页码,从1开始pageSize(可选): 每页条数,默认10,最大10
返回值:
total: 在售车型总数resultList: 在售车型列表carModelId: 车型IDcarModelName: 车型名称level: 车型级别price: 价格区间carTrimNum: 车款数量
5. vehicle_model_sales_ranking
功能: 品牌内车型销量查询
参数:
manufacturerId(必需): 品牌厂商IDcarModelId(可选): 在售车型返回的车型ID;不传时查询品牌销量最高车型
返回值:
total: 命中数量resultList: 车型销量详情carModelName: 车型名称salesList: 最近12个月销量month: 月份rank: 品牌内排名reg_value: 销量,单位为辆
6. vehicle_car_trim_list
功能: 品牌车款明细查询
参数:
manufacturerId(必需): 品牌厂商IDlaunchTimeMin/launchTimeMax(可选): 上市日期区间powerEnergyType(可选): 动力或能源类型carType/secondCarType(可选): 一级或二级车型分类,两者互斥carPriceMin/carPriceMax(可选): 价格区间,单位为元pageIndex(可选): 页码pageSize(可选): 每页条数,默认10,最大10
返回值:
total: 车款总数resultList: 车款明细列表carModelId: 车型IDcarModelName: 车型名称carTrimName: 车款名称launchTime: 上市时间powerEnergyType: 动力或能源类型manufacturerGuidePrice: 厂商指导价carSpecs: 配置参数MonthSales: 上月销量
7. vehicle_dealer_list
功能: 汽车品牌区域经销商查询
参数:
manufacturerId(必需): 品牌厂商IDprovince/city/district(可选): 省市区筛选dealerType(可选): 经销类型annualTurnoverRange(可选): 年营业额区间businessDistrictType(可选): 商圈类型pageIndex(可选): 页码pageSize(可选): 每页条数,默认10,最大10
返回值:
total: 经销商总数resultList: 经销商列表storeName: 门店名称EnterpriseEntity: 企业主体dealerType: 经销类型Revenue: 年营业额address: 门店地址businessDistrict: 所属商圈businessType: 商圈类型monthFootTraffic: 商圈客流量
使用注意事项
品牌ID要求: 后续查询必须先通过品牌搜索取得
manufacturerId。车型ID要求:
carModelId来自在售车型查询结果。分页限制: 车辆分页接口一页最多获取10条数据。
互斥参数:
carType与secondCarType不能同时提供。单位说明: 品牌年销量筛选单位为万辆,车款价格筛选单位为元。
使用提问示例
vehicle_brand_search (汽车品牌搜索)
帮我搜索比亚迪汽车品牌
查询年销量超过50万辆的汽车品牌
搜索所属国为德国的汽车品牌
vehicle_brand_detail (汽车品牌详情查询)
查询比亚迪的品牌介绍和在售规模
查看丰田的历史销量情况
获取该品牌的热销车型列表
vehicle_brand_market_analysis (品牌汽车区域销量与门店分布查询)
分析比亚迪在广东各城市的门店和月销量
查看丰田在全国各省的销售布局
比较该品牌各区域的销量占比
vehicle_on_sale_model_list (品牌在售车型查询)
比亚迪目前有哪些在售车型
查看丰田在售车型的价格区间
获取该品牌在售车型和车型ID
vehicle_model_sales_ranking (品牌内车型销量查询)
查看这款车型最近12个月销量
查询该车型在品牌内的销量排名
不指定车型时查看品牌最畅销车型
vehicle_car_trim_list (品牌车款明细查询)
查询比亚迪在售车款和配置
查看指导价20万到30万元的车款
查询最近一年上市的车款及上月销量
vehicle_dealer_list (汽车品牌区域经销商查询)
查询比亚迪在深圳的经销商
查看该品牌在广东的门店分布
查询指定商圈类型内的品牌经销商
测试验证
python -m py_compile server/mcp_server.py
python -m unittest discover -s tests -v当前服务包含 9 个离线单元测试。真实接口验证需在本地 .env 配置有效凭据后执行,测试输出不得提交真实业务响应或凭据。
This server cannot be deployed
Maintenance
Related MCP Connectors
Live franchised-dealer inventory, quotes, and consented salesperson handoffs.
Automotive inventory search for AI assistants: vehicles, dealers, deals, and market data.
Search live US dealership inventory, get market prices, and send buyer inquiries. Free, no API key.
Car logo API and image CDN: search automotive brands, fetch brand data, and build logo CDN URLs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive tools for enterprise searching, channel statistical analysis, and dealer network mapping to help users evaluate market coverage and competitive positioning. It enables detailed industry benchmarking and provides insights into sales strength, brand influence, and distribution efficiency.2-
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive enterprise e-commerce data including global store profiles, product category statistics, and sales performance analysis. It enables users to search for companies and evaluate their domestic and international e-commerce business layouts across various platforms.2-
- FlicenseNot gradedqualityBmaintenanceProvides 25 interactive automotive intelligence tools for real-time market data, including VIN decoding, price predictions, and inventory analytics. It enables AI assistants to perform car searches, trade-in estimations, and market trend analysis using the Model Context Protocol.2-
- FlicenseNot gradedqualityBmaintenanceProvides dealership intelligence by integrating CRM, DMS, CDP, and analytics data, enabling tools for lead management, inventory, customer 360, and OEM KPI queries through a FastMCP server.-