pcb-mcp
Verified Safeby bunnyf
Overview
Facilitates AI-assisted PCB design workflow by providing an MCP (Model Context Protocol) server for KiCad 9.x.
Installation
python3 /root/pcb/mcp/kicad_mcp_server.pyEnvironment Variables
- KICAD_MCP_PROJECTS_BASE
- KICAD_MCP_TASKS_DIR
- KICAD_MCP_KICAD_CLI
- KICAD_MCP_FREEROUTING_JAR
- KICAD_MCP_JAVA_CMD
- KICAD_MCP_DEFAULT_TIMEOUT
- KICAD_MCP_AUTOROUTE_TIMEOUT
- KICAD_MCP_MAX_FILE_SIZE
- KICAD_MCP_RENDER_WIDTH
- KICAD_MCP_RENDER_HEIGHT
- KICAD_MCP_TASK_MAX_AGE_DAYS
Security Notes
The server demonstrates strong security practices for its operations. It explicitly implements path validation (`is_safe_path`, `validate_file_path`) to prevent directory traversal attacks and restricts file reading to designated project and task directories. Shell injection is prevented by using `shlex.quote()` when constructing commands for background tasks (e.g., auto-routing). The server does not use `shell=True` for `subprocess.run` by default and does not contain obvious hardcoded secrets. It relies on SSH for secure communication, as it interacts via stdin/stdout rather than directly opening network ports. The main residual risk would stem from vulnerabilities in the underlying KiCad CLI, pcbnew API, or FreeRouting, but the server itself aims to interface with these tools securely.
Similar Servers
XcodeBuildMCP
Provides an MCP (Model Context Protocol) server for AI agents and other clients to programmatically build, test, run, and debug iOS and macOS applications, manage simulators/devices, and capture logs.
KiCAD-MCP-Server
Enables AI assistants like Claude to interact with KiCAD for PCB design automation, providing comprehensive tool schemas and real-time project state access.
mcp-k8s
Facilitates natural language interaction and automation for Kubernetes cluster management and Helm operations via the Model Control Protocol (MCP).
MCP-Agent
An autonomous AI agent designed to discover, connect to, and utilize tools and resources from various Model Context Protocol (MCP) servers to accomplish tasks.