Pfc MCP logo

Pfc MCP

by yusong652

Browse ITASCA documentation and run, monitor, inspect, or interrupt PFC, FLAC, and 3DEC simulations through MCP.

Install Pfc MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "yusong652-pfc-mcp": {
      "command": "uvx",
      "args": [
        "itasca-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

yusong652/pfc-mcp connects MCP clients to ITASCA geomechanics engines through a WebSocket bridge to the engine GUI. It provides command, reference, and Python API documentation lookup, plus synchronous code execution and asynchronous task management for simulations. Use it when an agent needs to discover valid ITASCA syntax, inspect a live model, create plots, or manage long-running runs. Documentation tools work without the bridge, while execution tools require a running bridge inside the ITASCA engine.

Use cases

  • Browse ITASCA command and reference documentation
  • Run Python code in a live simulation engine
  • Submit and monitor long-running simulation scripts
  • Inspect or tune a running model
  • Create plots from simulation state

Key features

  • Command, reference, and Python API documentation lookup
  • Synchronous execution in the engine's main thread
  • Asynchronous task submission with progress and output
  • Graceful interruption and task history
  • Live inspection of running simulations
  • Plot and console output capture

Tools10

What Pfc MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/17 checks healthy over the last 97d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · itasca-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars229Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Pfc MCP works

What yusong652/pfc-mcp does

yusong652/pfc-mcp exposes ITASCA simulation workflows through the Model Context Protocol. It connects an AI client to the embedded Python environment of an ITASCA engine and supports documentation discovery, code execution, plot creation, and background task control. The software selector identifies the engine for documentation requests, including PFC, FLAC, and 3DEC.

Its documentation corpus covers command syntax, the Itasca Python SDK, and reference material such as constitutive models, range filters, plot items, and model properties. The repository also describes documentation coverage for MPoint and MassFlow and multiple engine versions.

How it works

The server is registered as an MCP process, typically through uvx itasca-mcp. Documentation requests can run without a connection to an engine. Execution requests use a bridge started from the ITASCA GUI, allowing the MCP server to reach the engine's main Python thread.

Synchronous code execution waits for completion and returns output, with a default timeout of 10 seconds and a maximum of 600 seconds. It is not tracked as a task and cannot be interrupted while running. For longer or cancellable work, submit a Python script as an asynchronous task. The task tools return an identifier, expose progress and output, support graceful interruption, and retain task history.

The asynchronous and synchronous execution paths share the engine's __main__ namespace. This lets an inline call inspect or change state belonging to a running task. Output from Python and itasca.command() is combined in execution order, including tables, lists, and command summaries.

Setup and configuration

Install an ITASCA engine and uv, then register the server with an MCP client. The documented command is uvx itasca-mcp; Claude Code, Codex CLI, and Gemini CLI each have a corresponding registration command. Alternatively, add an MCP server entry with uvx as the command and itasca-mcp as its argument.

Start the bridge by loading addon.py in the engine's IPython console or by executing it from the engine GUI. On later sessions, run import itasca_mcp_bridge followed by itasca_mcp_bridge.start() inside the engine. ITASCA 9 and later use Python 3.10; older supported installations may use Python 3.6 or earlier, so scripts should match the embedded interpreter.

Tools and capabilities

  • Browse command trees by category or complete command path with itasca_browse_commands.
  • Search command documentation by keyword with itasca_query_command.
  • Browse reference pages and Python API paths with itasca_browse_reference and itasca_browse_python_api.
  • Search the Python API with itasca_query_python_api.
  • Run inline Python using itasca_execute_code.
  • Submit scripts asynchronously with itasca_execute_task.
  • Inspect paginated output and status using itasca_check_task_status.
  • List recorded work with itasca_list_tasks or request graceful cancellation with itasca_interrupt_task.

Multi-line itasca.command() batches are split into individual engine calls so the bridge remains reachable between commands. FISH definitions must remain whole in one command string, and program call files are processed command by command.

Limitations and notes

Execution depends on a compatible ITASCA installation and an active bridge. Synchronous calls block until completion or timeout. A task can be interrupted, but inline execution cannot. The engine's Python version varies by ITASCA release. Documentation navigation uses paths and engine selectors; references describe language elements and configuration details rather than standalone commands.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pfc MCP

yusong652/pfc-mcp is an MCP server that connects AI clients to ITASCA geomechanics engines, including PFC, FLAC, and 3DEC. Its main tools browse commands and references, search the Python API, execute code, submit background tasks, monitor output, list task history, and interrupt running simulations.

Install `uv`, an ITASCA engine, and an MCP-capable client, then register `uvx itasca-mcp` with the client. Start the bridge by loading `addon.py` in the ITASCA GUI's Python environment. Claude Code, Codex CLI, and Gemini CLI each have documented registration commands.

Start the bridge inside the ITASCA engine by running `addon.py`, or later call `itasca_mcp_bridge.start()` after importing `itasca_mcp_bridge`. The MCP server then reaches the engine through the bridge for code execution and task management.

Yes. Use `itasca_execute_task` to submit a Python script asynchronously, then poll `itasca_check_task_status` for progress and output. You can list task history with `itasca_list_tasks` and request graceful cancellation with `itasca_interrupt_task`.

Yes. It uses a standard MCP server configuration with `uvx itasca-mcp`, so it can be registered in MCP-capable clients. Execution features still require the ITASCA bridge to be running inside the engine.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPfc MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yusong652-pfc-mcp?style=directory)](https://allmcps.com/mcp/yusong652-pfc-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/yusong652-pfc-mcp"><img src="https://allmcps.com/api/badge/yusong652-pfc-mcp?style=directory" alt="Pfc MCP on AllMCPs" /></a>