Loading repository data…
Loading repository data…
AnCode666 / repository
MCP server for use CAD software through AI assistants like Claude for Desktop or Cursor
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Control your CAD applications with your AI assistant through the Model Context Protocol (MCP).
Documentation: https://AnCode666.github.io/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.
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
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.
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%.
[!TIP] Each tool accepts multiple operations in a single call using a compact shorthand format, reducing API overhead by up to 70%.
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")
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.
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 verbositystartup_wait_time: Seconds to wait for CAD application to start (increase if CAD is slow)command_delay: Delay between commands in secondsdashboard.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 exportsoutput.allow_arbitrary_paths: Set to true to allow saving files to any absolute path on the system, bypassing path-traversal prevention checks.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 problemsINFO: General informational messages (default)WARNING: Warning messages for potential issuesERROR: Error messages onlyNote: Restart the MCP server after changing configuration.
manage_session with {"action": "status"} to diagnose the issueThe dashboard provides a real-time view of the CAD state. You can manually refresh the data using the "Refresh Now" button.
dashboard.port in src/config.json to your preferred port.manage_session with {"action": "connect"} to re-establish connectionmanage_session → {"action": "status"}| 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 |
Version 0.2.0 - Unified tool architecture, block attribute management, and modern packaging.
Apache License 2.0 - see LICENSE file for details.
This project builds upon:
For issues, questions, or feature requests, please open an issue on the repository.
Need help setting up? Start with the installation steps above.