LCS CAD MCP
Allows interaction with a running AutoCAD instance via COM backend on Windows, enabling live drawing operations and DXF file management for building scrutiny workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LCS CAD MCPValidate layers and compute FSI for plot.dxf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LCS CAD MCP
An MCP (Model Context Protocol) server that exposes Pre-DCR and Auto-DCR building scrutiny workflows as AI-consumable tools. Designed to let AI assistants (Claude, etc.) open DXF drawings, validate layer conventions, compute areas, run regulatory rule checks, and generate compliance reports — all via natural language.
What it does
PreDCR setup — creates standardised layers (PREDCR-WALL-EXT, PREDCR-PLOT, etc.) and validates drawings against authority naming conventions
Entity management — draws polylines, lines, arcs, circles, text and blocks; moves, copies, deletes and queries entities
Area computation — calculates plot area, built-up area, carpet area, FSI and ground coverage using Shapely polygons
AutoDCR scrutiny — evaluates FSI, ground coverage, setbacks, parking ratios and height restrictions against loaded DCR rule configs
Report generation — produces PDF, DOCX and JSON compliance reports
Workflow archival — stores scrutiny runs, tool events and audit trails in SQLite
Related MCP server: AutoCAD MCP Pro
Architecture
src/lcs_cad_mcp/
├── modules/
│ ├── cad/ # Drawing lifecycle (open, new, save, backend selection)
│ ├── layers/ # Layer CRUD + property management
│ ├── predcr/ # PreDCR layer catalog and validation
│ ├── entities/ # Entity draw/query/edit tools
│ ├── verification/ # Closure, containment, naming and count checks
│ ├── area/ # FSI, coverage and area computation (Shapely)
│ ├── config/ # DCR rule config load and validation
│ ├── autodcr/ # Rule evaluation engine + dry-run mode
│ ├── reports/ # PDF/DOCX/JSON report generation
│ └── workflow/ # Pipeline orchestration and audit trail
├── backends/
│ ├── ezdxf_backend.py # Cross-platform DXF backend (primary)
│ └── com_backend.py # Windows AutoCAD COM backend (optional)
├── rule_engine/ # DCRConfig Pydantic models + RuleEvaluator
├── archive/ # SQLAlchemy ORM models + repository
└── session/ # DrawingSession context + SnapshotManagerTransport: stdio (default) and SSE supported via FastMCP 3.x.
Requirements
Python 3.11+
uv (recommended) or pip
Installation
git clone <repo-url>
cd lcs-cad-mcp
uv syncFor development dependencies (pytest, ruff):
uv sync --extra devRunning the server
stdio (for Claude Desktop / MCP clients)
uv run python -m lcs_cad_mcpSSE
uv run python -m lcs_cad_mcp --transport sse --port 8000Claude Desktop integration
See docs/claude-desktop-config.md for the full config snippet. Quick version:
{
"mcpServers": {
"lcs-cad": {
"command": "uv",
"args": ["run", "--project", "/path/to/lcs-cad-mcp", "python", "-m", "lcs_cad_mcp"]
}
}
}DCR Rule configs
YAML or JSON configs define the regulatory rules evaluated during scrutiny. Example:
version: "1.0.0"
authority: "MCGM"
effective_date: "2024-01-01"
rules:
- rule_id: "FSI_001"
name: "Max FSI"
rule_type: "FSI"
threshold: 1.5
unit: "ratio"
zone_applicability: ["R1", "R2"]Sample configs are in dcr_configs/. Full schema: docs/dcr-config-schema.md.
Available MCP tools
Category | Tools |
CAD |
|
Layers |
|
PreDCR |
|
Entities |
|
Verification |
|
Area |
|
Config |
|
AutoDCR |
|
Reports |
|
Workflow |
|
Full API reference: docs/tool-api-reference.md.
Testing
uv run pytest173 tests across unit and integration suites. Backends, services, rule engine and archive are all covered.
Windows / AutoCAD COM backend
The COM backend enables live interaction with a running AutoCAD instance on Windows. See docs/windows-deployment-guide.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
AI Hub for AEC — 50+ 3D formats, clash detection, ACC integration via Autodesk Platform Services.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
Connects AI assistants to QCDatabase.AI for everyday construction quality-control work.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Autodesk Civil 3D, allowing them to retrieve project data, create/modify/delete drawing elements, and execute code to automate Civil 3D operations.329MIT
- AlicenseBqualityAmaintenanceProduction-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.2100418 PyPI83MIT
- AlicenseNot gradedqualityDmaintenanceControls CAD applications (AutoCAD, ZWCAD, etc.) via AI assistants through the Model Context Protocol, enabling drawing, layer management, and automation through natural language or direct tool calls.107Apache 2.0
- AlicenseAqualityDmaintenanceEnables automated CAD operations via natural language, supporting both AutoCAD LT on Windows and headless DXF generation on any platform.8MIT