
thepiruthvirajan/autocad-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
apiruthvirajan/autocad-mcp-сервер является кандидатом на сервер MCP, импортированным из https://github.com/thepiruthvirajan/autocad-mcp-server.
Обзор
apiruthvirajan/autocad-mcp-сервер является кандидатом на сервер MCP, импортированным из https://github.com/thepiruthvirajan/autocad-mcp-server.
Обзор (машинный перевод)
Мощный сервер на базе Python Model Context Protocol (MCP), который обеспечивает программный контроль над AutoCAD через автоматизацию COM.
Youtube видео с демо-версией [[Т0]]
Преобразуйте свой рабочий процесс AutoCAD с интеллектуальным созданием структуры здания, автоматическим управлением уровнями и комплексными манипуляциями с объектами - все через Клода и других клиентов MCP.
Быстрый старт (30 секунд)
of Содержание
- Предварительные условия
- Установка Конфигурация с Claude Desktop
- Запуск сервера Основные примеры использования
- Расширенные возможности
- Ссылка API
- Устранение неполадок
- Развитие
Предпосылки
Системные требования
** Операционная система**: Windows (требование автоматизации COM)
- ** AutoCAD**: Любая версия 2000+ с поддержкой COM Python: 3.8 или выше Claude Desktop: последняя версия (для интеграции с MCP)
Требуемое программное обеспечение
1** Автоматическая установка**
- Любая версия AutoCAD (AutoCAD, AutoCAD LT, Civil 3D и т.д.) Должен иметь действительную лицензию и иметь возможность работать Автоматизация COM должна быть включена (по умолчанию в большинстве установок).
- Окружающая среда Python Установлен Python 3.8+
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
AutoCAD MCP Server - Complete Documentation
🏗️ A powerful Python-based Model Context Protocol (MCP) server that provides programmatic control over AutoCAD through COM automation.
Youtube video of the working demo https://www.youtube.com/watch?v=KQpxiXvF4cc
Transform your AutoCAD workflow with intelligent building structure creation, automatic layer management, and comprehensive entity manipulation - all through Claude and other MCP clients.
🚀 Quick Start (30 seconds)
# 1. Clone and setup
git clone https://github.com/yourusername/autocad-mcp-server
cd autocad-mcp-server
pip install -e .
# 2. Start AutoCAD (must be running)
# Open AutoCAD application
# 3. Test the server
python test_script.py
📋 Table of Contents
- Prerequisites
- Installation
- Configuration with Claude Desktop
- Running the Server
- Basic Usage Examples
- Advanced Features
- API Reference
- Troubleshooting
- Development
Prerequisites
System Requirements
- Operating System: Windows (COM automation requirement)
- AutoCAD: Any version 2000+ with COM support
- Python: 3.8 or higher
- Claude Desktop: Latest version (for MCP integration)
Required Software
-
AutoCAD Installation
- Any AutoCAD version (AutoCAD, AutoCAD LT, Civil 3D, etc.)
- Must have valid license and be able to run
- COM automation must be enabled (default in most installations)
-
Python Environment
- Python 3.8+ installed
- Administrative privileges may be required for COM registration
Installation
Method 1: Using pip (Recommended)
# Clone the repository
git clone https://github.com/yourusername/autocad-mcp-server
cd autocad-mcp-server
# Create virtual environment
python -m venv venv
# Activate environment (Windows)
venv\Scripts\activate
# Install the package
pip install -e .
Method 2: Using uv (Faster)
# Install uv if not already installed
pip install uv
# Clone and setup
git clone https://github.com/yourusername/autocad-mcp-server
cd autocad-mcp-server
# Create environment and install
uv venv
uv pip install -e .
Dependencies Installed
mcp>=1.0.0- Model Context Protocol frameworkpywin32>=306- Windows COM automation
Configuration with Claude Desktop
Step 1: Locate Claude Desktop Config
Find your Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Step 2: Add MCP Server Configuration
Edit the config file to include your AutoCAD MCP server:
{
"mcpServers": {
"autocad-mcp": {
"command": "python",
"args": [
"C:\\path\\to\\your\\autocad-mcp-server\\test_script.py"
],
"env": {
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"autocad-mcp": {
"command": "python",
"args": [
"C:\\path\\to\\your\\autocad-mcp-server\\test_script.py"
],
"env": {
"PYTHONPATH": "C:\\path\\to\\your\\autocad-mcp-server"
}
}
}
}