loading…
Search for a command to run...
loading…
MCP server for SALOME that enables agents to create and manipulate CAD geometries and meshes, including primitive creation, boolean operations, and mesh generat
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.
SALOME Model Context Protocol for agentic use
This repository provides three components:
salome_bridge.py) that executes GEOM/SMESH operations.salome-mcp) that agent clients connect to.cd /path/to/salome-mcp
uv sync
mkdir -p ~/.config/salome/Plugins # or wherever your plugins folder is located
cp salome_plugin/*.py salome_bridge.py ~/.config/salome/Plugins/
It is recommended that you set up the MCP server inside a particular project instead of globally.
claude mcp add --scope project salome -- uv run --directory /path/to/salome-mcp salome-mcp
mkdir -p .codex && cat > .codex/config.toml <<'EOF'
[mcp_servers.salome]
command = "uv"
args = ["run", "--directory", "/path/to/salome-mcp", "salome-mcp"]
EOF
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.
Tools -> PLugins -> MCP Bridge -> Start (default)check_salome_status and return successMCP Bridge -> StopThese are the tool calls that can be used by your agent. You probably don't need to know this
ping_salome, check_salome_status, get_study_info, get_scene_summary, list_study_objects: Session and study status/overviewcreate_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 inspectionimport_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 statisticsexecute_salome_code (raw Python code)[!WARNING]
execute_salome_codeexecutes arbitrary Python inside SALOME. Keep bridge access local and trusted.
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

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

Выполни в терминале:
claude mcp add salome-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.