MCP Catia logo

MCP Catia

Community
chenlei-gh

CATIA automation REST API · Modular modeling · AI-driven design · Swagger docs · JWT auth · Async tasks

Publisherchenlei-gh
Repositorymcp-catia
LanguagePython
Forks
11
Stars
45
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    MCP Catia exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    45 stars and 11 forks from the linked repository.

CATIA MCP Service

CATIA Automation REST API · Powered by pycatia

Python CATIA License Swagger

🌐 English | 中文


🇬🇧 English

Comprehensive CATIA automation REST API built on pycatia. Features modular modeling, AI-driven design, JWT auth, Swagger docs, and async task processing.


⚡ Quick Start

bash
# Clone & install
git clone https://github.com/chenlei-gh/mcp-catia.git
cd mcp-catia
pip install -r requirements.txt

# Run
python -m catia_mcp_service.app

Service URL: http://localhost:5000
Swagger Docs: http://localhost:5000/api/docs


🎯 Core Features

🎨 Modeling

  • Sketch creation (lines, circles, rectangles, splines)
  • 3D features: Pad, Pocket, Revolution, Hole, Rib, Shell
  • Advanced: Draft, Sweep, Loft, Pattern

🔧 Assembly & Parameters

  • Component positioning and constraints
  • Read/write parameters, relations
  • Batch parameter updates

🤖 AI & Automation

  • Natural language → CATIA models
  • Smart templates (flange, gear, standard parts)
  • Knowledge-driven modeling

⚙️ System

  • JWT token authentication
  • Role-based access control
  • Async task queue
  • Swagger/OpenAPI documentation
  • Multi-language support (EN/ZH)

📡 API Endpoints

CategoryEndpointDescription
ConnectionPOST /api/connectConnect to CATIA
DocumentPOST /api/documentCreate/open/save/close
SketchPOST /api/sketchCreate sketch, add geometry
3D FeaturePOST /api/feature3dPad, pocket, hole, etc.
AssemblyPOST /api/assemblyAdd parts, constraints
TemplatePOST /api/templateSmart parametric models
AIPOST /api/ai/modelingNatural language modeling
MeasurePOST /api/measureDistance, angle, mass
ExportPOST /api/image/captureScreenshot, STL, STEP
SystemGET /api/systemSystem information

Full API documentation available at /api/docs after startup.


🐍 Examples

Basic: Create and extrude a circle

python
import requests
from requests.auth import HTTPBasicAuth

BASE = "http://localhost:5000"
auth = HTTPBasicAuth("admin", "admin")

# Connect
requests.post(f"{BASE}/api/connect", auth=auth)

# Create part
requests.post(f"{BASE}/api/document",
    json={"operation": "create", "doc_type": "Part"}, 
    auth=auth)

# Sketch
requests.post(f"{BASE}/api/sketch",
    json={"operation": "create", "plane": "xy"}, 
    auth=auth)

# Circle
requests.post(f"{BASE}/api/sketch",
    json={
        "operation": "add_circle",
        "center": [0, 0],
        "radius": 50
    }, auth=auth)

# Pad
requests.post(f"{BASE}/api/feature3d",
    json={"operation": "pad", "length": 20}, 
    auth=auth)

Smart template: One-line flange

python
requests.post(f"{BASE}/api/template/flange", 
    json={
        "outer_diameter": 100,
        "inner_diameter": 50,
        "thickness": 10,
        "hole_count": 8,
        "hole_diameter": 10,
        "hole_circle_diameter": 80
    }, auth=auth)

AI: Natural language modeling

python
requests.post(f"{BASE}/api/ai/modeling",
    json={
        "prompt": "Create a 100x50mm plate with 4 corner holes, diameter 10mm"
    }, auth=auth)

🏗️ Project Structure

mcp-catia/
├── catia_mcp_service/
│   ├── app.py               # Main entry
│   ├── service.py           # CATIA core
│   ├── features/            # Feature modules
│   │   ├── sketch.py
│   │   ├── feature3d.py
│   │   ├── assembly.py
│   │   ├── template.py
│   │   └── ai_suggester.py
│   ├── permissions.py       # JWT auth
│   ├── schemas.py           # Validation
│   └── swagger.py           # API docs
├── examples/
├── tests/
└── requirements.txt

