Chapter 23

AI agents: the Statiko MCP server

Statiko includes a Model Context Protocol (MCP) server, so an AI agent such as Claude can work with your beam projects: create or open a project, read and edit the beam, undo and redo, save, read the result with every check and the moment, shear and deflection lines, and export the PDF report. The agent uses the same project, calculation and report code as the app, so its numbers, verdicts and PDF are the app's. This chapter shows how to switch the server on, how to connect an agent and what the agent can do.

How it works

The installed Windows app starts the server when an agent's client runs Statiko.exe mcp. It opens no window and talks to the client over standard input and output on your own computer. The server is named statiko and carries the app's version.

  • The server has its own open project and never talks to a running Statiko window. If you save a file in the app after the agent opened it, the agent's save answers conflict instead of overwriting your work.
  • Calculation follows every edit, as in the app; there is no calculate tool.
  • Your licence decides every call exactly as it does in the app. A refused call answers denied with the reason.

Not available in this version: a hosted remote server, Android and macOS, any transport other than stdio, per-agent permission levels, and fire design through the server.

Source: spec/mcp/server.md rules 3, 8, 11–13 and Scope; spec/beam/fire.md Scope.

Switching the server on

Open Settings › General. On the Windows desktop the area AI agents (MCP) sits after Interface language and Theme. Android has no such area.

ControlWhat it does
Let AI agents use StatikoSwitches the server on. Off by default.
Project folderThe only folder the agent may read and write. Shows “No folder chosen” until you pick one.
Choose folder…Opens a folder chooser; cancelling keeps the current folder.
Copy configurationOne button per client: Claude Desktop, Claude Code, Cursor, Codex, Gemini CLI, VS Code (Copilot). Copies that client's configuration with the installed Statiko.exe path filled in and shows “Copied”.

The Copy configuration buttons need the installed app; on a development build they are disabled with “Install Statiko to copy a configuration”. If another program holds the clipboard you see “The configuration could not be copied to the clipboard.” Settings › Reset switches the server off and clears the folder.

Source: spec/mcp/server.md rules 10, 40–47.

Connecting an agent

  1. Install Statiko with the Windows installer.
  2. In Settings › General › AI agents (MCP), tick Let AI agents use Statiko and click Choose folder… to pick your project folder.
  3. Click the Copy configuration button for your client.
  4. Paste the configuration where the client reads it (table below) and start the client. The client starts Statiko.exe mcp itself.
ClientWhere to paste it (Windows)Configuration
Claude Desktop%APPDATA%\Claude\claude_desktop_config.json{"mcpServers": {"statiko": {"command": "<exe>", "args": ["mcp"]}}}
Claude Code.mcp.json in a project, or claude mcp add-json{"mcpServers": {"statiko": {"type": "stdio", "command": "<exe>", "args": ["mcp"]}}}
Cursor%USERPROFILE%\.cursor\mcp.json or .cursor\mcp.jsonas Claude Code
Codex%USERPROFILE%\.codex\config.toml[mcp_servers.statiko], command = "<exe>", args = ["mcp"], one per line
Gemini CLI%USERPROFILE%\.gemini\settings.json or .gemini\settings.jsonas Claude Desktop
VS Code (Copilot).vscode\mcp.json or the user mcp.json{"servers": {"statiko": {"type": "stdio", "command": "<exe>", "args": ["mcp"]}}}

<exe> is the installed Statiko.exe path; the button fills it in, correctly escaped.

When the server will not start

The server refuses to start and writes one line to standard error when the settings file cannot be read (“Open Statiko once and check Settings › General › AI agents (MCP).”), when it is switched off, when no project folder is chosen, or when the folder no longer exists. Each message tells you which setting to fix.

Source: spec/mcp/server.md rules 10, 41–45 and Client configurations.

What the agent can do

The server offers fourteen tools. When a project has a single analysis and a single member, the agent does not need to name them.

ToolPurpose
list_projectsLists the .statiko files in the project folder or a subfolder
create_projectCreates a new beam project from Statiko's template and saves it; never overwrites an existing file
open_projectOpens a project and returns its summary
close_projectCloses the project; refuses with unsaved changes unless told to discard them
get_projectReturns the summary: name, input revision, unsaved changes, undo and redo, design code and analyses
get_beamReturns the beam or column input: material, section, supports, loads, self-weight, combination and limits
list_choicesLists allowed values: design countries, steel and timber grades, profile catalogues and profiles, support kinds, load actions and axes, combinations
edit_beamApplies a batch of edits as one Undo step, with the same rules as the app's screens
undo, redoUndo or redo the last edit, as in the app
save_projectSaves the project; a file changed since it was opened is a conflict and never overwritten
get_resultsWaits for the calculation (30 s by default, at most 120 s) and returns the verdict, reactions and every check with title, clause, status, reason, utilisation and governing combination
get_stationsWaits as get_results does and returns the lines the app's graphs draw for the selected combination: position, deflection, rotation, moment and shear at every station, and the final deflection line where the app draws one. Beam analyses only
export_reportWrites the PDF report as the app's export does, in English, Danish or Serbian Cyrillic, and answers with the path it wrote

Two read-only resources are also offered: statiko://project, the project summary, and statiko://results/{analysisId}, the latest result without waiting.

The edits edit_beam accepts are: rename the project, set the profile, steel or timber grade, set, add or remove a support or load, self-weight, top flange restraint, combination, deflection limits, design code and load duration. The same tools work on a column analysis, with the edits a column allows.

Source: spec/mcp/server.md Tools table and rules 24–39e and 48; tool descriptions in mcp/.

Folder, units and answers

  • Folder. The agent can only read and write inside the project folder you chose. Paths are relative to it; an absolute path, a .. that leaves the folder or a link pointing outside answers outside_root. Projects end in .statiko, reports in .pdf.
  • Units. Every quantity is a value with an SI unit, for example {"value": 100000, "unit": "N"}: m, m², m³, m⁴, N, N/m, Nm, Pa, Hz, kg/m³, rad for a rotation, 1 for a ratio and % for profile slopes. Values are never rounded, and an input in another unit is refused rather than converted. A bare number is refused too. A force or line load is positive downward, in the direction of gravity, as get_beam reports it; a negative value lifts the beam.
  • States. Every answer has a state: success, denied, invalid_input, unsupported, running, outdated, failed, outside_root, conflict, busy, unsaved_changes or no_project. Anything but success comes with a reason.
  • Results. A result names the input revision it belongs to. A result of an older input is outdated; a calculation not finished in time is running. Each check keeps its own status, and a check without a utilisation never reads as passed.

Source: spec/mcp/server.md rules 15–23.