CAD

Productivity and workflow

CAD MCP Server.

Your AI app calls the CAD MCP server, which does the productivity and workflow work and sends the result back to the chat.

About CAD

CAD is a community MCP server from daobataotie, filed in our directory under productivity and workflow. CAD MCP Server.

At a glance

Publisher
daobataotie (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
753

How to set up CAD

  1. Follow the install steps in the CAD README; it is written in Python, so have that toolchain ready.
  2. Check the CAD README for keys or settings; the registry lists none that CAD requires.
  3. Add CAD to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the CAD tools to confirm the connection.
  5. Run one read-only task with CAD first, and keep your app asking before each tool call until the results look right.

CAD compared with similar servers

  • Obsidian (cyanheads) by cyanheads has fewer GitHub stars than CAD (722 against 753); both are community servers, and both run locally.
  • Obsidian (StevenStavrakis) by StevenStavrakis has more GitHub stars than CAD (754 against 753); both are community servers, and both run locally.
  • Oxynote by oxynote has fewer GitHub stars than CAD (721 against 753); both are community servers, and both run locally.

Before you connect CAD

  • Give CAD its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each CAD tool call until you trust what it does with them.
  • Treat text that CAD fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for CAD on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for CAD

How marketing and sales teams put CAD to work, by company size. Pick the size closest to yours and start CAD on one use case.

Small business

  • A busy owner can use CAD to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask CAD what slipped last week and which campaign tasks have no owner yet.
  • CAD runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect CAD to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use CAD to see where work piles up across projects and move it before deadlines slip.
  • Start CAD on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use CAD to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give CAD scoped access per workspace, so an agent helps one department without reading another's plans.
  • CAD is a community server, so have security review the code and pin a version before CAD touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

CAD README

From daobataotie/CAD-MCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

CAD-MCP Server (CAD Model Context Protocol Server)

English | 中文 | ไทย

Project Introduction

CAD-MCP is an innovative CAD control service that allows controlling CAD software for drawing operations through natural language instructions. This project combines natural language processing and CAD automation technology, enabling users to create and modify CAD drawings through simple text commands without manually operating the CAD interface.

Version 2.0 is fully upgraded based on the latest MCP specification (FastMCP, structured output, tool annotations, progress notifications, Streamable HTTP), and adds 35 tools in total covering querying, editing, layers, drawing management, blocks, and command passthrough, forming a complete "draw → inspect → correct" feedback loop.

Features

CAD Control Functions
  • Multiple CAD Software Support: Supports mainstream CAD software including AutoCAD, GstarCAD (GCAD) and ZWCAD
  • Basic Drawing Functions:
    • Line drawing
    • Circle drawing
    • Arc drawing
    • Ellipse drawing
    • Rectangle drawing
    • Polyline drawing
    • Text addition
    • Pattern filling
    • Dimension annotation
  • Query Functions (the AI can see the actual drawing content):
    • List all layers
    • List entities in model space (returns editable entity handles)
    • Query detailed entity properties by handle (coordinates/radius/text content, etc.)
    • Screenshot of the CAD window for preview
  • Editing Functions: erase, move, rotate, scale, copy, mirror, offset, array (linear/polar), undo/redo
  • Layer Management: Create and switch layers, query layer states
  • Drawing Management: New / open / close / save drawings (DWG/DXF)
  • Block Operations: Create, insert, and list blocks
  • Command Passthrough: Execute any CAD command via send_command (an escape hatch for everything else)
MCP Protocol Features
  • Structured Output: All tools return structuredContent with an outputSchema that clients can parse directly
  • Tool Annotations: Query tools are marked readOnlyHint; destructive operations are marked destructiveHint for client confirmation policies
  • Progress Notifications: Long-running operations (CAD startup, saving) send message notifications to the client
  • Dual Transport Modes: stdio (local, single client) and streamable-http (remote / multiple clients sharing one CAD instance)
  • Error Semantics: Input validation errors are returned as tool errors, enabling model self-correction
Natural Language Processing Functions (legacy interface)
  • Command Parsing: Parse natural language instructions into CAD operation parameters
  • Color Recognition: Extract color information from text and apply it to drawing objects
  • Shape Keyword Mapping: Support recognition of various shape description words
  • Action Keyword Mapping: Recognize various drawing and editing actions

Demo

The following is the demo video.

Installation Requirements

Dependencies
pywin32>=306       # Windows COM interface support
mcp>=1.12,<2       # MCP Python SDK (FastMCP, structured output, Streamable HTTP)
pydantic>=2.0.0    # Data validation
Pillow>=10.0.0     # PNG encoding for screenshot previews
System Requirements
  • Windows operating system
  • Installed CAD software (AutoCAD, GstarCAD, or ZWCAD)
  • Python 3.10+

Configuration

The configuration file is located at src/config.json and contains the following main settings:

{
    "server": {
        "name": "CAD MCP 服务器",
        "version": "2.0.0",
        "transport": "stdio",
        "host": "127.0.0.1",
        "port": 8000
    },
    "cad": {
        "type": "AUTOCAD",
        "progid": "",
        "startup_wait_time": 20,
        "command_delay": 0.5
    },
    "output": {
        "directory": "./output",
        "default_filename": "cad_drawing.dwg"
    }
}
  • server: Server name, version, and transport settings
    • transport: Transport mode, stdio (default, local single client) or streamable-http (remote / multi-client)
    • host / port: Listen address and port for Streamable HTTP mode (can also be overridden via --host / --port command-line arguments)
  • cad:
    • type: CAD software type (AutoCAD, GCAD, GstarCAD, or ZWCAD)
    • progid: COM ProgID to use, e.g. AutoCAD.Application.25.1. Leave empty to auto-detect (versioned ProgIDs are looked up in the registry)
    • startup_wait_time: CAD startup waiting time (seconds)
    • command_delay: Command execution delay (seconds)
  • output: Output file settings

Usage

Starting the Service
# Option 1: Run directly (fully compatible with existing Claude/Cursor configs)
python src/server.py

# Option 2: Install as a CLI tool
pip install -e .
cad-mcp

# Option 3: Run with Streamable HTTP transport (remote / multi-client sharing one CAD instance)
python src/server.py --transport streamable-http --port 8000
# Clients connect to http://127.0.0.1:8000/mcp
Connect from an MCP Client

The server uses stdio transport by default, so the same JSON config works for any MCP client (Claude Desktop, Cursor, Windsurf, TRAE, etc.). Add it to your client's MCP server config file (e.g. claude_desktop_config.json, Cursor's mcp.json), replacing the path with your own:

