Skip to main content
Glama
Ahmedmuji

AutoCAD MCP Server

by Ahmedmuji

AutoCAD MCP Server for Claude Web (claude.ai)

Connect locally running AutoCAD 2014+ to Claude Web (claude.ai) via Model Context Protocol (MCP) and Cloudflare Tunnels.

Includes full source code for the 149-tool AutoCAD MCP Pro engine with dual COM API + ezdxf backend support.


πŸ—οΈ Architecture

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚  Claude Web           β”‚
   β”‚  (claude.ai)          β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ Remote MCP (Streamable HTTP / SSE) over HTTPS
               β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ Cloudflare Tunnel     β”‚ (https://<subdomain>.trycloudflare.com/mcp)
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ Secure Encrypted Tunnel
               β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ autocad-mcp Server    β”‚ (FastMCP 3.4.7 Server on 127.0.0.1:8000)
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚ PyWin32 COM API
               β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚  AutoCAD 2014         β”‚ (Live AutoCAD Instance)
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Related MCP server: vn-autocad-claude

πŸš€ Quick Start

1. Requirements

  • Windows PC

  • AutoCAD 2014 (or newer 64-bit AutoCAD)

  • Python 3.11+ 64-bit

  • cloudflared.exe (Cloudflare Tunnel client)

2. Installation

Install dependencies:

pip install -r requirements.txt

3. Start AutoCAD MCP Server

Double-click start_autocad_mcp.bat or run:

set AUTOCAD_MCP_BACKEND=com
python server.py --transport http --host 127.0.0.1 --port 8000

4. Start Cloudflare Tunnel

Double-click start_cloudflare.bat or run:

cloudflared tunnel --url http://127.0.0.1:8000

This will output a temporary HTTPS URL (e.g. https://<subdomain>.trycloudflare.com).


πŸ”— Connecting to Claude Web (claude.ai)

  1. Open Claude Web.

  2. Go to Settings β†’ Connectors (or Remote MCP Connectors).

  3. Click Add Remote MCP Connector.

  4. Enter your endpoint URL:

    https://<your-subdomain>.trycloudflare.com/mcp
  5. Click Connect. Claude Web will connect and expose all 149 AutoCAD MCP tools!


πŸ› οΈ Testing

Run the test script to verify connection and tool listing:

python test_mcp.py http://127.0.0.1:8000/mcp

Or test via Cloudflare public endpoint:

python test_mcp.py https://<your-subdomain>.trycloudflare.com/mcp

πŸ”’ Security

  • Loopback Bind: The MCP server binds only to 127.0.0.1:8000.

  • Authentication: Optional Bearer token authentication via MCP_AUTH_TOKEN environment variable.


πŸ“„ License & Credits

Built with FastMCP and autocad-mcp-pro (by Umutcan Edizsalan).

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables programmatic control of AutoCAD through COM automation, allowing natural language commands to create structures, manage layers, and manipulate entities via MCP clients like Claude.
    67
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Enables Claude to control AutoCADβ€”draw, edit, query, layers, blocks, annotations, screenshots, plot to PDFβ€”using plain language.
    8
    10
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants like Claude for Desktop or Cursor to control supported CAD applications through MCP, supporting drawing, layer and entity management, block operations, data export, and file/session control via natural language or unified tool calls.
    -
  • F
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants like Claude for Desktop or Cursor to control CAD applications (AutoCAD, ZWCAD, GstarCAD, and BricsCAD) on Windows through natural language or direct tool calls for drawing, layer, entity, block, and file operations. It exposes 7 unified MCP tools covering 56 CAD commands for tasks ranging from simple shape creation to complex multi-step automation.
    -