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.
Install Cad MCP Server
Built from the published package, never by AI.
claude mcp add cad-mcp-server -- npx -y @mlightcad/cad-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"cad-mcp-server": {
"args": [
"-y",
"@mlightcad/cad-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"cad-mcp-server": {
"args": [
"-y",
"@mlightcad/cad-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"cad-mcp-server": {
"args": [
"-y",
"@mlightcad/cad-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add cad-mcp-server -- npx -y @mlightcad/cad-mcp-server{
"mcpServers": {
"cad-mcp-server": {
"args": [
"-y",
"@mlightcad/cad-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add cad-mcp-server npx -y @mlightcad/cad-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
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.
