KOMPAS-3D MCP in Python for Claude Code and Claude Desktop

kompas-mcp-python

An early unofficial MCP server for KOMPAS-3D in Python: 76 tools for parts and drawings, arbitrary Python off by default

Install in Claude Code, Claude Desktop and SourceCraft

Manual install

git clone https://github.com/noki1928/kompas-mcp.git
cd kompas-mcp
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt

A regular Windows Python 3.13 is needed (not MSYS2). Then in the client config point to .venv/Scripts/python.exe server.py.

Access and checks

How we review

Broad access. The tool can change data, run commands or handle secrets.

  • Runs commands in your KOMPAS-3D project through COM
  • The execute_python_script tool runs arbitrary Python when turned on
  • The project is early, the repository has 0 stars and no license

This is third-party code. Review the repository files before installing.

What it does

The Python 3.13 server drives KOMPAS-3D through the COM API on Windows. The README lists 76 tools for parts and drawings. The author tests on KOMPAS-3D v25 Educational version, and the repository has documentation (architecture, coverage, tools, validation, stability) and 56 tests that run without the CAD. The author does not claim assembly mates or the full production documentation cycle. The `execute_python_script` tool runs arbitrary Python with user rights and is off by default: the `KOMPAS_ALLOW_SCRIPTS=1` variable turns it on.

Who it is for. For designers and engineers who work in KOMPAS-3D and want to hand an agent part building and drawing documentation.

Good fit when

  • You need to build a part from a description and dimensions in KOMPAS-3D
  • You need to lay out a drawing and place dimensions from the chat
  • You need an early but documented server for the Russian CAD

Not a fit when

  • You need proven industrial work: the project is early and the repository has 0 stars
  • You have no installed KOMPAS-3D with registered COM APIs

Example request

Build a shaft 30 mm in diameter and 120 mm long with a groove and place dimensions on the drawing

MCP

Transport
stdio
Authentication
not required

Keys and settings

KOMPAS_ALLOW_SCRIPTS
The value 1 allows execute_python_script, off by default

Limitations

The project is early: the repository has 0 stars and no license is stated, so rights to the code are not granted by default. Windows, an installed KOMPAS-3D with registered COM APIs and a regular Python 3.13 for Windows (not MSYS2) are required. Install from sources: clone the repository, create a `.venv`, run `pip install -r requirements.txt` and launch `server.py`. The server runs commands in your KOMPAS-3D project, so work on a copy of the file. Turn on `KOMPAS_ALLOW_SCRIPTS=1` only if you read every script.

How to disable. Remove the server entry from the client config and delete the repository clone with the `.venv` environment.

FAQ

Does KOMPAS-3D have an official MCP?

We did not find an official MCP server from ASCON: this is one of the early unofficial projects.

Which KOMPAS-3D versions are supported?

The author tests on KOMPAS-3D v25 Educational version.

Why is execute_python_script risky?

It runs arbitrary Python with user rights. It is off by default and KOMPAS_ALLOW_SCRIPTS=1 turns it on.

How is it different from the C# server?

This server is written in Python, has 76 tools and is tested on KOMPAS-3D v25. The C# server targets v22 and has 51 tools.

Which agents does KOMPAS-3D MCP in Python work with?

KOMPAS-3D MCP in Python works in Claude Code, Claude Desktop, SourceCraft, Koda and Coddy.

Does KOMPAS-3D MCP in Python need an API key?

No keys are required. Optional variables: KOMPAS_ALLOW_SCRIPTS.

Discussion

No questions or reviews yet.

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
KOMPAS-3D MCP in Python (this card)nonot required2
KOMPAS-3D MCP in C#nonot required751 tools, KOMPAS v22, C# and a copilot panel
CAD-MCP Servernonot required747AutoCAD, GstarCAD and ZWCAD in one server
SolidWorks MCP in Pythonnonot required22522 tools for SolidWorks

README in short

The README describes a Python server for KOMPAS-3D with 76 tools for parts and drawings, a check on v25 Educational version and 56 tests without the CAD. It gives installation on Windows and the client configuration. Arbitrary Python execution is off by default.

README badge

Report a problem