车辆诊断MCP服务器

Peykan是一个将汽车CAN总线、OBD-II、UDS和SAE J1939诊断数据通过模型上下文协议(MCP)暴露给AI代理和大型语言模型的服务器,内置虚拟CAN总线和ECU模拟器,支持故障注入、CAN日志分析与安全传输,适用于无需真实硬件的汽车诊断应用开发与AI车辆交互场景。

  • by farzadnadiri
  • Python
  • 混合部署
  • 25 星标
  • 更新于
在 GitHub 查看 farzadnadiri/MCP-CAN

使用说明

🚗 Peykan: Talk to Your Car Using AI

🔌 Virtual CAN + MCP Server

Peykan is a Model Context Protocol (MCP) server that exposes automotive CAN bus, OBD-II (SAE J1979), UDS, and SAE J1939 diagnostic data to LLMs and AI agents. It ships a built-in virtual CAN bus with an ECU simulator, decodes traffic via a DBC database (cantools), and serves MCP tools over SSE or streamable-HTTP. No CAN hardware, adapter, or vehicle is required by default; optional SocketCAN/vCAN on Linux.

Use it to let an LLM read live CAN frames, decode signals, run OBD-II PID and UDS diagnostic requests, inspect J1939 PGNs/SPNs and DM1 trouble codes, and drive fault-injection scenarios against a simulated vehicle, analyse recorded CAN logs, or work with real hardware behind a read-only-by-default safety policy.

Try it in your browser: peykan.ai gives you a private simulated car and an AI agent to talk to it, no install needed.