AspenPlus MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AspenPlus MCP Server Open the simulation, run it, and report the outlet stream temperature."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AspenPlus MCP Server
MCP (Model Context Protocol) server for Aspen Plus process simulation integration. This server enables AI assistants to interact with Aspen Plus simulations through a standardized interface.
Features
Process Simulation Control: Open, run, and manage Aspen Plus simulations
Data Access: Read and write stream properties, block parameters, and simulation results
Flowsheet Manipulation: Create, delete, and connect equipment blocks and streams (enhanced mode)
Equipment Support: Mixer, Heater, Flash2, Radfrac, DSTWU, RPLUG, RCSTR, RYIELD
AI Integration: Connect Claude and other AI assistants to Aspen Plus
Related MCP server: comsol-mcp-server
Requirements
Python 3.10 or higher
Windows OS (for Aspen Plus COM interface)
Aspen Plus installed
uv (recommended) – installs Python and all dependencies (incl. pywin32) automatically
Installation
Clone this repository:
git clone <repository-url>
cd AspenPlus-MCP-ServerInstall uv (if not already installed):
winget install --id=astral-sh.uv -e
# or: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Create the environment and install all dependencies:
uv syncThis creates a .venv in the project folder, installs a suitable Python version if needed, and installs the package in editable mode (incl. dev tools).
python -m venv .venv
.venv\Scripts\activate # Linux/macOS: source .venv/bin/activate
pip install -e .Usage
Running the Server
uv run aspenplus-mcpThe server communicates via stdio and is normally started by the MCP client (see below), not manually.
Available Tools
Basic Mode Tools
open_simulation- Open an Aspen Plus simulation file (setuse_enhanced: false)run_simulation- Run the current simulationget_value- Get a value from the simulation using a node pathset_value- Set a value in the simulationclose_simulation- Close the current simulation
Enhanced Mode Tools (requires use_enhanced: true)
place_block- Add a new equipment block to the flowsheetdelete_block- Remove an equipment block from the flowsheetplace_stream- Add a new stream to the flowsheetconnect_stream- Connect a stream to a block portsave_simulation- Save the simulation to file
Example Node Paths
# Stream temperature
\\Data\\Streams\\S1\\Output\\TEMP_OUT\\MIXED\\MIXED
# Block parameter
\\Data\\Blocks\\B1\\Input\\TEMP
# Component flow rate
\\Data\\Streams\\S1\\Output\\MOLEFLOW\\MIXED\\WATERDevelopment
uv sync already installs the dev dependencies (pytest, black, mypy).
Run tests:
uv run pytestFormat code:
uv run black src/Add a dependency:
uv add <package> # runtime dependency
uv add --dev <package> # dev dependencyConfiguration with Claude
In all examples, replace C:\\path\\to\\AspenPlus-MCP-Server with the absolute path to your clone of this repository. uv run creates/updates the environment automatically on first start, so a prior uv sync is optional.
Claude Code
claude mcp add aspenplus --scope user -- uv --directory "C:\path\to\AspenPlus-MCP-Server" run aspenplus-mcp--scope usermakes the server available in all projects; omit it (defaultlocal) to register it only for the current project, or use--scope projectto write it to a shared.mcp.json.Check the connection with
claude mcp listor/mcpinside Claude Code.
Claude Desktop
Add to your Claude Desktop config file (Settings → Developer → Edit Config):
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"aspenplus": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\AspenPlus-MCP-Server",
"run",
"aspenplus-mcp"
]
}
}
}Important Notes:
In JSON, use double backslashes (
\\) or forward slashes (/) in pathsIf Claude Desktop cannot find
uv, use its full path ascommand(find it withwhere uv, e.g.C:\\Users\\<you>\\.local\\bin\\uv.exe)After editing the config file, fully quit and restart Claude Desktop (also from the system tray)
The MCP server starts automatically when Claude Desktop launches
{
"mcpServers": {
"aspenplus": {
"command": "C:\\path\\to\\AspenPlus-MCP-Server\\.venv\\Scripts\\python.exe",
"args": ["-m", "aspenplus_mcp.server"]
}
}
}Usage Examples
Basic Mode - Reading/Writing Values
# Open simulation in basic mode
open_simulation(filepath="C:/simulations/myprocess.bkp", use_enhanced=False)
# Read stream temperature
get_value(path="\\Data\\Streams\\S1\\Output\\TEMP_OUT\\MIXED\\MIXED")
# Set feed temperature
set_value(path="\\Data\\Streams\\FEED\\Input\\TEMP", value=25.0)
# Run simulation
run_simulation()Enhanced Mode - Flowsheet Editing
# Open simulation in enhanced mode
open_simulation(filepath="C:/simulations/myprocess.bkp", use_enhanced=True)
# Add a mixer block
place_block(block_name="MIX-01", equipment_type="Mixer")
# Add streams
place_stream(stream_name="STREAM-1", stream_type="MATERIAL")
place_stream(stream_name="STREAM-2", stream_type="MATERIAL")
# Connect streams to mixer
connect_stream(block_name="MIX-01", stream_name="STREAM-1", port_name="IN1")
connect_stream(block_name="MIX-01", stream_name="STREAM-2", port_name="IN2")
# Save changes
save_simulation()Credits
This project includes the AspenPlus Python Interface by Richard Wolfgang ten Hagen (version 2.1) as src/aspenplus_mcp/aspen_interface.py for advanced flowsheet manipulation capabilities. If you use it for academic research, please cite it (see THIRD_PARTY_NOTICES.md).
License
The code of this project is licensed under the MIT license.
Exception: src/aspenplus_mcp/aspen_interface.py is third-party code that is not covered by the MIT license. Its upstream repository has no license file; its terms of use are documented in THIRD_PARTY_NOTICES.md.
Available Tools
10 toolsclose_simulationB
Close the current Aspen Plus simulation
Inputs: no named parameters. Returns: result
connect_streamC
Connect a stream to a block port (requires enhanced interface)
Inputs: port_name (required), block_name (required), stream_name (required). Returns: result
delete_blockC
Delete an equipment block from the flowsheet (requires enhanced interface)
Inputs: block_name (required). Returns: result
get_valueC
Get a value from the simulation using a node path
Inputs: path (required). Returns: result
open_simulationB
Open an Aspen Plus simulation file (.bkp or .apw)
Inputs: filepath (required), use_enhanced. Returns: result
place_blockA
Place a new equipment block in the flowsheet (requires enhanced interface)
Inputs: block_name (required), equipment_type (required). Returns: result
place_streamB
Place a new stream in the flowsheet (requires enhanced interface)
Inputs: stream_name (required), stream_type. Returns: result
run_simulationB
Run the current Aspen Plus simulation
Inputs: no named parameters. Returns: result
save_simulationB
Save the simulation to file (requires enhanced interface)
Inputs: filename. Returns: result
set_valueB
Set a value in the simulation using a node path
Inputs: path (required), value (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes: lifecycle (open/run/save/close), value access (get/set_value), and flowsheet editing (place/delete/connect). The only mild overlap is place_stream vs connect_stream, but the descriptions distinguish creating a stream from wiring it to a port.
Every tool follows a consistent snake_case verb_noun pattern (open_simulation, get_value, place_block, connect_stream). No mixed conventions or vague verbs.
Ten tools is well-scoped for a simulation control server, covering lifecycle, value access, and flowsheet editing without filler. Each tool earns its place.
The surface covers open/run/save/close and flowsheet creation, but lacks delete_stream and disconnect_stream while offering delete_block, and has no way to list blocks/streams/node paths, forcing agents to guess node paths for get_value/set_value.
Maintenance
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Connect AI assistants to your Tedix organization’s tasks, knowledge, apps, and results through MCP.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI agents to automate COMSOL Multiphysics simulations, including model management, geometry building, physics configuration, meshing, solving, and results visualization through the MCP protocol.78MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to automate COMSOL Multiphysics simulations, including model management, geometry building, physics configuration, meshing, solving, and results visualization via the MCP protocol.MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language control of Aspen Plus for chemical process simulation, including parameter tuning, batch runs, and result reading.7MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables natural language control of Aspen HYSYS simulations via COM, offering 51 tools for reading, editing, and building flowsheets with a safe-mode gating by default.1MIT