mcpField
C
Cad Mcp Server

Cad Mcp Server

Local
github.comAI & Agents7Updated 1w ago

About Cad Mcp Server

Cad Mcp Server is a local MCP server for inspecting and measuring STEP files without installed CAD software or a license. It computes reproducible geometric results with Open CASCADE, while an assistant interprets their engineering significance.

Key features

  1. 01Inspect dimensions, volume, area, and structure
  2. 02Find faces, edges, vertices, and bodies
  3. 03Measure thickness, draft, clearance, and sections
  4. 04Compare geometry across STEP revisions
  5. 05Track entity IDs and file revisions

Use cases

  1. 01Review a STEP part’s dimensions and volume
  2. 02Check wall thickness or draft on selected faces
  3. 03Compare two part revisions
  4. 04Inspect B-rep health before engineering review

MCP support

It exposes STEP inspection, entity discovery, measurement, and revision comparison tools to MCP clients. It runs locally over stdio and reads files by path.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"mattmohandiss-cad": {
"command": "npx",
"args": [
"-y",
"cad-mcp-server"
]
}
}
}
Run commandnpx -y cad-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmcad-mcp-server0.8.1

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
file_pathstringYesAbsolute or relative path to the STEP file on the local filesystem. Paths resolve from the server's working directory. For files > 100MB, the call may take several seconds; do not chain with other inspect calls.

Details

From the project README

CAD MCP Server

npm version npm downloads license CI

An MCP server that measures STEP CAD files for an AI assistant: overall size and volume, hole and boss diameters, wall thickness, clearance, draft, cross-sections, and differences between two revisions. Measurements are computed by the Open CASCADE kernel from the model's own geometry.

The assistant measures a pocket floor to cross-bore distance of 0.8 mm, sections the model to confirm it, and verifies 3.0 mm in the revised STEP file.

Quick start

Add the server to your MCP client, then point your assistant at a STEP file:

{
  "mcpServers": {
    "cad": {
      "command": "npx",
      "args": ["-y", "cad-mcp-server"]
    }
  }
}

Works with any MCP client, including Claude Desktop, Cursor, and VS Code.

Example prompts

  • "What are the overall dimensions and volume of this part?"
  • "Find the cylindrical faces and list their diameters and axes."
  • "Measure wall thickness on these faces and report it in millimetres."
  • "What is the minimum distance between this hole and the nearest wall?"
  • "Measure draft relative to the +Z direction and list faces with negative draft."
  • "Cut a section through this body at X = 40."
  • "What changed between revision A and revision B?"

More examples, including DFM-style review prompts, are in docs/EXAMPLE_PROMPTS.md.

Tools

ToolReturns
inspectBounding-box dimensions, volume, surface area, body and assembly structure, B-rep health, and a revision-bound reference.
find_entitiesFaces, edges, vertices, and bodies, with filters for surface type, radius, axis, and area.
measureDistance between faces, wall thickness, draft, ray casts, ray grids, point analysis, planar sections, and edge continuity.
diffDimension, volume, area, and topology deltas between two STEP revisions, plus parsed STEP metadata.

Measurement kinds are distance, thickness, draft, ray, ray_grid, point_analysis, section, and continuity. Lengths are millimetres and angles are degrees.

Results are reproducible: the server returns the entity IDs and the SHA-256 revision each measurement came from, and rejects stale IDs when a file changes underneath a session. It reports geometry; whether a part is manufacturable remains an engineering judgment.

Requirements

  • Node.js 24+
  • Windows x64, macOS ARM64 (Apple Silicon), or Linux x64
  • STEP files, as exported by SolidWorks, Fusion 360, Onshape, FreeCAD, CATIA, or any other CAD system

FAQ

Does it need CAD software installed? No. It reads STEP files directly, so it works on a machine without a CAD application or license.

Do my files leave my machine? No. The server runs locally over stdio and reads files by path. It is read-only and never writes to your CAD data.

How is this different from asking an assistant to look at a screenshot? Measurements are computed from the model's B-rep geometry by Open CASCADE, so the same file and query return the same numbers. Each result also carries the entity IDs and revision it came from.

Documentation

License

MIT. The bundled Open CASCADE sidecar uses LGPL-2.1. See THIRD_PARTY_NOTICES.md.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.