
PFC - ITASCA Discrete Element Simulation
io.github.yusong652由 GitHub 帳號 yusong652 發布v0.2.5更新於 Oct 28, 2026
Give AI agents full access to ITASCA PFC - documentation, simulation, and plot capture.
概覽
將 AI 助理接入 ITASCA 岩土力學模擬軟體(PFC、FLAC、3DEC、MPoint、MassFlow),可查閱文件、執行模擬並執行程式碼。
- 可以做什麼
- 瀏覽並搜尋各引擎、各版本的指令、Python API 與參考文件
- 在互動式 REPL 中執行程式碼,模擬執行期間也可使用
- 提交長時間模擬任務、監控進度、中斷任務並查看任務歷史
- 取得 GUI 中的操作,例如已執行的儲存格、命令列輸入以及開啟的圖表或資料檔
- 適用情境
- 適合已在使用 ITASCA 岩土力學引擎、希望由助理查詢指令、撰寫並執行模擬腳本,或在不中斷執行中模型的情況下查看進度的情境。
- 執行需求
- 本機需安裝 ITASCA 引擎(PFC、FLAC、3DEC、MPoint 或 MassFlow,建議 9.0 以上,部分舊版亦支援)、用於 uvx 的 uv,以及支援 MCP 的用戶端。需在引擎的 IPython 主控台啟動橋接外掛;橋接啟動時會檢查 PyPI 並自動升級。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PFC - ITASCA Discrete Element Simulation,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
itasca-mcp
[CI] [PyPI] [Downloads] [GitHub stars] [License: MIT] [Python 3.10+]
itasca>model new ;now, with LLM.
itasca-mcp connects AI agents to ITASCA's geomechanics simulation software — PFC, FLAC, 3DEC, MPoint, and MassFlow — through the Model Context Protocol. Browse documentation, run simulations, and execute code, all through natural conversation.
itasca>model solve ;LLM solves.
Tools (7)
2 documentation tools — browse by path and search by keywords across the selected engine's commands, Python API, FISH intrinsics, and reference docs. No bridge required.
5 execution tools — interactive REPL, task submission, progress monitoring, interruption, and history. Requires bridge.
Example Prompts
- "Run a biaxial compression test on a dense specimen and plot the stress–strain curve"
- "Build a slope model in FLAC3D and find the factor of safety"
- "Model a tunnel excavation in jointed rock with 3DEC and check block displacements around the opening"
- "Simulate a landslide runout with MPoint and report the final deposit profile"
- "The simulation is still running, check the current unbalanced force without stopping it"
- "Look up the
plotcommands in the docs, then plot the contact force chains of the current model" - "The command I just typed in the console doesn't seem right, take a look"
First-time Setup
Prerequisites
- An ITASCA engine installed — PFC, FLAC, 3DEC, MPoint, or MassFlow. 9.0+ recommended; PFC 6.0 / 7.0, FLAC 7.0, and 3DEC 7.0 are also supported.
- uv installed (for
uvx) - An AI agent — Claude Code, Codex CLI, Gemini CLI, or any MCP-capable client
Agentic Setup (Recommended)
Copy this to your AI agent and let it self-configure:
Manual Setup
1. Register the MCP server with your agent.
Most agents register it with a single command:
Or fill in the MCP config file manually:
2. Start the bridge from inside the ITASCA engine:
Download addon.py, then use either of these two flows inside the engine GUI (PFC, FLAC, 3DEC, ...):
- Copy the file contents into the engine's IPython console and run them
- Or download the file and execute it in the engine GUI
Verify
Restart your AI agent and ask it to call itasca_execute_code to verify the connection.
Daily Startup
Once first-time setup is done, each new engine session only needs the bridge re-started — run this in the engine's IPython console and you're back online:
start() checks PyPI for a newer bridge release and self-upgrades before starting. The MCP client config persists.
Features
- Multi-engine, multi-version corpus - command, Python API, and reference docs for PFC, FLAC, 3DEC, MPoint, and MassFlow across engine versions (PFC: 6.0/7.0/9.0, FLAC: 7.0/9.0, 3DEC: 7.0/9.0), selected via the
softwareandversionparameters - Documentation agents can navigate - agents browse the engine command tree to discover capabilities and boundaries, reducing hallucinated commands, with plot item reference docs supplementing the official documentation
- Live REPL alongside running tasks - execute code while a simulation is running: check model state and intermediate results without stopping the task; also useful for quick iteration before writing a full script
- Task lifecycle management - submit long-running simulations, monitor progress, interrupt running tasks, and browse task history
- Sees what you do in the GUI - cells you run in the engine's IPython pane, commands you enter at its prompt, the plots and data files you open, close or switch to, the items you add to a plot, the data files you execute from the editor, and the edits you save to a data file (as a diff) all reach the agent on its next call, so you can work in the GUI and with the agent at the same time
- Works inside your project - the scripts and data files the agent runs appear in the Project pane's Data Files, and a file it changes while you have it open in the editor is reloaded right away
- Agent-started bridge - an AI agent can start the bridge itself through the engine's
console.exe - Multi-client compatible - works with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, OpenCode, toyoura-nagisa, and other MCP clients
Troubleshooting
See Troubleshooting in the bootstrap guide.
Development
See Developer Guide: Install and Run from Source.
[itasca-mcp MCP server]Contributing
PRs and issues are welcome! See CONTRIBUTING.md for where changes land and how the documentation corpus is structured, and the Developer Guide for the source install.
License
MIT - see LICENSE.
來源:README.md,提交 9f3b633
工具
0版本歷史
1- v0.2.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分