Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Minimal Server For AutoCAD DWG

FreeNot checked

A FastAPI-based MCP server scaffold designed to extract material tables from AutoCAD DWG files. It enables users to automate CAD data processing by configuring

GitHubEmbed

About

A FastAPI-based MCP server scaffold designed to extract material tables from AutoCAD DWG files. It enables users to automate CAD data processing by configuring drawing folder paths and layer-specific extraction parameters.

README

간단한 MCP(Model Context Protocol) 서버 스캐폴드입니다. Python 3.12.10용 FastAPI 예시를 제공합니다.

Endpoints:

  • GET /health - 상태 확인
  • POST /mcp - 간단한 MCP-style 요청 처리 (예: {"requestId":"id","input":{"text":"..."}})
  • GET /mcp/tools - MCP 도구 목록 샘플

Python 3.12.10

간단한 FastAPI 기반 MCP 서버가 추가되었습니다.

설치 및 실행 (Windows PowerShell):

# 가상환경 생성
python -m venv .venv
# 가상환경 활성화
.\.venv\Scripts\Activate.ps1
# 의존성 설치
pip install -r requirements.txt
# 서버 실행
python app.py

또는 개발 모드로 직접 uvicorn 실행:

python -m pip install --upgrade pip
pip install -r requirements.txt
uvicorn src.mcp_server:app --reload --port 3000

포트는 환경변수 PORT로 변경 가능합니다.

AutoCAD DWG 도구 설정

config.env 파일을 수정하여 AutoCAD 도구 설정을 변경할 수 있습니다:

# AutoCAD DWG 폴더 경로
DWG_FOLDER=C:\CAD\Drawings

# 재료 테이블 추출 설정
LAYER_SHOP_FIELD=SHOP-FIELD
ROW_TOLERANCE=3.0
COL_TOLERANCE=40.0

# 카테고리 헤더 (쉼표로 구분)
MATERIAL_CATEGORIES=SHOP MATERIAL,FIELD MATERIAL

설정 항목 설명:

  • DWG_FOLDER: DWG 파일을 검색할 기본 폴더 경로
  • LAYER_SHOP_FIELD: 재료 테이블이 포함된 레이어명
  • ROW_TOLERANCE: 행 클러스터링 허용 오차 (픽셀 단위)
  • COL_TOLERANCE: 열 할당 허용 오차 (픽셀 단위)
  • MATERIAL_CATEGORIES: 카테고리 헤더명 (쉼표로 구분)

이 구현은 예시용 매우 단순한 에코 응답을 제공합니다. 실제 MCP 규격에 맞게 확장하세요.

from github.com/JooseokKim-DL/MCP-for-MS-Copilot-Agenthon

Install Minimal Server For AutoCAD DWG in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install minimal-mcp-server-for-autocad-dwg

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add minimal-mcp-server-for-autocad-dwg -- uvx mcp-server-py

Step-by-step: how to install Minimal Server For AutoCAD DWG

FAQ

Is Minimal Server For AutoCAD DWG MCP free?

Yes, Minimal Server For AutoCAD DWG MCP is free — one-click install via Unyly at no cost.

Does Minimal Server For AutoCAD DWG need an API key?

No, Minimal Server For AutoCAD DWG runs without API keys or environment variables.

Is Minimal Server For AutoCAD DWG hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Minimal Server For AutoCAD DWG in Claude Desktop, Claude Code or Cursor?

Open Minimal Server For AutoCAD DWG on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Minimal Server For AutoCAD DWG with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs