Siemens NX
БесплатноНе проверенControls Siemens NX CAD software through 47 tools covering 3D modeling, sketching, assembly, drawing creation, and measurement operations.
Описание
Controls Siemens NX CAD software through 47 tools covering 3D modeling, sketching, assembly, drawing creation, and measurement operations.
README
MCP (Model Context Protocol) server for Siemens NX (UG). Enables AI agents to programmatically control NX's GUI for CAD operations.
Features
- 47 MCP tools covering core CAD operations
- File operations: create, open, save, close, export, import
- Sketching: lines, arcs, rectangles, constraints
- Modeling: extrude, revolve, sweep, blend, chamfer, hole, pattern, boolean, mirror
- Assembly: add components, mate, list, reposition
- Drawing: create sheets, add views, dimensions, export PDF
- Measurement: distance, angle, volume
- Utility: view control, undo, screenshot, journal recording
- Feature tree: list features, inspect parameters, bounding box
Prerequisites
- Siemens NX 2300+ (2023+)
- Python 3.10+
- NX Open Python API (bundled with NX)
Installation
pip install -e .
Configuration
Claude Code
Add to .claude/settings.local.json:
{
"mcpServers": {
"nx-mcp": {
"command": "python",
"args": ["-m", "nx_mcp.server"],
"env": {
"UGII_BASE_DIR": "C:\\Program Files\\Siemens\\NX2300"
}
}
}
}
Generic MCP Client
Start the server via stdio:
python -m nx_mcp.server
Usage
- Start Siemens NX
- Ensure your MCP client has the server configured
- Ask your AI agent to perform NX operations
Example prompts:
- "Create a new part called bracket.prt"
- "Draw a 50x30 rectangle on the XY plane and extrude it 20mm"
- "Add a 3mm fillet to all edges"
- "Export the current part as STEP"
Testing
pip install -e ".[dev]"
pytest tests/ -v
Tests run with mocked NX Open — no NX installation required.
Architecture
AI Agent <-> MCP Protocol (stdio) <-> MCP Server (Python) <-> NX Open API <-> NX Application
Project Structure
src/nx_mcp/
server.py # MCP server entry point
nx_session.py # NX session wrapper (singleton)
response.py # ToolResult / ToolError response types
tools/
registry.py # @mcp_tool decorator and ToolRegistry
file_ops.py # File operations (8 tools)
sketch.py # Sketch tools (7 tools)
modeling.py # Modeling features (11 tools)
feature_tree.py # Feature queries (3 tools)
assembly.py # Assembly tools (4 tools)
drawing.py # Drawing tools (5 tools)
measure.py # Measurement tools (3 tools)
utility.py # View, undo, screenshot, journal (7 tools)
utils/
geometry.py # Point3d, Vector3d, object resolution helpers
selection.py # ScCollector creation helpers
tests/
test_tools/ # Per-module test suites (120 tests, all mocked)
License
MIT
Установка Siemens NX
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/dreamending/nx_mcpFAQ
Siemens NX MCP бесплатный?
Да, Siemens NX MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Siemens NX?
Нет, Siemens NX работает без API-ключей и переменных окружения.
Siemens NX — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Siemens NX в Claude Desktop, Claude Code или Cursor?
Открой Siemens NX на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Siemens NX with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
