Skip to main content
Glama
AnCode666

multiCAD-mcp

by AnCode666

multiCAD-mcp

Control your CAD applications with your AI assistant through the Model Context Protocol (MCP).

Documentation License Python MCP

Documentation: https://AnCode666.github.io/multiCAD-mcp/

What is multiCAD-mcp?

multiCAD-mcp is an MCP server that lets you control your CAD software using AI assistants like Claude for desktop or Cursor. Whether you're drawing shapes, managing layers, automating repetitive tasks, o doing complex ones, you can do it all through text-based instructions.

Related MCP server: CAD-MCP

Features

  • Multiple CAD Support: Works with AutoCAD®, ZWCAD®, GstarCAD®, and BricsCAD®

  • 7 Unified MCP Tools: Clean access to 56 CAD commands for drawing, layers, entities, blocks, and files

  • Block Attributes (v0.2.0+): Read and write block attribute values

  • Block Creation: Create blocks from entities or user selection

  • Simple command execution: "Draw a red circle at 50,50 with radius 25" - no complex syntax needed

  • Complex tasks execution: "Draw the graph of y = sen(X) and label the axes"

  • Simple Integration: Works with Claude, Cursor, VS Code, and any MCP-compatible client

  • Fast & Reliable: Efficient COM-based architecture for real-time CAD control

  • Flexible: Direct tool calls or natural language - choose what works for you

System Requirements

  • Windows OS (required - uses Windows COM technology)

  • Python 3.10 or higher

  • One or more CAD applications installed in your computer

Installation

Detailed installation instructions are available in docs/01-SETUP.md.

Quick start:

# Install uv (if not installed)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Clone
git clone https://github.com/AnCode666/multiCAD-mcp.git
cd multiCAD-mcp
uv sync --dev
uv run python -m pip install --upgrade pywin32

Setup with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "multiCAD": {
      "command": "C:\\path\\to\\multiCAD-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\path\\to\\multiCAD-mcp\\src\\server.py"]
    }
  }
}

Important: Use the full path to the Python interpreter in your virtual environment (.venv\Scripts\python.exe), not the system py command. This ensures Claude Desktop uses the correct Python environment with all required dependencies installed.

Replace C:\path\to\multiCAD-mcp with your actual installation path.

Usage Examples

Direct Tool Calls

multiCAD-mcp provides 7 unified MCP tools that provide access to 56 different CAD commands. This architecture is designed for high efficiency, allowing multiple operations to be dispatched in single calls, reducing API overhead by up to 70%.

  • Drawing & Shapes: Lines, circles, arcs, rectangles, polylines, splines, and tables.

  • Block Management: Create blocks (from entities or selection), insert (batch/single), list, and audit.

  • Layer Management: Create, list, rename/delete (batch), and toggle visibility.

  • Entity Manipulation: Move, rotate, scale, copy/paste, and selection (by type/layer/color).

  • Property Management: Change color/layer (batch/single) and set color ByLayer.

  • Data & Export: Extract data (JSON), export to Excel (total or selected), and entity debug.

  • View & Navigation: Zoom extents, fit view, and undo/redo operations.

  • Files & Session: Save (DWG/DXF/PDF), new/close drawings, and multi-drawing switching.

  • Connection & Control: Connection lifecycle, diagnostics, and natural language fallback.

TIP

Each tool accepts multiple operations in a single call using a compact shorthand format, reducing API overhead by up to 70%.

Selected Entity Export

Export or extract data from only the entities currently selected in your CAD viewport:

# Export selected entities to Excel
export_data(scope="selected", format="excel", filename="selected_entities.xlsx")

# Extract selected entity data as JSON
export_data(scope="selected", format="json")

Complex Tasks

You can ask your AI assistant to execute complex tasks that require multiple tools, such as drawing graphs of equations, complex title blocks, or data tables.

Configuration

Edit src/config.json to customize:

{
  "logging_level": "INFO",
  "cad": {
    "autocad": {
      "startup_wait_time": 20,
      "command_delay": 0.5
    }
  },
  "dashboard": {
    "port": 8888
  },
  "output": {
    "directory": "~/Documents/multiCAD Exports",
    "allow_arbitrary_paths": true
  }
}

