MCP server for Korean (Encar, KB Chachacha, K Car) and Chinese (Dongchedi, Che168) used car data - EnCarAPI
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add chinacarapi-chinese-used-cars --env ENCARAPI_KEY='<ENCARAPI_KEY>' --env CHINACARAPI_KEY='<CHINACARAPI_KEY>' -- npx -y encarapi-mcp~/.codex/config.toml
[mcp_servers.chinacarapi-chinese-used-cars]
command = "npx"
args = ["-y", "encarapi-mcp"]
env = { ENCARAPI_KEY = "<ENCARAPI_KEY>", CHINACARAPI_KEY = "<CHINACARAPI_KEY>" }
# codex mcp add chinacarapi-chinese-used-cars --env ENCARAPI_KEY='<ENCARAPI_KEY>' --env CHINACARAPI_KEY='<CHINACARAPI_KEY>' -- npx -y encarapi-mcp~/.cursor/mcp.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"command": "npx",
"args": [
"-y",
"encarapi-mcp"
],
"env": {
"ENCARAPI_KEY": "<ENCARAPI_KEY>",
"CHINACARAPI_KEY": "<CHINACARAPI_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"chinacarapi-chinese-used-cars": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"encarapi-mcp"
],
"env": {
"ENCARAPI_KEY": "<ENCARAPI_KEY>",
"CHINACARAPI_KEY": "<CHINACARAPI_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"command": "npx",
"args": [
"-y",
"encarapi-mcp"
],
"env": {
"ENCARAPI_KEY": "<ENCARAPI_KEY>",
"CHINACARAPI_KEY": "<CHINACARAPI_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"command": "npx",
"args": [
"-y",
"encarapi-mcp"
],
"env": {
"ENCARAPI_KEY": "<ENCARAPI_KEY>",
"CHINACARAPI_KEY": "<CHINACARAPI_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"command": "npx",
"args": [
"-y",
"encarapi-mcp"
],
"env": {
"ENCARAPI_KEY": "<ENCARAPI_KEY>",
"CHINACARAPI_KEY": "<CHINACARAPI_KEY>"
}
}
}
}远程托管
claude mcp add --transport http chinacarapi-chinese-used-cars https://mcp.chinacarapi.com/mcp --header 'Authorization: <AUTHORIZATION>' --header 'x-china-key: <X_CHINA_KEY>'~/.codex/config.toml
[mcp_servers.chinacarapi-chinese-used-cars]
url = "https://mcp.chinacarapi.com/mcp"
http_headers = { Authorization = "<AUTHORIZATION>", x-china-key = "<X_CHINA_KEY>" }
# codex mcp add chinacarapi-chinese-used-cars --url https://mcp.chinacarapi.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"url": "https://mcp.chinacarapi.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>",
"x-china-key": "<X_CHINA_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"chinacarapi-chinese-used-cars": {
"type": "http",
"url": "https://mcp.chinacarapi.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>",
"x-china-key": "<X_CHINA_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"httpUrl": "https://mcp.chinacarapi.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>",
"x-china-key": "<X_CHINA_KEY>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.chinacarapi.com/mcp",
"--header",
"Authorization:<AUTHORIZATION>",
"--header",
"x-china-key:<X_CHINA_KEY>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"chinacarapi-chinese-used-cars": {
"url": "https://mcp.chinacarapi.com/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>",
"x-china-key": "<X_CHINA_KEY>"
}
}
}
}需要的环境变量
ENCARAPI_KEYCHINACARAPI_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。