PLAXIS-MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PLAXIS-MCP run the calculation for phase 1 and export the displacement results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PLAXIS · MCP
Drive PLAXIS 2D from any MCP client.
Geometry, staged construction, meshing, calculation and results — exposed as tools, over a hardened Windows-local stdio server.
Quickstart · Tools · Clients · Security model · Architecture
mcp-name: io.github.yixuanzhong/plaxis-mcp
▸ v0.3 — set up once, launch from anywhere
One-shot machine setup |
|
Shared profile store | Every client on the machine reads the same profiles. Claude Code, Codex, Cursor and VS Code all bind to one installation and one credential set. |
| No per-client config surgery. |
Mode-aware operations |
|
Listed on the MCP Registry | Published as |
Client-neutral by design: Codex, Claude Code, Cursor, VS Code/Copilot and any other conforming local stdio MCP client connect to the same unprefixed server tools.
Related MCP server: MCP Server.exe
Quickstart
1 — Set up the machine, once.
plaxis-mcp.exe setupProfiles land in %LOCALAPPDATA%\Caros\PLAXIS-MCP\profiles (override with --profile-dir).
Add --skip-credentials to generate profiles now and store passwords later with
plaxis-mcp.exe credentials set --profile <profile.toml>.
The directory name is historical — it is where the first supported installer wrote — and is kept because
credential_targetis derived from it.
2 — Run each role as its own process.
plaxis-mcp.exe serve --role input
plaxis-mcp.exe serve --role output--config <profile.toml> names a profile explicitly and is equivalent. Either way serve
takes every endpoint setting from the profile and the password from Windows Credential
Manager, and it fails to start if any PLAXIS_* endpoint environment override is
present — so a client cannot silently redirect an endpoint or inject a password.
3 — Point a client at it. See Clients; the host never connects at startup,
so call the connect tool once PLAXIS is running.
Getting the host
Distribution | Command | Assurances |
Signed Windows package |
| Authenticode-signed, hash-manifested, installer-verified. The supported production deployment. |
PyPI |
| Ordinary Python source distribution. No code signature, no artifact manifest. |
Both expose the same setup, serve, credentials and profiles commands and enforce the
same profile binding and environment-override rejection — so PyPI is not a weaker runtime
posture. It simply carries no supply-chain attestation of its own beyond PyPI's, and it is not
what an organization requiring signed binaries should deploy.
Do not install plxscripting into the host environment under either.
A clean CPython 3.13 environment can run the module directly with endpoint environment variables. This path carries the password in the environment and performs no installation binding.
py -3.13 -m pip install .
$env:PLAXIS_ROLE = "input"
$env:PLAXIS_INPUT_HOST = "127.0.0.1"
$env:PLAXIS_INPUT_PORT = "10000"
$env:PLAXIS_BUNDLE_PYTHON = "C:\Path\To\PLAXIS\python.exe"
py -3.13 -I -u -m plaxis_mcp.serverFor Output, set PLAXIS_ROLE=output and use the PLAXIS_OUTPUT_* variables. Role-specific
variables take precedence over the deprecated generic PLAXIS_HOST, PLAXIS_PORT and
PLAXIS_PASSWORD fallback. The server accepts stdio only — do not set a non-stdio
PLAXIS_MCP_TRANSPORT.
Tools
Each process has one immutable role. A client registers Input and Output as separate MCP servers when it needs both.
Role | Endpoint | Tools |
Both | — |
|
Input |
|
|
Output |
|
|
34 Input tools · 11 Output tools.
connect()takes no endpoint or credential arguments. It uses only the pinned role configuration, so an agent cannot redirect a stored password to an arbitrary host.Role status resources live at
plaxis://input/statusandplaxis://output/status.get_results(phase, result_type_path, fem_type="node", offset=0, limit=200)paginates losslessly.limitis 1–5,000; responses reportcount,offset,limit,returned_count,has_more,next_offsetandresults.Every object in a result carries
path— the exact string to pass back to any reference parameter.list_objects(kind)lists a whole kind that way, with a geometry summary (coordinates, or a parsedboundsfor objects that report a bounding box).model_state()reports mesh status, the phase table and unassigned materials before a calculate is attempted. It separatesblocking(a fault in this model) fromunknown(a check that could not run here) andcaveats(something PLAXIS does not expose at all — on 2D V22, whether the mesh still matches the geometry), so an emptyblockingis never mistaken for a clean bill of health.Results live on the Output server, which reads whatever the PLAXIS Output application has open.
view_results(phase)on the Input server is what puts a calculated phase there.When PLAXIS rejects a call, its own message travels beside ours in
plaxis_message(sanitised: no filesystem paths, no frames, capped with the truncation flagged out of band). A failingcalculatealso carries a per-phase table indetails.
Clients
All shipped examples are secret-free and use two server entries, one per role. Replace the
command with wherever plaxis-mcp.exe lives, or with uvx plaxis-mcp for a PyPI install.
Nothing else needs editing — --role finds the shared profiles by itself.
Client | Example | Credentials & approvals |
Codex |
| |
Claude Code | Expand only a user-level environment variable in | |
Cursor | Role password in the user environment at launch; keep Auto-run off. | |
VS Code / Copilot | Use a password |
The generic mcp-client-config.json is a minimal
mcpServers example for clients using that conventional JSON shape.
Never add a PLAXIS password to version control, command-line arguments, logs, or a profile file.
Security model
Profiles are bound to one installation.
credential_targetis derived frominstallation_root, andworker_pythonmust be an interpreter that discovery links to that same root. Editing any of the three by hand makes the profile fail to load. This is what stops a profile from handing a stored PLAXIS password to an arbitrary executable.Environment overrides are rejected, not merged:
serverefuses to start when aPLAXIS_*endpoint variable is set.Uncertified pairings fail closed. The Python match is exact — a 3.7-series interpreter at any other patch level is a different, uncertified ABI, so it is rejected rather than assumed compatible.
Ask before mutation. All clients should prompt before
call_methodand project/file mutators. Do not set an Always Allow-style rule forcall_method,open_projectorsave_project: client approval is generally tool-wide, not argument-scoped.Mutation is not undoable. Absolute local and UNC
.p2dxpaths reachable by PLAXIS are allowed only after user approval. Client approvals and client-side checkpointing cannot restore in-memory PLAXIS state — use disposable projects and backups for all mutation testing.
Architecture
PLAXIS-MCP separates the MCP host from PLAXIS's vendor-managed Python runtime:
MCP client ──stdio──▶ host (CPython 3.13, mcp 1.26.0)
│
├─ private local pipe
▼
role-pinned worker (PLAXIS bundled Python)
│
▼
PLAXIS Remote Scripting @ 127.0.0.1Client traffic is always MCP over stdio; normal logs and diagnostics go to stderr.
PLAXIS-MCP never installs packages into, upgrades, or redistributes the PLAXIS Python bundle.
The split is required because the MCP host needs a current Python runtime while PLAXIS ships version-specific scripting environments.
PLAXIS generation | Bundled Python | Runtime profile | Release status |
PLAXIS 2024.2 and newer | 3.12.3 |
| Enable after live certification |
PLAXIS CONNECT Edition V22 → early 2024 | 3.8.10 |
| Initial production target |
PLAXIS CONNECT Edition V20 / V21 | 3.7.4 |
| Enable after live and security certification |
V20 and V21 share the legacy profile: their end-of-life Python is isolated inside the loopback worker and requires organizational security acceptance.
Requirements
Windows, with a supported local PLAXIS 2D installation and Remote Scripting enabled.
CPython 3.13 for the MCP host. Supported host range:
>=3.13,<3.14.One PLAXIS Input and/or Output server listening only on loopback — defaults Input
127.0.0.1:10000, Output127.0.0.1:10001.A selected, certified PLAXIS bundled-Python profile. Do not install
plxscriptinginto the MCP host environment.
C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages
C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V2\python\Lib\site-packagesDocker, WSL, remote MCP transports, and PLAXIS bundles copied into a Python environment are not supported deployment paths for v0.3. The former Docker artifacts were removed intentionally.
Development & verification
# unit suite, from the CPython 3.13 host environment
py -3.13 -m unittest discover -s tests
# inspect the split host/worker configuration without starting PLAXIS
py -3.13 scripts/smoke_test.pyBefore a release: verify the host wheel/installer in a clean environment, confirm pip check,
scan the artifact for vendor files, validate the MCP contract at protocol 2025-03-26, and
complete live certification with a disposable calculated project for every enabled PLAXIS
profile.
References
MCP Python SDK · Codex · Claude Code · Cursor · VS Code
MIT licensed. PLAXIS is a trademark of Seequent and related companies.
This independent integration is not affiliated with, endorsed by, or sponsored by Seequent or Bentley Systems.
Available Tools
34 toolsactivateCDestructiveIdempotent
Activate one or more objects in one or more phases.
Inputs: paths (required), phases (required). Returns: object
assign_materialCDestructive
Assign a material to one or more features.
Inputs: paths (required), material (required). Returns: object
calculateADestructive
Calculate phases.
Omit phases to calculate every phase currently marked for calculation; provide phases to calculate exactly those phases regardless of their marked-for-calculation state.
Inputs: phases. Returns: object
call_methodADestructive
Call an explicitly named PLAXIS method with literal positional arguments.
Every argument must be a scalar literal (number, string, boolean, or null) -- there is no way to pass a reference to another PLAXIS object or phase through this tool. A string argument is sent to PLAXIS as a quoted text literal, not as a reference, so it cannot stand in for an object or phase parameter even when it names one. Use this only for methods whose PLAXIS command reference shows purely literal parameters; prefer list_objects, model_state, and the first-class tools over probing with dump.
Inputs: method (required), args, path. Returns: object
close_projectADestructiveIdempotent
Close the active PLAXIS project.
Inputs: no named parameters. Returns: object
connectAIdempotent
Connect to the pinned local PLAXIS endpoint.
Inputs: no named parameters. Returns: object
connection_statusARead-onlyIdempotent
Get state for the pinned PLAXIS role.
Inputs: no named parameters. Returns: object
create_boreholeBDestructive
Add a borehole at the given x-coordinate.
Inputs: x (required). Returns: object
create_lineADestructive
Create a line, or a polyline through 3 or more vertices.
Each vertex is either an [x, y] coordinate or the path of an existing point. Only the vertex-list form of the line command is implemented; the angle/relative/vector sub-command form is not.
Inputs: vertices (required). Returns: object
create_materialADestructive
Create a material set.
Omit properties to create a placeholder material that cannot be used to calculate until edited; provide a property/value map (matching PLAXIS's own property names, e.g. "SoilModel", "gammaUnsat") to create a usable material in one call. Property names are checked against the names PLAXIS 2D V22 exposes for that kind and are case-sensitive.
"Identification" renames the material: after create_material(kind="soil", properties={"Identification": "SZ"}), the object's path is "SZ", and that is what every later call -- assign_material included -- must use.
Inputs: kind (required), properties. Returns: object
create_phaseADestructive
Create a new phase relative to an existing one.
PLAXIS always has an InitialPhase; the first real phase is typically created with reference_phase="InitialPhase".
Inputs: reference_phase (required), position. Returns: object
create_pointADestructive
Create one or more points at [x, y] coordinates.
Inputs: coordinates (required). Returns: object
create_polygonADestructive
Create a polygon from 3 or more vertices.
Each vertex is either an [x, y] coordinate or the path of an existing point. Only the vertex-list form is implemented; the polycurve-based form is not.
Inputs: vertices (required). Returns: object
create_soillayerCDestructive
Add a soil layer with the given height.
Inputs: height (required). Returns: object
create_structural_elementADestructive
Add a structural element feature to one or more existing lines.
Only the add-to-existing-line form is implemented; creating a new line inline, or element-specific extra overloads, are not. Create the line first with create_line.
Inputs: kind (required), paths (required). Returns: object
deactivateCDestructiveIdempotent
Deactivate one or more objects in one or more phases.
Inputs: paths (required), phases (required). Returns: object
disconnectAIdempotent
Disconnect the current PLAXIS worker session.
Inputs: no named parameters. Returns: object
generate_meshBDestructive
Generate the mesh, optionally with a relative element size factor.
enhanced_refinement requires relative_element_size to also be given.
Inputs: enhanced_refinement, relative_element_size. Returns: object
inspectBRead-onlyIdempotent
Inspect a PLAXIS object or property.
Inputs: path. Returns: object
list_materialsARead-onlyIdempotent
Return a compact material summary.
Inputs: no named parameters. Returns: object
list_membersARead-onlyIdempotent
List available attributes on a PLAXIS object path.
Inputs: path. Returns: object
list_objectsBRead-onlyIdempotent
List the model objects of one kind, with the path to pass back.
Each object carries path (the exact string every reference
parameter accepts), its identification, and a short geometry or
material summary -- enough to pick the object you mean without
probing members one at a time.
Inputs: kind (required), limit, offset. Returns: object
list_phasesARead-onlyIdempotent
Return a compact model-phase summary.
Inputs: no named parameters. Returns: object
model_stateARead-onlyIdempotent
Report whether the model can be calculated, and what is stopping it.
Read-only. Returns mesh status and element counts, the phase table
with each phase's marked-for-calculation flag, and any features
with no material assigned. blocking lists what would stop a
calculate; unknown lists the checks that could not be evaluated
on this endpoint, so an empty blocking is never mistaken for a
clean bill of health.
Inputs: no named parameters. Returns: object
new_projectBDestructive
Create a new PLAXIS project.
Inputs: no named parameters. Returns: object
open_projectADestructive
Open a PLAXIS project.
An absolute path is used as given; a relative path (a bare filename) resolves against the working directory, so "model.p2dx" opens the project in the directory the session was started in. The result reports the resolved absolute path.
Inputs: filename (required). Returns: object
project_infoARead-onlyIdempotent
Return common project metadata and units.
Inputs: no named parameters. Returns: object
recover_projectBDestructive
Recover the current PLAXIS project.
Inputs: no named parameters. Returns: object
save_projectADestructiveIdempotent
Save the active project, optionally to a new path.
Omit filename to save the open project in place. An absolute filename is used as given; a relative one (a bare "model.p2dx") saves into the working directory the session was started in, not PLAXIS's own directory. The result reports the resolved absolute path.
Inputs: filename. Returns: object
set_current_phaseAIdempotent
Make an existing phase the current phase for further edits.
Inputs: phase (required). Returns: object
set_modeAIdempotent
Switch the PLAXIS Input working mode.
force_new_intersection is only meaningful for mode "mesh", "water", or "stages"; it is rejected for "soil" or "structures".
Inputs: mode (required), force_new_intersection. Returns: object
set_phase_propertyADestructiveIdempotent
Set a property of an object for one specific phase only.
This is PLAXIS's phase-scoped setproperties form, distinct from set_property, which changes a property without phase scoping.
Inputs: path (required), phase (required), value (required), property (required). Returns: object
set_propertyADestructiveIdempotent
Set a writable PLAXIS property using a dotted path.
For a material reference such as Plate_1.Material use
assign_material instead -- PLAXIS needs a real object there, and no
string spelling of the material's name works through this tool.
Setting Identification renames the object, which changes the path
every later call must use.
Inputs: path (required), value (required). Returns: object
view_resultsAIdempotent
Open a calculated phase in the PLAXIS Output application.
This is the only route from a calculated Input model to the Output endpoint's results: Output reads whatever its application has open, and the Output role deliberately has no open_project. Call this for a phase whose status is "calculated", then read results through the Output server.
Inputs: phase (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 34 tools
Each tool targets a distinct object/action: connections, project lifecycle, geometry creation, material assignment, phase control, calculation, and inspection. Overlapping names like list_members vs list_objects are differentiated by scope (attributes vs object instances). No two tools appear to do the same thing.
Most tools follow a verb_noun pattern (connect, list_*, create_*, set_property, calculate), while status/info tools use noun phrases (project_info, model_state, connection_status). This is a consistent convention within each category, though not uniform across all tools.
34 tools is a large surface, exceeding the 25+ threshold. While the engineering domain is complex, the count feels heavy and could overwhelm agents; some tools could be consolidated (e.g., create_point/line/polygon could be one geometry tool).
The tool set covers the full typical workflow: project management, geometry, materials, phases, meshing, calculation, and results. Obvious gaps include no delete tools for objects/phases/materials and no explicit import/export, but these are workable around via close_project/recover_project and generic set_property.
Maintenance
Related MCP Connectors
Global CAD/BIM, industrial engineering (FEM, CFD) and property tools via one MCP endpoint.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Engineering calculation MCP server for oil and gas engineering applications.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseBqualityFmaintenanceA Model Context Protocol server that provides secure command-line access to Windows systems, allowing MCP clients like Claude Desktop to safely execute commands in PowerShell, CMD, and Git Bash shells with configurable security controls.9372 npm265MIT
- AlicenseNot gradedqualityDmaintenanceA powerful executable server for running Model Context Protocol services that supports tool chain execution, multiple MCP services management, and a pluggable tool system for complex automation workflows.179MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that bridges MCP clients to ANSA CAE pre-processor via file IPC, enabling geometry operations, model management, and solver deck export.7-
- AlicenseAqualityCmaintenanceMCP server for full AutoCAD automation, AutoCAD LT automation, and headless DXF generation. It provides 8 consolidated tools for drawing, entity, layer, block, annotation, P&ID, view, and system operations via MCP stdio transport.1247MIT