TA

thepiruthvirajan/autocad-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

70 stars 35 forks 品質 67 トレンド 14Apache-2.0

thepiruthvirajan/autocad-mcp-server は [https://github.com/thepiruthvirajan/autocad-mcp-server. からインポートされた MCP サーバーの候補です

概要

thepiruthvirajan/autocad-mcp-server は [https://github.com/thepiruthvirajan/autocad-mcp-server. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

🏗️** 強力な Python ベースのモデルコンテキストプロトコル (MCP) サーバーで、AutoCAD のプログラム制御を COM の自動化を通じて提供できます。**

ワーキングデモのYoutubeビデオ [https://www.youtube.com/watch?v=KQpxiXvF4cc]

AutoCAD ワークフローをインテリジェントなビルド構造の作成、自動レイヤー管理、および包括的なエンティティティティメント操作で変換します。Claude や他の MCP クライアントを通じて、すべての作業をサポートします。

OST クイックスタート(30秒)

コンテンツの表

  • 前提条件
  • インストール
  • Claudeデスクトップの設定
  • サーバーの実行
  • 基本使用例
  • 高度な機能
  • APIリファレンス
  • トラブルシューティング
  • 開発

前提条件

システム要件

  • オペレーティング システム:Windows (COMのオートメーションの条件)
  • AutoCAD: どのバージョン2000+でもCOMサポート -Python:3.8以上 -Claude Desktop:最新バージョン(MCP統合用)

必須ソフトウェア

  1. AutoCADの取付け
  • AutoCAD、AutoCAD LT、市民3D、等。
  • 有効なライセンスを持ち、実行できるようにする必要があります
  • COM のオートメーションは有効にされなければなりません(ほとんどの取付けのデフォルト)

2.Python環境

  • Python 3.8+ インストール

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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

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

  1. 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)
  2. Python Environment

    • Python 3.8+ installed
    • Administrative privileges may be required for COM registration

Installation

# 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 framework
  • pywin32>=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": {
GitHub で README 全文を見る

インストール

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" } } } }