PFC

v0.2.5Developer Toolsstable

MCP server that gives AI agents full access to ITASCA PFC - browse documentation, run simulations, capture plots, all through natural conversation. Built on the Model Context Protocol, pfc-mcp turns any MCP-compatible AI client (Claude Code, Codex CL

ai-agentclaudeclaude-codecodexdem
Share:
42
Stars
0
Downloads
0
Weekly
0/5

What is PFC?

PFC is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that gives ai agents full access to itasca pfc - browse documentation, run simulations, capture plots, all through natural conversation. built on the model context protocol, pfc-mcp turns a...

MCP server that gives AI agents full access to ITASCA PFC - browse documentation, run simulations, capture plots, all through natural conversation. Built on the Model Context Protocol, pfc-mcp turns any MCP-compatible AI client (Claude Code, Codex CL

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server that gives AI agents full access to ITASCA PFC -

Use Cases

Browse ITASCA PFC documentation through natural conversation.
Run simulations and capture plots with AI agents.
Automate geomechanics discrete element modeling.
yusong652

Maintainer

LicenseMIT License
Languagepython
Versionv0.2.5
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

PIP

pip install pfc-mcp

Manual Installation

pip install pfc-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use PFC

pfc-mcp is a Python MCP server that gives AI agents full programmatic access to ITASCA PFC, the discrete element method simulation software widely used in geomechanics research. Through a bridge running inside PFC's IPython console, AI clients can browse PFC command and Python API documentation, submit and monitor simulations, interact with a live REPL, and retrieve plot outputs — all through natural conversation. Researchers and engineers use it to accelerate DEM simulation workflows without leaving their AI coding environment.

Prerequisites

  • ITASCA PFC version 6.0, 7.0, or 9.0 installed on your machine
  • Python 3.10+ and the uv package manager (pip install uv or curl-based installer)
  • The addon.py bridge file downloaded from the pfc-mcp GitHub repository
  • An MCP-compatible client such as Claude Code, Claude Desktop, or Gemini CLI
1

Install pfc-mcp via pip or uvx

Install the pfc-mcp package from PyPI using pip or uvx. uvx is recommended for isolated execution without polluting global packages.

# With pip
pip install pfc-mcp

# With uvx (no permanent install needed)
uvx pfc-mcp
2

Download the bridge file into your PFC project folder

Clone or download addon.py from the repository and place it where your PFC project files are stored. This script starts the bridge between PFC and the MCP server.

git clone https://github.com/yusong652/pfc-mcp
cp pfc-mcp/addon.py /path/to/your/pfc-project/
3

Start the itasca_mcp_bridge inside PFC

Open ITASCA PFC and launch its embedded IPython console. Import and start the bridge module so it can receive instructions from the MCP server.

import itasca_mcp_bridge
itasca_mcp_bridge.start()
4

Register the server with your MCP client

Add pfc-mcp to your MCP client configuration. For Claude Code, use the .mcp.json file in your project root or the claude_desktop_config.json for Claude Desktop.

{
  "mcpServers": {
    "pfc-mcp": {
      "command": "uvx",
      "args": ["pfc-mcp"]
    }
  }
}
5

Verify the connection and browse documentation

Restart your MCP client and ask it to list available PFC commands or browse the PFC documentation. The tools panel should show PFC documentation and execution tools.

PFC Examples

Client configuration

Minimal claude_desktop_config.json entry for pfc-mcp using uvx.

{
  "mcpServers": {
    "pfc-mcp": {
      "command": "uvx",
      "args": ["pfc-mcp"]
    }
  }
}

Prompts to try

Example prompts that leverage pfc-mcp's documentation and simulation execution tools.

- "Browse the PFC command reference for the 'ball' keyword"
- "Show me the Python API documentation for the itasca.ball module"
- "Submit a PFC simulation using the script at /project/assembly.p3dat and monitor its progress"
- "Open an interactive REPL session in PFC and create 100 balls with radius 0.5"
- "Capture the current plot from the PFC model and save it as a PNG"

Troubleshooting PFC

Bridge fails to connect — 'itasca_mcp_bridge module not found'

Make sure addon.py is present in your PFC working directory and that you ran 'pip install pfc-mcp' in the Python environment PFC uses before importing the bridge.

PFC version mismatch errors when submitting tasks

pfc-mcp supports PFC 6.0, 7.0, and 9.0. Pass the correct version parameter when calling task submission tools and ensure the installed pfc-mcp matches your PFC version.

uvx not found in PATH

Install uv via 'pip install uv' or the official installer at https://docs.astral.sh/uv/ and restart your terminal before running uvx pfc-mcp.

Frequently Asked Questions about PFC

What is PFC?

PFC is a Model Context Protocol (MCP) server that mcp server that gives ai agents full access to itasca pfc - browse documentation, run simulations, capture plots, all through natural conversation. built on the model context protocol, pfc-mcp turns any mcp-compatible ai client (claude code, codex cl It connects AI assistants to external tools and data sources through a standardized interface.

How do I install PFC?

Install via pip with: pip install pfc-mcp. Then configure your AI client to connect to this MCP server.

Which AI clients work with PFC?

PFC works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is PFC free to use?

Yes, PFC is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "pfc": { "command": "pip", "args": ["install", "pfc-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use PFC?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides