Skip to main content
Glama
Avinash1286

KiCAD MCP Server

by Avinash1286

Get Board 2d View

get_board_2d_view
Destructive

Render a 2D view of a PCB into PNG, JPG, or SVG, with optional layer filtering and inline or file delivery.

Instructions

Render a 2D image of the PCB using kicad-cli. Returns PNG, JPG, or SVG. Use layers to filter — e.g. ["F.Cu","B.Cu","Edge.Cuts"] for copper + outline only. Use responseMode to choose delivery: "inline" (default) — PNG/JPG rendered as an image visible to Claude; SVG returned as text. "file" — image written next to the .kicad_pcb as _2d_view.; filePath is returned. Use file mode for large boards to avoid MCP message-size limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNoOutput image width in pixels (default: 1600)
formatNoOutput format (default: png)
heightNoOutput image height in pixels (default: 1200)
layersNoLayer names to include, e.g. ["F.Cu","B.Cu","Edge.Cuts"]. Omit for all layers.
pcbPathNoAbsolute path to the .kicad_pcb file. Falls back to the currently loaded board if omitted.
responseModeNo"inline" (default): image returned directly; "file": written to disk, filePath returned

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description transparently explains side effects: file mode writes an image next to the .kicad_pcb file and returns filePath, while inline mode returns the image directly. It also clarifies that SVG is returned as text versus PNG/JPG as rendered images. These details complement the destructiveHint: true annotation without contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise but information-dense. It opens with the core purpose, then uses examples and brief explanations to clarify layers and responseMode. Every sentence contributes meaningful guidance, with no repetition or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity, the description covers all key aspects: what it renders, available formats, layer filtering, both delivery modes, and a practical warning about large boards. An output schema exists so return values are further documented, and the description provides sufficient context for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already covers all parameters with descriptions, providing a baseline of 3. The description adds extra meaning beyond the schema by giving a concrete layer example (F.Cu, B.Cu, Edge.Cuts) and explaining the inline/file response modes with their delivery implications, which increases the value to 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool renders a 2D image of the PCB using kicad-cli and returns PNG, JPG, or SVG. It names the specific resource (PCB) and action (render). However, it does not explicitly compare with sibling export tools like export_pcb_svg, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage guidance: layer filtering examples, responseMode choices with defaults, and a specific recommendation to use file mode for large boards to avoid MCP message-size limits. It does not discuss when to prefer alternative export tools, but within its own scope the usage context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Avinash1286/KiCAD-MCP-Server-THEAVI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server