API & MCP
Everything a person can do on Ohmforge Gerber & Drill Viewer with DRC-lite, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgegerberviewer.usefulweb.site/api/v1/calculate– run Ohmforge Gerber & Drill Viewer with DRC-liteGET https://ohmforgegerberviewer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Ohmforge Gerber & Drill Viewer with DRC-lite
Upload the fabrication data of a printed circuit board – a ZIP of Gerber (RS-274X / X2) layers and Excellon drill files from KiCad, Altium, Eagle, EasyEDA or any CAM tool – and get a rendered board (top and bottom), one SVG per layer with correct dark and clear polarity, the board size from the outline, a drill table per diameter, the narrowest drawn trace, a sampled copper clearance and copper area, and a DRC-lite for annular rings and hole-to-edge distances. Layers are recognised from X2 attributes or file names. A board model with the outline and mounting holes is ready for the enclosure generator.
| Field | Type | Default | Description |
|---|---|---|---|
file | file | — | Gerber files (ZIP) or one Gerber or drill file. A ZIP of the fabrication files (layers and drill files) or a single file, up to 25 MB. Files are processed in memory and not kept. |
drill | file | — | Separate drill file (optional). Add an Excellon drill file when it is not inside the ZIP. |
text | textarea | — | Or paste one Gerber or Excellon file. Used together with any uploaded files. |
side | select (top, bottom) | "top" | Board side for the image |
minTraceMm | number | 0.15 | Minimum trace width. Drawn traces narrower than this are reported. |
minClearanceMm | number | 0.15 | Minimum copper clearance. Sampled gaps between separate copper islands below this are reported. |
minAnnularRingMm | number | 0.13 | Minimum annular ring. Copper left around a plated hole, from the drill edge to the pad edge. |
minEdgeMm | number | 0.3 | Minimum hole-to-edge distance. From the hole edge to the nearest board outline. |
sampleMm | number | 0 | Sampling grid (0 = automatic). Grid step for the copper area and clearance estimate; automatic keeps about four million points. |
mountMinMm | number | 2 | Mounting holes from |
mountMaxMm | number | 4.5 | Mounting holes up to. Holes in this diameter range are mounting-hole candidates for the enclosure board model. |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ohmforgegerberviewer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_gerber_viewer - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-gerber-viewer
{
"mcpServers": {
"ohmforge-gerber-viewer": { "type": "http", "url": "https://ohmforgegerberviewer.usefulweb.site/mcp" }
}
}