
ChinaCarAPI - Chinese used cars
io.github.ThatMojov1.2.0更新於 Oct 5, 2026
Live used car listings from China (Dongchedi, Che168) in English, with inspection reports.
概覽
讓助理搜尋懂車帝、二手車之家等來源的中國二手車即時車源,並取得詳細資料與檢測報告。
- 功能
- 透過唯讀工具提供來自懂車帝與二手車之家的中國二手車即時車源,並翻譯成英文。工具包括 search_chinese_cars,可依品牌、車型、年式、領牌年份、人民幣價格、里程、城市、燃料、來源與是否可出口篩選;get_chinese_car 取得單筆車源完整紀錄;get_chinese_inspection 取得事故、泡水、火燒與電動車電池檢測報告;chinese_filter_values 與 chinese_models 提供有效品牌、燃料、城市、來源及附車源數量的車型。同一端點也提供韓國市場工具。
- 適用情境
- 適合需要助理查詢目前中國二手車庫存、比較車源,或直接調取檢測與事故資訊而不必手動瀏覽來源網站的場合。主要用於研究與比較,而非交易。
- 執行需求
- 遠端 MCP 端點 ChinaCarAPI 金鑰,可透過首次使用時的瀏覽器 OAuth 流程提供,或作為標頭(Authorization: Bearer、x-api-key 或 x-china-key)送出。帶中國附加模組的 EnCarAPI 金鑰同樣可用。需要能連線至該端點的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ChinaCarAPI - Chinese used cars,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"chinacarapi-mcp": {
"type": "http",
"url": "https://mcp.chinacarapi.com/mcp"
}
}
}README
EnCarAPI MCP server: Korean and Chinese used car data for AI assistants
Model Context Protocol server for EnCarAPI. Lets Claude, Cursor, ChatGPT and other MCP clients search live used car listings from South Korea (Encar, KB Chachacha, K Car) and China (Dongchedi, Che168), and pull full details, inspection reports and accident records.
An API key is required. Get one (5-day trial) at encarapi.com. Chinese data works with a ChinaCarAPI key or an EnCarAPI key with the China add-on. ChinaCarAPI customers: see For ChinaCarAPI customers.
Tools
All tools are read-only.
Option 1: hosted (no install)
Add this URL as a remote MCP server:
In clients with OAuth support the URL is all you need. On first use a browser window opens, you paste your EnCarAPI key once, and the client is connected:
- Claude (claude.ai, desktop, mobile): Settings - Connectors - Add custom connector, paste the URL
- ChatGPT (developer mode): Settings - Connectors - create a connector with the URL
- Cursor:
{"mcpServers": {"encarapi": {"url": "https://mcp.encarapi.com/mcp"}}}in.cursor/mcp.json - VS Code: "MCP: Add Server" - HTTP - paste the URL
- Claude Code:
The key is checked once and is not stored on the server: it is encrypted into the token your client receives. To disconnect, remove the server in your client; to cut off access everywhere, rotate your key at encarapi.com.
Alternative: send the key yourself
Clients without OAuth support, scripts and gateways can send the key directly:
Claude Code:
The x-api-key: YOUR_ENCARAPI_KEY header works as well. Clients that only accept a URL and
have no OAuth support can use https://mcp.encarapi.com/mcp?key=YOUR_ENCARAPI_KEY (a header
is preferred, since URLs can end up in logs). A separate ChinaCarAPI key goes into the
x-china-key header, or into the second field of the browser form.
For ChinaCarAPI customers
ChinaCarAPI has its own address:
Add it as a remote MCP server exactly as above. On first use a browser window opens and you paste your ChinaCarAPI key once. The form detects which key it is, so an EnCarAPI key works there as well; customers with both keys put the EnCarAPI key into the optional second field.
- Claude (claude.ai, desktop, mobile): Settings - Connectors - Add custom connector, paste the URL
- Cursor:
{"mcpServers": {"chinacarapi": {"url": "https://mcp.chinacarapi.com/mcp"}}}in.cursor/mcp.json - Claude Code:
On this address the Chinese tools are listed first. Start with chinese_filter_values to
get valid makes, fuels and cities (the city filter needs the exact value from that list).
Without the browser login, send the key as a header. On mcp.chinacarapi.com a key in
Authorization: Bearer or x-api-key counts as a ChinaCarAPI key:
x-china-key: YOUR_CHINACARAPI_KEY works on both addresses; then Authorization can carry
an EnCarAPI key for the Korean tools.
Locally (npx), set CHINACARAPI_KEY instead of ENCARAPI_KEY:
Option 2: local (npx)
Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and most other
clients:
Claude Code:
Optional: CHINACARAPI_KEY for a separate ChinaCarAPI key.
Example prompts
- "Find accident-free Genesis GV80 from 2022 or newer under 50 million KRW and compare the mileage."
- "Show the inspection report and accident record for Encar listing 41000001."
- "What are the cheapest export-ready BYD Seal listings in China right now?"
Self-hosting the HTTP endpoint
Stateless: every request carries its own key, nothing is stored.
To enable the OAuth flow ("connect by URL only"), set two environment variables:
This adds /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server,
/register, /authorize and /token (OAuth 2.1 with PKCE, dynamic client registration).
There is still no database: client ids, authorization codes and tokens are encrypted,
self-contained values (AES-256-GCM) that carry the key. Consequences:
- Changing
MCP_OAUTH_SECRETsigns out all OAuth clients (they reconnect through the browser). - Access tokens last 1 hour, refresh tokens 90 days and are replaced on every use.
- Single use of authorization codes and of replaced refresh tokens is tracked in memory, so it is best-effort: it does not survive a restart and is not shared between instances.
- A single token cannot be revoked on the server. Rotating the EnCarAPI key cuts off all access.
Links
- EnCarAPI: https://encarapi.com
- ChinaCarAPI: https://chinacarapi.com
- SDKs: Node.js, Python
EnCarAPI is an independent service and not affiliated with Encar, KB Chachacha, K Car, Dongchedi or Che168.
License
MIT
來源:README.md,提交 1d06c20
工具
0版本歷史
1- v1.2.0最新Oct 5, 2026


