شعار MultiCAD MCP

MultiCAD MCP

المجتمع
AnCode666

MCP server for use CAD software through AI assistants like Claude for Desktop or Cursor

الناشرAnCode666
المستودعmultiCAD-mcp
اللغةPython
التفريعات
27
النجوم
118
الأدوات المتاحة
0
نوع نقل البياناتstdio
الفئات
الترخيصApache-2.0
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح MultiCAD MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 118، والنسخ المتفرعة: 27 في المستودع المرتبط.

multiCAD-mcp

Control your CAD applications with your AI assistant through the Model Context Protocol (MCP).

Documentation License Python MCP

Documentation: https://AnCode666.github.io/multiCAD-mcp/

What is multiCAD-mcp?

multiCAD-mcp is an MCP server that lets you control your CAD software using AI assistants like Claude for desktop or Cursor. Whether you're drawing shapes, managing layers, automating repetitive tasks, o doing complex ones, you can do it all through text-based instructions.

Features

  • Multiple CAD Support: Works with AutoCAD®, ZWCAD®, GstarCAD®, and BricsCAD®
  • 7 Unified MCP Tools: Clean access to 56 CAD commands for drawing, layers, entities, blocks, and files
  • Block Attributes (v0.2.0+): Read and write block attribute values
  • Block Creation: Create blocks from entities or user selection
  • Simple command execution: "Draw a red circle at 50,50 with radius 25" - no complex syntax needed
  • Complex tasks execution: "Draw the graph of y = sen(X) and label the axes"
  • Simple Integration: Works with Claude, Cursor, VS Code, and any MCP-compatible client
  • Fast & Reliable: Efficient COM-based architecture for real-time CAD control
  • Flexible: Direct tool calls or natural language - choose what works for you

System Requirements

  • Windows OS (required - uses Windows COM technology)
  • Python 3.10 or higher
  • One or more CAD applications installed in your computer

Installation

Detailed installation instructions are available in docs/01-SETUP.md.

Quick start:

powershell
# Install uv (if not installed)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Clone
git clone https://github.com/AnCode666/multiCAD-mcp.git
cd multiCAD-mcp
uv sync --dev
uv run python -m pip install --upgrade pywin32

Setup with Claude Desktop

Add this to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "multiCAD": {
      "command": "C:\\path\\to\\multiCAD-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\path\\to\\multiCAD-mcp\\src\\server.py"]
    }
  }
}

Important: Use the full path to the Python interpreter in your virtual environment (.venv\Scripts\python.exe), not the system py command. This ensures Claude Desktop uses the correct Python environment with all required dependencies installed.

Replace C:\path\to\multiCAD-mcp with your actual installation path.

Usage Examples

Direct Tool Calls

multiCAD-mcp provides 7 unified MCP tools that provide access to 56 different CAD commands. This architecture is designed for high efficiency, allowing multiple operations to be dispatched in single calls, reducing API overhead by up to 70%.

  • Drawing & Shapes: Lines, circles, arcs, rectangles, polylines, splines, and tables.
  • Block Management: Create blocks (from entities or selection), insert (batch/single), list, and audit.
  • Layer Management: Create, list, rename/delete (batch), and toggle visibility.
  • Entity Manipulation: Move, rotate, scale, copy/paste, and selection (by type/layer/color).
  • Property Management: Change color/layer (batch/single) and set color ByLayer.
  • Data & Export: Extract data (JSON), export to Excel (total or selected), and entity debug.
  • View & Navigation: Zoom extents, fit view, and undo/redo operations.
  • Files & Session: Save (DWG/DXF/PDF), new/close drawings, and multi-drawing switching.
  • Connection & Control: Connection lifecycle, diagnostics, and natural language fallback.

[!TIP] Each tool accepts multiple operations in a single call using a compact shorthand format, reducing API overhead by up to 70%.

Selected Entity Export

Export or extract data from only the entities currently selected in your CAD viewport:

text
# Export selected entities to Excel
export_data(scope="selected", format="excel", filename="selected_entities.xlsx")

# Extract selected entity data as JSON
export_data(scope="selected", format="json")

Complex Tasks

You can ask your AI assistant to execute complex tasks that require multiple tools, such as drawing graphs of equations, complex title blocks, or data tables.

Configuration