📦 Requirements

  • Python: 3.8+
  • CATIA: V5 or V6
  • pycatia: 0.8.2+

See requirements.txt for full dependencies.


🌐 中文


🇨🇳 中文

基于 pycatia 的 CATIA 自动化 REST API 服务。支持模块化建模、AI 驱动设计、JWT 鉴权、Swagger 文档和异步任务处理。


⚡ 快速开始

bash
# 克隆并安装
git clone https://github.com/chenlei-gh/mcp-catia.git
cd mcp-catia
pip install -r requirements.txt

# 运行
python -m catia_mcp_service.app

服务地址: http://localhost:5000
文档地址: http://localhost:5000/api/docs


🎯 核心功能

🎨 建模

  • 草图创建(直线、圆、矩形、样条线)
  • 三维特征:拉伸、挖槽、旋转、孔、肋、壳
  • 高级特征:拔模、扫掠、放样、阵列

🔧 装配与参数

  • 组件定位和约束
  • 参数读写、关系式
  • 批量参数更新

🤖 AI 与自动化

  • 自然语言 → CATIA 模型
  • 智能模板(法兰、齿轮、标准件)
  • 知识驱动建模

⚙️ 系统

  • JWT Token 认证
  • 基于角色的权限控制
  • 异步任务队列
  • Swagger/OpenAPI 文档
  • 多语言支持(中英文)

📡 API 端点

分类端点说明
连接POST /api/connect连接 CATIA
文档POST /api/document创建/打开/保存/关闭
草图POST /api/sketch创建草图、添加几何
三维特征POST /api/feature3d拉伸、挖槽、孔等
装配POST /api/assembly添加零件、约束
模板POST /api/template智能参数化模型
AIPOST /api/ai/modeling自然语言建模
测量POST /api/measure距离、角度、质量
导出POST /api/image/capture截图、STL、STEP
系统GET /api/system系统信息

完整 API 文档见启动后的 /api/docs。


🐍 示例

基础:创建并拉伸圆

python
import requests
from requests.auth import HTTPBasicAuth

BASE = "http://localhost:5000"
auth = HTTPBasicAuth("admin", "admin")

# 连接
requests.post(f"{BASE}/api/connect", auth=auth)

# 创建零件
requests.post(f"{BASE}/api/document",
    json={"operation": "create", "doc_type": "Part"}, 
    auth=auth)

# 草图
requests.post(f"{BASE}/api/sketch",
    json={"operation": "create", "plane": "xy"}, 
    auth=auth)

# 圆
requests.post(f"{BASE}/api/sketch",
    json={
        "operation": "add_circle",
        "center": [0, 0],
        "radius": 50
    }, auth=auth)

# 拉伸
requests.post(f"{BASE}/api/feature3d",
    json={"operation": "pad", "length": 20}, 
    auth=auth)

智能模板:一行法兰

python
requests.post(f"{BASE}/api/template/flange", 
    json={
        "outer_diameter": 100,
        "inner_diameter": 50,
        "thickness": 10,
        "hole_count": 8,
        "hole_diameter": 10,
        "hole_circle_diameter": 80
    }, auth=auth)

AI:自然语言建模

python
requests.post(f"{BASE}/api/ai/modeling",
    json={
        "prompt": "创建一块 100x50mm 的板,四角各有直径 10mm 的孔"
    }, auth=auth)

📦 依赖

  • Python: 3.8+
  • CATIA: V5 或 V6
  • pycatia: 0.8.2+

完整依赖列表见 requirements.txt。


🇬🇧 English


📜 License

MIT — see LICENSE

Issues · Examples · Tests

Use MCP Catia MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Catia is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP Catia as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP Catia MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-catia": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP Catia MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP Catia MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Catia to help me with this task?
MCP Catia
Sure. I read it.
Here is what I found using MCP Catia.

Frequently asked questions

What is the MCP Catia MCP server used for?

MCP Catia is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Catia MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Catia with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Catia MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Catia connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Catia MCP to TypingMind?

MCP Catia runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP Catia MCP provide in TypingMind?

MCP Catia exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Catia MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Catia requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