{
    "mcpServers": {
        "CAD": {
            "command": "python",
            "args": [
                # Your actual path, such as:"C:\\cad-mcp\\src\\server.py"
            ]
        }
    }
}

For Streamable HTTP mode, point the client to http://127.0.0.1:8000/mcp instead.

MCP Inspector
# Note: use your path  
npx -y @modelcontextprotocol/inspector python C:\\cad-mcp\\src\\server.py
Service API

The server provides the following tools (35 in total):

Basic drawing:

  • draw_line: Draw a line
  • draw_circle: Draw a circle
  • draw_arc: Draw an arc
  • draw_ellipse: Draw an ellipse
  • draw_polyline: Draw a polyline
  • draw_rectangle: Draw a rectangle
  • draw_text: Add text
  • draw_hatch: Draw a hatch pattern
  • add_dimension: Add linear dimension

Query:

  • list_layers: List all layers
  • list_entities: List entities in model space (returns editable handles)
  • get_entity_properties: Query detailed entity properties by handle
  • screenshot: Capture the CAD window to confirm drawing results

Editing:

  • erase_entity / move_entity / rotate_entity / scale_entity: Erase / move / rotate / scale entities
  • copy_entity / mirror_entity / offset_entity: Copy / mirror / offset entities
  • array_linear_entity / array_polar_entity: Linear / polar arrays
  • undo / redo: Undo / redo

Layer & drawing management:

  • create_layer / set_current_layer: Layer management
  • new_drawing / open_drawing / close_drawing / save_drawing: Drawing management
  • create_block / insert_block / list_blocks: Block operations
  • send_command: Execute any CAD command via the command line

Legacy:

  • process_command: Process natural language commands

Project Structure

CAD-MCP/
├── imgs/                # Images and video resources
│   └── CAD-mcp.mp4     # Demo video
├── pyproject.toml       # Packaging config (pip install -e .)
├── requirements.txt     # Project dependencies
└── src/                 # Source code
    ├── __init__.py     # Package initialization
    ├── cad_controller.py # CAD controller (COM layer: drawing/query/editing/drawings/blocks)
    ├── config.py        # Config singleton loader
    ├── config.json     # Configuration file
    ├── models.py        # Structured output models (outputSchema)
    ├── nlp_processor.py # Natural language processor
    └── server.py       # Server implementation (FastMCP)

License

MIT License

Questions about CAD

What is the CAD MCP server?

CAD MCP Server. CAD is maintained by daobataotie on GitHub at daobataotie/CAD-MCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the CAD MCP server?

CAD doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (daobataotie/CAD-MCP). Like most servers, CAD ends with a command or URL you paste into your AI app's MCP config.

Does CAD need an API key?

The registry lists no required keys for CAD. Check the CAD README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is CAD an official MCP server?

No. CAD is a community server maintained by daobataotie. Community servers can be excellent; read the code and the open issues before you give CAD access to company data.

What license is CAD under?

CAD is released under the MIT license, according to its GitHub repository. The license covers the code of CAD; the service it connects to has its own terms.