evsoch-mcp
A secure thin client bridge for EVSocho vehicle data ingest, enabling tools like health check, brand listing, and vehicle draft validation/upsert via daily tokens and server-side auth.
README
evsoch-mcp
Secured MCP bridge for EVSocho vehicle ingest.
This process is a thin client. It never talks to Supabase directly and must never be given SUPABASE_SERVICE_ROLE_KEY or other DB credentials. All privileged work (token verification, rate limits, Zod validation, upsert_vehicle_graph) stays on the EVSocho Next.js server.
Cursor / agent
│ stdio (MCP)
▼
evsoch-mcp ── HTTPS + Bearer daily token ──► EVSocho /api/ingest/*
│
▼
server-side auth + DB
Auth model
| Who | Credential | Can |
|---|---|---|
| MCP / partners | MCP Daily API Key from admin dashboard (evs_…, rotates at midnight IST) |
Call /api/ingest/* |
| EVSocho server | SUPABASE_SERVICE_ROLE_KEY (server env only) |
Validate + Draft upsert/delete in DB |
| Admin humans | Supabase Auth + roles | Copy today’s key, review Drafts, Make Live in UI |
Never put Supabase service-role keys in MCP env or share them with agents.
Each morning (IST), open Admin → dashboard (or API Keys), copy the current MCP Daily API Key into Cursor MCP env as EVSOCH_INGEST_TOKEN.
Tools
| Tool | Purpose |
|---|---|
health_check |
Reachability + API key acceptance |
list_brands |
Resolve brand_id |
create_brand |
Create brand if missing (idempotent by name; research online first) |
validate_vehicle_draft |
Server schema check, no write |
upsert_vehicle_draft |
Create/update Draft only (server DB write) |
delete_vehicle_draft |
Soft-delete Draft only (server DB write) |
get_ingest_schema_notes |
Local contract notes |
publish_status is always forced to Draft. Live/Verified vehicles cannot be updated or deleted via ingest — use the admin UI.
Failed upserts/deletes return structured fields: reason, code, details, hint, resolution, and existing (when a slug/id conflict exists). MCP surfaces these to the agent — do not treat a bare “Could not save” as complete.
Slug conflicts:
- Live/Verified owns slug → keep it; create Draft under a new slug (e.g.
slug-draft). - Draft owns slug → update with
vehicle_id, or soft-delete only if that Draft was a mistake.
Setup
export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
cd /path/to/evsoch-mcp
npm install
cp .env.example .env # optional; prefer Cursor MCP env
Required env:
EVSOCH_API_BASE_URL— HTTPS app origin (http only for localhost)EVSOCH_INGEST_TOKEN— daily token from admin panel (min length enforced)
Cursor MCP config
Add to your Cursor MCP settings (example):
{
"mcpServers": {
"evsoch": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/evsoch-mcp/src/index.ts"],
"env": {
"EVSOCH_API_BASE_URL": "https://www.evsoch.com",
"EVSOCH_INGEST_TOKEN": "paste-daily-token-here"
}
}
}
}
Do not commit tokens. Prefer the Cursor env UI over checking .env into git.
Local run
export EVSOCH_API_BASE_URL=http://localhost:3000
export EVSOCH_INGEST_TOKEN=your-token
npm start
Use stderr for logs; stdout is reserved for MCP JSON-RPC.
Security model
See SECURITY.md.
License
Private — EVSOCH.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。