AutoCAD MCP Server logo

AutoCAD MCP Server

Community
zh19980811

这个项目是一个基于Model Context Protocol (MCP)的AutoCAD集成服务器,它允许通过自然语言与AutoCAD进行交互。通过这个服务器,用户可以使用Claude等大型语言模型来创建、修改和分析AutoCAD图纸,同时还可以存储和查询CAD元素的相关数据。目前制作参考学习,仅实现端到端之间的通信,具体工具函数尚未晚上

Publisherzh19980811
RepositoryEasy-MCP-AutoCad
LanguagePython
Forks
49
Stars
257
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    AutoCAD MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    257 stars and 49 forks from the linked repository.

MseeP.ai Security Assessment Badge

AutoCAD MCP 服务器 / AutoCAD MCP Server

⚠️ 本项目目前维护精力有限,欢迎有兴趣的开发者参与协作!
⚠️ Currently this project is not actively maintained due to time constraints. I would be very happy to collaborate with anyone interested in co-maintaining or extending it.

基于 Model Context Protocol (MCP) 的 AutoCAD 集成服务器,允许通过 Claude 等大型语言模型 (LLM) 与 AutoCAD 进行自然语言交互。
An AutoCAD integration server based on Model Context Protocol (MCP), enabling natural language interaction with AutoCAD via large language models like Claude.

🔗 项目在 MseeP.ai 展示 / Referenced on MseeP.ai:
https://mseep.ai/app/zh19980811-easy-mcp-autocad

🎬 演示视频 / Demo Video:
AutoCAD MCP 演示视频


✨ 功能特点 / Features

  • 🗣️ 自然语言控制 AutoCAD 图纸 / Natural language control of AutoCAD drawings
  • ✏️ 基础绘图功能(线条、圆)/ Basic drawing tools (line, circle)
  • 📚 图层管理 / Layer management
  • 🧠 自动生成 PMC 控制图 / Auto-generate PMC control diagrams
  • 🔍 图纸元素分析 / Drawing element analysis
  • 🔦 文本高亮匹配 / Highlight specific text patterns
  • 💾 内嵌 SQLite 数据库存储 CAD 元素 / Integrated SQLite storage for CAD elements

🖥️ 系统要求 / System Requirements

  • Python 3.10+
  • AutoCAD 2018+ (需支持 COM 接口 / with COM interface support)
  • Windows 操作系统 / Windows OS

⚙️ 安装步骤 / Installation

1. 克隆仓库 / Clone the repository

bash
git clone https://github.com/yourusername/autocad-mcp-server.git
cd autocad-mcp-server

2. 创建虚拟环境 / Create virtual environment

Windows:

bash
python -m venv .venv
.venv\Scripts\activate

macOS / Linux:

bash
python -m venv .venv
source .venv/bin/activate

3. 安装依赖 / Install dependencies

bash
pip install -r requirements.txt

4. (可选)构建可执行文件 / (Optional) Build as executable

bash
pyinstaller --onefile server.py

🚀 使用方法 / How to Use

独立运行服务器 / Run server independently

bash
python server.py

集成 Claude Desktop / Integrate with Claude Desktop

编辑配置文件 / Edit config file:

Windows 路径 / Config path on Windows: %APPDATA%\Claude\claude_desktop_config.json

推荐配置 (源码运行) / Recommended Config (Run from source):

💡 请将 path/to/project 替换为您实际的项目绝对路径。 💡 Please replace path/to/project with your actual absolute project path.

json
{
  "mcpServers": {
    "easy-autocad": {
      "command": "C:/path/to/project/.venv/Scripts/python.exe",
      "args": [
        "C:/path/to/project/server.py"
      ]
    }
  }
}

注意 / Note:

  1. 请使用正斜杠 / 或双反斜杠 \\ 作为路径分隔符。
  2. python.exe 必须指向 .venv 虚拟环境中的解释器。

🧰 工具 API / Available API Tools

功能 / Function描述 / Description
create_new_drawing创建新的图纸 / Create a new drawing
draw_line画直线 / Draw a line
draw_polyline画多段线 / Draw a polyline
draw_rectangle画矩形 / Draw a rectangle
draw_circle画圆 / Draw a circle
draw_text添加文字 / Add text annotation
create_layer创建或修改图层 / Create or modify layer
move_entity移动实体 / Move entity
rotate_entity旋转实体 / Rotate entity
copy_entity复制实体 / Copy entity
highlight_entity高亮显示实体 / Highlight entity
highlight_text_matches高亮显示匹配文本 / Highlight matching text
scan_all_entities扫描并入库 / Scan and save entities
count_text_patterns统计文本模式 / Count text patterns
execute_query执行SQL查询 / Execute SQL query

🙋‍♂️ 维护状态 / Maintenance Notice

⚠️ 当前我正忙于其他项目,维护精力有限。欢迎 Fork 项目或提交 PR,一起完善 AutoCAD 智能交互生态!
⚠️ I'm currently busy and not able to actively maintain this repo. PRs and collaborators are welcome!

📬 联系我 / Contact: 1062723732@qq.com


Made with ❤️ for open-source learning.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "zh19980811-easy-mcp-autocad": {
      "command": "",
      "args": []
    }
  }
}

Use AutoCAD MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once AutoCAD MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add AutoCAD MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the AutoCAD MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "zh19980811-easy-mcp-autocad": {
      "command": "npx",
      "args": [
        "-y",
        "autocad-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the AutoCAD MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the AutoCAD MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use AutoCAD MCP Server to help me with this task?
AutoCAD MCP Server
Sure. I read it.
Here is what I found using AutoCAD MCP Server.

Frequently asked questions

What is the AutoCAD MCP Server MCP server used for?

AutoCAD MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use AutoCAD MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use AutoCAD MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use AutoCAD MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With AutoCAD MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect AutoCAD MCP Server MCP to TypingMind?

AutoCAD MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does AutoCAD MCP Server MCP provide in TypingMind?

AutoCAD MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use AutoCAD MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If AutoCAD MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