salome-mcp
MCP server for SALOME that enables agents to create and manipulate CAD geometries and meshes, including primitive creation, boolean operations, and mesh generation with Netgen.
README
SalomeMCP
SALOME Model Context Protocol for agentic use
Overview
This repository provides three components:
- SALOME GUI plugin to start/stop the local bridge port.
- SALOME-side bridge (
salome_bridge.py) that executes GEOM/SMESH operations. - MCP server (
salome-mcp) that agent clients connect to.
<!-- Runtime model: -->
<!-- 1. Start SALOME GUI. -->
<!-- 2. Start bridge from Tools -> Plugins -> MCP Bridge. -->
<!-- 3. Start your MCP client (configured to run salome-mcp). -->
<!-- 4. Agent tool calls flow: Agent -> MCP server -> SALOME bridge -> SALOME GUI session. -->
Requirements
- SALOME 9.x
- Python 3.10+
- uv
Setup
1) Install Python dependencies
cd /path/to/salome-mcp
uv sync
2) Install SALOME plugin files
mkdir -p ~/.config/salome/Plugins # or wherever your plugins folder is located
cp salome_plugin/*.py salome_bridge.py ~/.config/salome/Plugins/
Configure MCP Client
It is recommended that you set up the MCP server inside a particular project instead of globally.
Claude Code CLI (from inside your project root)
claude mcp add --scope project salome -- uv run --directory /path/to/salome-mcp salome-mcp
Codex CLI (from inside your project root)
mkdir -p .codex && cat > .codex/config.toml <<'EOF'
[mcp_servers.salome]
command = "uv"
args = ["run", "--directory", "/path/to/salome-mcp", "salome-mcp"]
EOF
Custom Host and Port
By default, the bridge uses localhost:1234. You can set your custom host/port in the SALOME GUI bridge settings, then simply prompt your agent to connect to that.
Usage
- Start SALOME and start:
Tools -> PLugins -> MCP Bridge -> Start (default) - Open your agent and prompt it to "ping salome". The agent should be able to use
check_salome_statusand return success - The agent should now be able to make tool calls based on your prompts. Check samples
- End session with
MCP Bridge -> Stop
Tool Coverage
These are the tool calls that can be used by your agent. You probably don't need to know this
General
ping_salome,check_salome_status,get_study_info,get_scene_summary,list_study_objects: Session and study status/overview
Geometry (GEOM)
create_box,create_cylinder,create_sphere,create_naca4_airfoil: Primitive creationtranslate_object,rotate_object,copy_object,duplicate_object,rename_object,delete_object: Transforms and object lifecycleboolean_operation,fuse_objects,cut_objects,common_objects: Boolean operations (fuse,cut,common)create_group,create_groups,create_surface_group,create_volume_group: Group creationmake_partition,explode_shape,import_geometry,export_geometry,get_object_info,list_subshapes: Partition, explode, I/O, and inspection
Mesh (SMESH)
import_mesh,export_mesh: Mesh I/Ocreate_mesh: Standard mesh setup with hypothesescreate_mesh_with_hypotheses: Explicit algorithm + detailed hypotheses meshingcompute_mesh,get_mesh_info: Mesh compute and statistics
Advanced
execute_salome_code(raw Python code)
[!WARNING]
execute_salome_codeexecutes arbitrary Python inside SALOME. Keep bridge access local and trusted.
Samples
Prompt 1
lets do these step by step: 1. make a cylinder r = 4 h =8 and place it along x axis 2. make two more cylinders of r = 2 and h = 4 3. place these cylinders on either of the circular ends 4. carve a cylinder out of these smaller ones to make two shells of rout = 2 and rin = 1 5. fuse all 6. create the single vol group 7. make surface groups inlet outlet and walls 8. make a mesh with netgen 1d 2d 3d very fine mesh. 9. compute mesh and report its stats

Prompt 2
1.make a naca 4412 airfoil 2. create a fluid box region around it for wind tunnel testing 3. cut the region for the air 4. make a partition and name all surface and vol groups 5. generate a netgen 1d2d3d coarse mesh 6. report mesh stats

推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。