# OpenSTAAD MCP Server [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/BentleySystems/openstaad-mcp  
**GitHub Stars:** 61  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/openstaad-mcp-server

## Description
MCP server for Bentley STAAD.Pro via the OpenSTAAD API

## Tools
Capabilities this server exposes over MCP:

- **discover_api** — Discover available API guidance and skills.

Call this FIRST before using other openstaad-mcp tools.
Then use ``read_skills`` with one or more specific skill names to load full guidance.
- **read_skills** — Read one or more skills by name.

Use ``discover_api`` first to list available skills.
Each skill provides domain-specific guidance (e.g. analysis, geometry, loads).

Pass skill names like ``["staad-analysis"]`` or sub-paths like
``["staad-steel-design/assets/DESIGN_CODES"]`` to read reference files
within a skill.
- **list_instances** — List all running STAAD.Pro instances.

Returns a list of instances with their alias, process ID, currently
open file path, and STAAD version.  Call this before ``execute_code``
when multiple STAAD instances may be running so you can pick the
right one.  The ``alias`` (e.g. ``staadPro1``) is stable for the
server session even if the model file changes.

If a version is below the minimum supported (25.0.1), a ``warning``
field is included with details about potential data inaccuracies.
- **get_status** — Check the connection to a STAAD.Pro instance.

Pass ``instance`` (alias from ``list_instances``) to target a
specific instance.  Omit it when only one instance is running.

Returns connection state, STAAD version, model path, and the
directories ``execute_code`` may currently read/write
(``allowed_dirs``) — call this again after the user reconfigures
allowed directories, since the MCP server must be relaunched for
that change to take effect and a stale in-context list will
otherwise look correct.
- **execute_code** — Execute Python code in a sandbox against the OpenSTAAD API (don't forget to call discover_api and read_skills for API guidance).

The sandbox provides pre-connected ``staad`` (the OpenSTAAD root object) and ``input_data`` (if input_data_path is provided) variables (plus ``json``
and ``math`` modules). `import` statements, `dir()`, `getattr()`, ... are **BLOCKED**.

The last expression value or an explicit ``result = ...`` assignment is returned as the result.
If ``output_data_path`` is provided, the sandbox will write the result to the specified file.

Paths must be on the user LOCAL filesystem and inside MCP roots or configured `allowed_dirs`.
On Claude Desktop, users can configure allowed directories in the extension settings and Claude can use the filesystem ``copy_file_to_claude``
tool to move files to Claude's filesystem.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "openstaad-mcp-server": {
    "command": "uvx",
    "args": ["--from","git+https://github.com/BentleySystems/openstaad-mcp","openstaad-mcp"]
  }
}
```

## Documentation

## What OpenSTAAD MCP Server does

OpenSTAAD MCP Server gives MCP-compatible AI clients access to running Bentley STAAD.Pro models through the OpenSTAAD API. It is intended for engineering workflows that benefit from agent assistance, including load-case definition, model-data extraction, and repetitive property updates.

The server can work with multiple active STAAD.Pro instances. Agents can identify available instances, inspect their model paths and STAAD versions, and check whether a model is connected or analysis is in progress. Processing occurs on the local machine, with no cloud data transfer or telemetry described for the server.

## How it works

The server exposes MCP tools that guide an agent from API discovery through model interaction. `discover_api` lists available API skills and usage guidance, while `read_skills` provides more detailed instructions for selected skills. `list_instances` identifies active STAAD.Pro processes and their associated model information.

After selecting a connection, an agent can use `get_status` to inspect connection state, STAAD version, model path, and analysis status. `execute_code` runs validated Python code against the connected STAAD.Pro model. The tool also supports optional server-side CSV and XLSX file input for bulk data workflows, placing loaded data in the sandbox as `input_data`.

Two transport modes are available. In stdio mode, the MCP client starts the server process directly. In HTTP mode, the server remains running and clients connect to its MCP endpoint using a bearer token.

## Setup and configuration

The supported environment is Windows 11 or newer with STAAD.Pro 2025 or later installed and running. A model should be open in STAAD.Pro before the agent starts interacting with it.

For Claude Desktop, the downloadable `openstaad-mcp.mcpb` release bundle can be installed from the Extensions settings. Manual configuration is also available with `uvx` and the repository source:

```json
{
  "mcpServers": {
    "openstaad": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/BentleySystems/openstaad-mcp", "openstaad-mcp"]
    }
  }
}
```

Other clients can launch stdio with:

```powershell
uvx --from git+https://github.com/BentleySystems/openstaad-mcp openstaad-mcp
```

Install `uv` before using this command. To use HTTP, add `--transport http`; the server prints an endpoint and generates a bearer token unless one is supplied. The default HTTP port is 18120, and it can be changed with `--port`. Logging can be adjusted with `--log-level` and `--log-file`.

## Tools and capabilities

- `discover_api`: Lists available OpenSTAAD API skills and usage guidance.
- `read_skills`: Returns detailed guidance for requested skills.
- `list_instances`: Lists active STAAD.Pro instances, model paths, and versions.
- `execute_code`: Runs validated Python against a connected STAAD.Pro model.
- `get_status`: Reports connection state, STAAD version, model path, and analysis status.
- File workflows: Reads or writes CSV and XLSX data through server-side I/O for bulk operations.

## Limitations and notes

STAAD.Pro must be installed and running on Windows 11 or newer, and the supported STAAD.Pro version is 2025 or later. The server is intended to connect to active STAAD.Pro instances rather than operate as a standalone structural-analysis application.

HTTP mode requires clients to use the generated or configured bearer token. Port selection can vary when multiple instances are running or when the default is changed. The server's local execution model keeps processing on the user's machine, but clients still need access to that machine's running STAAD.Pro instance.

_Full upstream README: https://allmcps.com/mcp/openstaad-mcp-server/readme_

