Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Cad MCP Server

MCP server by mlightcad Verified · npm:@mlightcad

Cad MCP Server lets external AI clients open, query, script and save CAD drawings through a stdio MCP server. It is aimed at developers and teams who want AI assistants to work with DWG and DXF files.

  • Score 89
  • 1.3k stars
  • 506 a week
  • MIT
  • Updated

Install Cad MCP Server

Built from the published package, never by AI.

claude mcp add cad-mcp-server -- npx -y @mlightcad/cad-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Cad MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the cad-mcp-server block.

About

Cad MCP Server is a stdio MCP server published by mlightcad under the package name @mlightcad/cad-mcp-server. It exposes the same script tool catalog that MLightCAD's built-in AI agent uses, so external assistants can work with the same capabilities. The source names Claude Desktop and Cursor as examples of external AI clients.

An assistant can open drawings, query entities, run scripts, and save results. Scripts run in a sandboxed JavaScript runtime that exposes a unified cad.* host API for querying, drawing, modifying, measuring, and exporting. MLightCAD states that scripts and tool calls run locally, so drawing data stays on the user's machine. The project suits developers and teams working with DWG and DXF files who want AI assistants to handle CAD tasks.

Written from the project's README and checked against it.

Tools it gives your assistant

  • Open drawingsLets an external AI assistant open a CAD drawing.
  • Query entitiesLets the assistant read entities from an open drawing.
  • Run scriptsRuns sandboxed JavaScript scripts that use the cad.* host API.
  • Save resultsLets the assistant save the results of its work to the drawing.

What you need

  • Node.js 24 or later and pnpm 10 or later, as listed for the MLightCAD repository
  • An MCP client such as Claude Desktop or Cursor

Try asking

  • Open this DWG file and list the entities on the walls layer.
  • Run a script that totals the length of all lines in the open drawing.
  • Save the drawing after updating the block references.

Good to know

  • Scripts run in a sandbox where import, eval, network and page access are blocked.
  • Scripts have step and time budgets and a snapshot count cap.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Cad MCP Server

All alternatives →

Compare with Appllama, codesign or Pascal 3D Editor

Cad MCP Server: common questions

Does the MCP server send drawing data to the cloud?

The source says scripts and tool calls run locally, so drawing data never leaves the user's machine.

Which AI clients can connect to it?

The source gives Claude Desktop and Cursor as examples of external AI clients that use the stdio MCP server.

Can scripts access the network or load modules?

No. The source says AST validation blocks import, eval, network and page access before a script runs.

How do I install Cad MCP Server?

In Claude Code run claude mcp add cad-mcp-server -- npx -y @mlightcad/cad-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Cad MCP Server the official server?

Cad MCP Server is published by npm:@mlightcad from its verified domain in the official MCP Registry.

Is Cad MCP Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Cad MCP Server safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Cad MCP Server?

Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.

Does Cad MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Cad MCP Server Install

Add to stack

Loading.