Skip to content
MCP server

Loupe — Code-CAD & PCB Review Pipeline

Code-CAD and PCB review scripts that check 3D models and boards before printing or fabbing

Runs locally

Loupe — Code-CAD & PCB Review Pipeline is an open-source MCP server for 3d printing. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Version
1.0.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add loupe -- uvx loupe-cad

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "loupe": {
      "command": "uvx",
      "args": [
        "loupe-cad"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "loupe": {
      "command": "uvx",
      "args": [
        "loupe-cad"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "loupe": {
      "command": "uvx",
      "args": [
        "loupe-cad"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "loupe": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "loupe-cad"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add loupe -- uvx loupe-cad

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.loupe]
command = "uvx"
args = ["loupe-cad"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "loupe": {
      "command": "uvx",
      "args": [
        "loupe-cad"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user loupe uvx -- loupe-cad

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "loupe": {
          "command": "uvx",
          "args": [
            "loupe-cad"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Loupe — Code-CAD & PCB Review Pipeline

Loupe turns parametric CAD and KiCad board scripts into something that can be verified before any filament or fab order is spent. Models are written in Python with build123d or CadQuery, and deterministic checks look for collisions, thin walls, watertightness and drift from a dimension record.

Rendering is part of the review loop: labeled contact sheets with cross-sections and red-painted interference regions, plus a self-contained browser viewer with clip planes and exploded views. Each step is a standalone uv script with inline dependencies, so there is no environment to manage.

The PCB side declares parts, nets and routes in code, runs headless KiCad 10 design-rule checks, and produces Gerber, BOM and position files for JLCPCB. A seven-tool MCP server lets AI coding agents run the same checks and receive rendered images inline.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 7 tools changes data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

draft_checkName suggests: reads
Assert a draft dimension record and optionally an exported STL against it.
draft_sheet
Render a dimensioned drawing and dimension table from a draft, returned inline as PNG.
checkName suggests: reads
Run geometry assertions on STL files, including interference, clearance and wall thickness.
sheet
Render a labeled contact sheet of meshes with slices and interference highlighting, returned inline as PNG.
slice
Run a headless Bambu Studio slice to report print time, filament use and cost.
project_statusName suggests: reads
Report the state of a loupe.json project's build, check and review stages.
project_runName suggests: changes
Run a stage of a loupe.json project workflow.

What it does

Geometry assertions
Exact boolean overlap, clearance, wall-thickness and watertightness checks that exit nonzero when a fact fails.
Dimension draft records
YAML files record named dimensions and their sources, and flag exported meshes that drift from the plan.
Labeled contact sheets
Multi-view renders with captioned camera positions and automatic highlighting of part-to-part overlaps.
Browser viewer
Single-file HTML viewer with orbit, exploded view, millimetre grid and solid section caps.
KiCad board checks
Headless DRC gate covering violations, unrouted nets and unconnected pads, plus a fab profile for JLCPCB.
Fabrication output
Exports Gerber and drill files, BOM and position data, STEP, and an STL that matches the enclosure.

Good for

  • Catch interference between printed enclosure parts before printing
  • Verify a model still matches its drafted dimensions after edits
  • Give an AI coding agent rendered views it can inspect in the same turn
  • Run design-rule checks on a KiCad board before ordering from a fab
  • Prepare Gerber and assembly files for JLCPCB from scripted boards

Pricing

Open source

Free and open source under Apache-2.0.

Prices change. Check charlesbine.com before you buy.

Loupe — Code-CAD & PCB Review Pipeline FAQ

How is Loupe installed?

It runs as single-file uv scripts with inline dependencies, so there is no pip install or virtualenv. The MCP server can be added with claude mcp add loupe -- uvx loupe-cad.

Does Loupe — Code-CAD & PCB Review Pipeline generate CAD models from text prompts?

No. Models are written as parametric Python code using build123d or CadQuery, and Loupe checks and renders the result.

Does the PCB side include autorouting?

No. Routing is defined explicitly as polylines in code, and an experimental bridge to Freerouting exists only for two-layer rectangular boards.

Which licence does Loupe — Code-CAD & PCB Review Pipeline use?

The repository is licensed under Apache-2.0.

Is Loupe — Code-CAD & PCB Review Pipeline free?

Yes. Loupe — Code-CAD & PCB Review Pipeline is open source, so you can use and self-host it for free.

How do I add Loupe — Code-CAD & PCB Review Pipeline to Claude Code?

Run this command in your terminal: claude mcp add loupe -- uvx loupe-cad

What are the best alternatives to Loupe — Code-CAD & PCB Review Pipeline?

The closest alternatives to Loupe — Code-CAD & PCB Review Pipeline are cadloop OpenSCAD and cadloop Slicer.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers