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

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.

Inputs of Ohmforge Gerber & Drill Viewer with DRC-lite
FieldTypeDefaultDescription
filefile—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.
drillfile—Separate drill file (optional). Add an Excellon drill file when it is not inside the ZIP.
texttextarea—Or paste one Gerber or Excellon file. Used together with any uploaded files.
sideselect (top, bottom)"top"Board side for the image
minTraceMmnumber0.15Minimum trace width. Drawn traces narrower than this are reported.
minClearanceMmnumber0.15Minimum copper clearance. Sampled gaps between separate copper islands below this are reported.
minAnnularRingMmnumber0.13Minimum annular ring. Copper left around a plated hole, from the drill edge to the pad edge.
minEdgeMmnumber0.3Minimum hole-to-edge distance. From the hole edge to the nearest board outline.
sampleMmnumber0Sampling grid (0 = automatic). Grid step for the copper area and clearance estimate; automatic keeps about four million points.
mountMinMmnumber2Mounting holes from
mountMaxMmnumber4.5Mounting 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)

{
  "mcpServers": {
    "ohmforge-gerber-viewer": { "type": "http", "url": "https://ohmforgegerberviewer.usefulweb.site/mcp" }
  }
}