AutoCAD MCP Server
Enables interaction with a running AutoCAD instance to programmatically create geometric elements such as lines, polylines, rectangles, circles, ellipses, and arcs.
Click on "Install 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., "@AutoCAD MCP ServerDraw a circle at (10, 20) with a radius of 5"
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.
AutoCAD MCP Server v0.1
A Model Context Protocol (MCP) server that enables AI agents to interact with AutoCAD through Python automation. This server provides basic drawing tools for creating geometric shapes and elements in AutoCAD.
๐ Features
Basic Drawing Tools: Lines, polylines, rectangles, circles, ellipses, and arcs
AI Agent Integration: Compatible with MCP-enabled AI assistants
Real-time AutoCAD Control: Direct integration with running AutoCAD instances
Simple Setup: Easy configuration and deployment
Related MCP server: AutoCAD MCP Pro
๐ Available Tools
Tool | Description | Parameters |
| Draw a line between two points |
|
| Draw a polyline through multiple points |
|
| Draw a rectangle with opposite corners |
|
| Draw a circle with center and radius |
|
| Draw an ellipse with center and axes |
|
| Draw an arc with center, radius, and angles |
|
๐ ๏ธ Prerequisites
AutoCAD: Must be installed and running on Windows
Python: 3.8 or higher
uv: Python package manager (recommended)
๐ฆ Installation
Clone this repository:
git clone https://github.com/vigneshpbmenon/autocad-mcp-server.git
cd autocad-mcp-serverInstall dependencies:
uv syncOr with pip:
pip install -r requirements.txtโ๏ธ Configuration
Ensure AutoCAD is running on your system
Add the server configuration to your MCP client:
{
"mcpServers": {
"autocad": {
"command": "uv",
"args": ["run", "python", "server.py"]
}
}
}๐ Usage
Starting the Server
uv run python server.pyExample AI Agent Commands
Once connected to an MCP-enabled AI assistant, you can use natural language commands:
"Draw a line from (0,0) to (10,10)"
"Create a rectangle with corners at (5,5) and (15,15)"
"Draw a circle at the origin with radius 5"
"Make an arc centered at (10,10) with radius 8 from 0ยฐ to 90ยฐ"
Direct API Usage
from mcp.client import Client
# Connect to the server
client = Client()
# Draw a line
result = client.call_tool("draw_line", {
"x1": 0, "y1": 0,
"x2": 10, "y2": 10
})
# Draw a circle
result = client.call_tool("draw_circle", {
"x": 5, "y": 5,
"radius": 3
})๐ง Development
Project Structure
autocad-mcp-server/
โโโ server.py # Main MCP server implementation
โโโ server_config.json # Server configuration
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
โโโ LICENSE # MIT LicenseAdding New Tools
To add a new drawing tool:
Define the tool function with the
@mcp.tooldecoratorUse the
pyautocadlibrary to interact with AutoCADReturn a descriptive string about the action performed
Example:
@mcp.tool(
name="draw_polygon",
description="Draw a regular polygon with n sides."
)
def draw_polygon(x: float, y: float, radius: float, sides: int) -> str:
# Implementation here
return f"Drew {sides}-sided polygon at ({x}, {y})"๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
๐ Version History
v0.1 - Initial release with basic drawing tools
Lines, polylines, rectangles, circles, ellipses, and arcs
Basic MCP server implementation
AutoCAD integration via pyautocad
๐ฎ Roadmap
Advanced drawing tools (splines, hatches, dimensions)
Layer management
Block insertion and manipulation
3D drawing capabilities
Drawing modification tools (move, copy, rotate, scale)
File operations (open, save, import, export)
โ ๏ธ Known Limitations
Windows only (due to AutoCAD COM interface requirements)
Requires AutoCAD to be running
Basic error handling (improvements planned for v0.2)
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
FastMCP for the MCP server framework
pyautocad for AutoCAD automation
The Model Context Protocol community
๐ Support
If you encounter any issues or have questions:
Check the Issues page
Create a new issue with detailed information
Join the discussion in the MCP community
Note: This is version 0.1 - a foundational release. More advanced features and tools are in development and will be released in future versions.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables users to control AutoCAD, GstarCAD, or ZWCAD through natural language via Claude Desktop. It provides tools for drawing geometric shapes, adding text and dimensions, and managing CAD files using the Windows COM interface.Last updated2MIT
- AlicenseAqualityAmaintenanceProduction-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.Last updated10026MIT
- Alicense-qualityDmaintenanceEnables programmatic control of AutoCAD through COM automation, allowing natural language commands to create structures, manage layers, and manipulate entities via MCP clients like Claude.Last updated54Apache 2.0
- Alicense-qualityCmaintenanceControls 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.Last updated72Apache 2.0
Related MCP Connectors
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
Create and manage AI agents that collaborate and solve problems through natural language interactiโฆ
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vigneshpbmenon/autocad-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server