Skip to content
farzad edited this page Oct 7, 2026 · 3 revisions

Peykan: connecting AI agents to vehicle systems

Peykan Wiki

Peykan is an MCP (Model Context Protocol) server that gives LLMs and AI agents access to vehicle data: CAN bus frames and DBC-decoded signals, OBD-II, UDS over ISO-TP, and SAE J1939. It ships with a simulated vehicle, so you can try everything without hardware, and it can analyse recorded CAN logs or connect to a real CAN adapter behind a read-only-by-default safety policy.

pip install peykan
peykan demo          # simulated vehicle + MCP server on http://localhost:6278

This wiki is the detailed reference; the README is the two-minute overview.

Where to start

If you want to... Go to
Install it and run a simulated vehicle Installation → Quickstart
Connect Claude Desktop, VS Code, Cursor, Ollama or MCP Inspector Connecting MCP Clients
See every tool and prompt an AI client can use MCP Tools Reference
See every peykan command CLI Reference
Analyse a recorded .asc / .blf / .trc / candump log Recorded CAN Logs
Read VINs, data identifiers and DTCs over UDS UDS over ISO-TP
Work with trucks and buses (29-bit IDs, PGNs, DM1) SAE J1939
Connect a real CAN adapter safely Real Hardware and Safety
Make the simulated vehicle misbehave on purpose Fault Injection
Understand OBD-II and the DBC diagnostic protocol Diagnostics and OBD-II
Configure it with environment variables Configuration
Use the live web dashboard Dashboard
Run it in Docker Docker and Deployment
Understand how it's built Architecture
Contribute or run the tests Development and Testing
Fix something that isn't working Troubleshooting
See what's planned Roadmap

What's in the box

  • MCP server (peykan server): 22 tools, 5 prompts and a DBC resource over SSE, streamable HTTP or stdio, plus a live dashboard.
  • Simulated vehicle (peykan simulate): four 11-bit ECUs from a DBC, OBD-II and UDS responders, a J1939 engine/brake/cluster side, all driven by one consistent driving model, with seven fault scenarios.
  • CLI (peykan ...): the same capabilities from a terminal, plus log recording and replay.
  • peykan demo runs the simulator and server in one process, which is what you want on a laptop (see Troubleshooting).

Scope

Built for learning, prototyping and AI-assisted diagnostics experiments. It is not a certified automotive tool; on a real vehicle, keep the default read-only policy unless you know exactly what a request does. MIT licensed, see LICENSE.

Clone this wiki locally