Key settings:

  • logging_level: Set to DEBUG, INFO, WARNING, or ERROR to control log verbosity

  • startup_wait_time: Seconds to wait for CAD application to start (increase if CAD is slow)

  • command_delay: Delay between commands in seconds

  • dashboard.port: Web dashboard port (default: 8888)

  • open_dashboard: [host, port] — open web dashboard in browser (default from config.json: 8888)

  • output.directory: Default directory for saved drawings and exports

  • output.allow_arbitrary_paths: Set to true to allow saving files to any absolute path on the system, bypassing path-traversal prevention checks.

Troubleshooting

Checking Logs

multiCAD-mcp generates detailed logs to help diagnose issues:

Log Location: logs/multicad_mcp.log (created automatically in the project's logs/ directory)

View logs:

# View latest 50 log entries
Get-Content logs/multicad_mcp.log -Tail 50

# View all logs
Get-Content logs/multicad_mcp.log

# Monitor logs in real-time (updates automatically)
Get-Content logs/multicad_mcp.log -Wait -Tail 10

Adjust log level in src/config.json:

{
  "logging_level": "DEBUG"
}

Available levels (from most to least verbose):

  • DEBUG: Detailed information for diagnosing problems

  • INFO: General informational messages (default)

  • WARNING: Warning messages for potential issues

  • ERROR: Error messages only

Note: Restart the MCP server after changing configuration.

"Connection failed"

  • Make sure your CAD application is running

  • Check that you have the correct version installed

  • Verify Windows COM is properly configured

  • Use manage_session with {"action": "status"} to diagnose the issue

  • Check logs for detailed error messages (see above)

The dashboard provides a real-time view of the CAD state. You can manually refresh the data using the "Refresh Now" button.

  • Dashboard Port: Change dashboard.port in src/config.json to your preferred port.

  • Manual Refresh: Click the refresh button to sync with current CAD state.

"Not connected"

  • The server automatically connects on first use

  • If it fails, restart the CAD application and try again

  • Use manage_session with {"action": "connect"} to re-establish connection

  • Review logs to identify connection issues

Commands not working

  • Check your CAD application's command line for messages or errors

  • Ensure coordinates are in valid format (e.g., "0,0" for 2D, "0,0,0" for 3D)

  • Verify connection status with manage_session{"action": "status"}

  • Enable DEBUG logging to see detailed command execution information

Documentation

Supported CAD Applications

Application

Status

Notes

AutoCAD 2018+

✅ Full Support

Primary implementation

ZWCAD 2020+

✅ Full Support

Uses AutoCAD-compatible API

GstarCAD 2020+

✅ Full Support

Uses AutoCAD-compatible API

BricsCAD 21+

✅ Full Support

Uses AutoCAD-compatible API

Project Status

Version 0.2.0 - Unified tool architecture, block attribute management, and modern packaging.

License

Apache License 2.0 - see LICENSE file for details.

Acknowledgments

This project builds upon:

Support

For issues, questions, or feature requests, please open an issue on the repository.


Need help setting up? Start with the installation steps above.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Enables controlling CAD software (AutoCAD, GstarCAD, ZWCAD) through natural language instructions, allowing users to create and modify drawings without manually operating the CAD interface.
    Last updated
    468
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables users to control CAD software like AutoCAD, GstarCAD, and ZWCAD through natural language instructions via the Model Context Protocol. It supports automated drawing of shapes, layer management, and saving designs to DWG files without manual interface interaction.
    Last updated
    2
  • A
    license
    A
    quality
    A
    maintenance
    Production-grade AutoCAD automation server enabling real-time CAD control via COM and headless DXF operations through 87 tools, including drawing creation, entity modification, layer management, and batch processing, designed for AI agent integration via the Model Context Protocol.
    Last updated
    100
    26
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Connects Claude AI to AutoCAD for architectural design, enabling natural language to execute 684 commands. Automates drawing creation and editing through the Model Context Protocol.
    Last updated
    24
    4
    MIT

View all related MCP servers

Related MCP Connectors

  • DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnCode666/multiCAD-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server