Back to Home
mixelpixx icon

KiCAD-MCP-Server

by mixelpixx

Overview

Enables AI assistants like Claude to interact with KiCAD for PCB design automation, providing comprehensive tool schemas and real-time project state access.

Installation

Run Command
node dist/index.js

Environment Variables

  • JLCPCB_API_KEY
  • JLCPCB_API_SECRET
  • KICAD_PYTHON
  • PYTHONPATH
  • LOG_LEVEL

Security Notes

The server uses `child_process.spawn` in TypeScript to invoke a Python script, and the Python backend then uses `subprocess.run` (or similar) to execute `kicad-cli` commands. Multiple tools (e.g., `export_gerber`, `export_pdf`, `run_drc`) pass user-supplied parameters (`outputDir`, `outputPath`, `reportPath`) to these shell commands. If these parameters are not rigorously sanitized and escaped before interpolation into the shell command string, this creates a potential for command injection vulnerabilities. For instance, providing a malicious path like `'my_output && rm -rf /'` could execute arbitrary commands on the host system. The code snippets provided do not explicitly show robust input sanitization for these shell executions.

Similar Servers

Stats

Interest Score69
Security Score4
Cost ClassMedium
Avg Tokens12000
Stars253
Forks48
Last Update2026-01-11

Tags

KiCADPCB DesignAI AssistantMCPAutomationElectronicsCAD