Enables natural language interaction with AutoCAD via Model Context Protocol, supporting basic drawing, layer management, professional diagram generation, element analysis, text pattern highlighting, and SQLite database integration for CAD data.
Unlock the full potential of AutoCAD MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
基于 Model Context Protocol (MCP) 的 AutoCAD 集成服务器,允许通过 Claude 等大型语言模型 (LLM) 与 AutoCAD 进行自然语言交互。 本案例仅作参考和学习,部分CAD功能尚未实现,但实现与autocad端到端之间的通信,但具体的工具函数尚未实现
PMC-3M
)git clone https://github.com/yourusername/autocad-mcp-server.git cd autocad-mcp-server
Windows:
python -m venv .venv .venv\Scripts\activate
macOS / Linux:
python -m venv .venv source .venv/bin/activate
pip install -r requirements.txt
pyinstaller --onefile server.py
python server.py
编辑 Claude Desktop 配置文件(路径如下):
示例配置:
{ "mcpServers": { "autocad-mcp-server": { "command": "path/to/autocad_mcp_server.exe", "args": [] } } }
功能 | 说明 |
---|---|
create_new_drawing | 创建新的 AutoCAD 图纸 |
draw_line | 画直线 |
draw_circle | 画圆 |
set_layer | 设置当前图层 |
highlight_text | 高亮显示匹配的文本 |
scan_elements | 扫描并解析图纸元素 |
export_to_database | 将 CAD 元素信息存入 SQLite |
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!