Edit src/config.json to customize:

json
{
  "logging_level": "INFO",
  "cad": {
    "autocad": {
      "startup_wait_time": 20,
      "command_delay": 0.5
    }
  },
  "dashboard": {
    "port": 8888
  },
  "output": {
    "directory": "~/Documents/multiCAD Exports",
    "allow_arbitrary_paths": true
  }
}

Key settings:

  • logging_level: Set to DEBUG, INFO, WARNING, or ERROR to control log verbosity
  • startup_wait_time: Seconds to wait for CAD application to start (increase if CAD is slow)
  • command_delay: Delay between commands in seconds
  • dashboard.port: Web dashboard port (default: 8888)
  • open_dashboard: [host, port] — open web dashboard in browser (default from config.json: 8888)
  • output.directory: Default directory for saved drawings and exports
  • output.allow_arbitrary_paths: Set to true to allow saving files to any absolute path on the system, bypassing path-traversal prevention checks.

Troubleshooting

Checking Logs

multiCAD-mcp generates detailed logs to help diagnose issues:

Log Location: logs/multicad_mcp.log (created automatically in the project's logs/ directory)

View logs:

powershell
# View latest 50 log entries
Get-Content logs/multicad_mcp.log -Tail 50

# View all logs
Get-Content logs/multicad_mcp.log

# Monitor logs in real-time (updates automatically)
Get-Content logs/multicad_mcp.log -Wait -Tail 10

Adjust log level in src/config.json:

json
{
  "logging_level": "DEBUG"
}

Available levels (from most to least verbose):

  • DEBUG: Detailed information for diagnosing problems
  • INFO: General informational messages (default)
  • WARNING: Warning messages for potential issues
  • ERROR: Error messages only

Note: Restart the MCP server after changing configuration.

"Connection failed"

  • Make sure your CAD application is running
  • Check that you have the correct version installed
  • Verify Windows COM is properly configured
  • Use manage_session with {"action": "status"} to diagnose the issue
  • Check logs for detailed error messages (see above)

The dashboard provides a real-time view of the CAD state. You can manually refresh the data using the "Refresh Now" button.

  • Dashboard Port: Change dashboard.port in src/config.json to your preferred port.
  • Manual Refresh: Click the refresh button to sync with current CAD state.

"Not connected"

  • The server automatically connects on first use
  • If it fails, restart the CAD application and try again
  • Use manage_session with {"action": "connect"} to re-establish connection
  • Review logs to identify connection issues

Commands not working

  • Check your CAD application's command line for messages or errors
  • Ensure coordinates are in valid format (e.g., "0,0" for 2D, "0,0,0" for 3D)
  • Verify connection status with manage_session → {"action": "status"}
  • Enable DEBUG logging to see detailed command execution information

Documentation

Supported CAD Applications

ApplicationStatusNotes
AutoCAD 2018+✅ Full SupportPrimary implementation
ZWCAD 2020+✅ Full SupportUses AutoCAD-compatible API
GstarCAD 2020+✅ Full SupportUses AutoCAD-compatible API
BricsCAD 21+✅ Full SupportUses AutoCAD-compatible API

Project Status

Version 0.2.0 - Unified tool architecture, block attribute management, and modern packaging.

License

Apache License 2.0 - see LICENSE file for details.

Acknowledgments

This project builds upon:

Support

For issues, questions, or feature requests, please open an issue on the repository.


Need help setting up? Start with the installation steps above.

التثبيت

TypingMind
{
  "mcpServers": {
    "multicad-mcp": {
      "command": "py",
      "args": [
        "src/server.py"
      ]
    }
  }
}

استخدم MCP الخاص بـ MultiCAD MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل MultiCAD MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف MultiCAD MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ MultiCAD MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "multicad-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ MultiCAD MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ MultiCAD MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام MultiCAD MCP لمساعدتي في هذه المهمة؟
MultiCAD MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام MultiCAD MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP MultiCAD MCP؟

MultiCAD MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP MultiCAD MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام MultiCAD MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP MultiCAD MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل MultiCAD MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP MultiCAD MCP بـ TypingMind؟

يعمل MultiCAD MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP MultiCAD MCP في TypingMind؟

يتيح MultiCAD MCP إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP MultiCAD MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان MultiCAD MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