Skip to main content
Glama

MoziChem-MCP

MoziChem-MCP Logo

PyPI Downloads PyPI Version Supported Python Versions License MCP

A collection of Model Context Protocol (MCP) servers for chemical engineering and chemistry applications, built on top of the powerful MoziChem framework. This repository provides specialized MCP tools that enable AI assistants to perform complex chemical calculations, thermodynamic modeling, and process engineering tasks.

🧪 Overview

MoziChem-MCP bridges the gap between AI language models and chemical engineering calculations by providing structured access to thermodynamic models, equation of state calculations, phase equilibrium computations, and other essential chemical engineering tools through the Model Context Protocol.

Important Notes: This repository is actively maintained and will be updated with new MCP servers and features in the future. Stay tuned for additions to support more chemical engineering domains.

Related MCP server: MoziChem-MCP

🚀 Features

Current MCP Servers

  • 🌡️ EOS Models MCP (eos-models-mcp)

    • Equation of State calculations using various models (Peng-Robinson, Soave-Redlich-Kwong, Redlich-Kwong, van der Waals)

    • Fugacity calculations for pure components and mixtures

    • Thermodynamic property predictions

    • Phase behavior analysis

  • ⚖️ Flash Calculations MCP (flash-calculations-mcp)

    • Vapor-liquid equilibrium calculations

    • Multi-component phase equilibrium

    • Temperature and pressure flash calculations

    • Bubble point and dew point calculations

📦 Installation

Prerequisites

  • Python 3.13 or higher

  • uv package manager (recommended)

Install from Source

# Clone the repository
git clone https://github.com/sinagilassi/mozichem-mcp.git
cd mozichem-mcp

# Install using uv (recommended)
uv sync

# Or install using pip
pip install -e .

Install from PyPI (when available)

pip install mozichem-mcp

🔧 Usage

Running MCP Servers

Each MCP server can be run independently:

EOS Models MCP Server

# Using uvx with the published package
uvx --from mozichem-mcp mozichem-mcp-eos-models

# Or run directly with Python (if installed locally)
python -m mozichem_mcp.mcp.eos_models

Flash Calculations MCP Server

# Using uvx with the published package
uvx --from mozichem-mcp mozichem-mcp-flash-calculation

# Or run directly with Python (if installed locally)
python -m mozichem_mcp.mcp.flash_calculation

Integration with AI Assistants

These MCP servers are designed to work with AI assistants that support the Model Context Protocol, such as:

  • Claude Desktop

  • Other MCP-compatible AI tools

Example Configuration for Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "mozichem-eos": {
      "command": "uvx",
      "args": ["--from", "mozichem-mcp", "mozichem-mcp-eos-models"]
    },
    "mozichem-flash": {
      "command": "uvx",
      "args": ["--from", "mozichem-mcp", "mozichem-mcp-flash-calculation"]
    }
  }
}

Example Calculations

Once integrated with an AI assistant, you can perform calculations like:

"Calculate the fugacity of methane at 300K and 10 bar using the Peng-Robinson equation of state"

"Perform a flash calculation for a mixture of 40% methane and 60% ethane at 250K and 20 bar"

📚 Documentation

Chemical Engineering Applications

  • Process Design: Use for preliminary process calculations and design

  • Research: Integrate with computational workflows for chemical engineering research

  • Education: Enhance learning with interactive thermodynamic calculations

  • Industry: Support engineering decisions with reliable thermodynamic data

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request to improve the project.

📝 License

This project is licensed under the MIT License. You are free to use, modify, and distribute this software in your own applications or projects. However, if you choose to use this app in another app or software, please ensure that my name, Sina Gilassi, remains credited as the original author. This includes retaining any references to the original repository or documentation where applicable. By doing so, you help acknowledge the effort and time invested in creating this project.

❓ FAQ

For any questions, contact me on LinkedIn.

👨‍💻 Authors


⭐ Star this repository if you find it useful for your chemical engineering projects!

🐛 Report issues or 💡 suggest new features in the Issues section.

Available Tools

6 tools
calc_fugacity_gas_mixtureC

This function calculates the fugacity of a mixture of gases using different equation of states (EOS) including Peng-Robinson (PR), Soave-Redlich-Kwong (SRK), Redlich-Kwong (RK), and van der Waals (vdW).

Inputs: components (required), temperature (required), pressure (required), eos_model. Returns: object

calc_gas_component_fugacityC

This function calculates the fugacity of single-gas component using different equation of states (EOS) including Peng-Robinson (PR), Soave-Redlich-Kwong (SRK), Redlich-Kwong (RK), and van der Waals (vdW).

Inputs: component (required), temperature (required), pressure (required), eos_model, +3 more. Returns: object

calc_liquid_component_fugacityB

This function calculates the fugacity of single-liquid component using different equation of states (EOS) including Peng-Robinson (PR), Soave-Redlich-Kwong (SRK), Redlich-Kwong (RK), and van der Waals (vdW). The fugacity is calculated based on the EOS used for the gas phase and Poynting correction.

Inputs: component (required), temperature (required), pressure (required), eos_model, +2 more. Returns: object

component_eos_roots_analysisC

This function analyzes the roots of the EOS for a given component at specified temperature and pressure.

Inputs: component (required), temperature (required), pressure (required), eos_model. Returns: object

get_method_reference_inputsC

This function retrieves the reference inputs required for a specific method, including data and equations.

Inputs: method_name (required). Returns: object

multi_component_eos_roots_analysisC

This function analyzes the roots of the EOS for a mixture of components at specified temperature and pressure.

Inputs: components (required), temperature (required), pressure (required), eos_model. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is potential confusion between 'calc_fugacity_gas_mixture' and 'calc_gas_component_fugacity' since both involve gas fugacity calculations. The descriptions clarify that one is for mixtures and the other for single components, but the naming could lead to initial ambiguity. The other tools target clearly different operations like root analysis and method reference retrieval.

    Naming Consistency4/5

    The naming follows a consistent snake_case pattern throughout, which is good. However, there is a mix of verb styles: 'calc_' prefix for fugacity tools versus 'get_' and 'component_'/'multi_component_' prefixes for others. This minor inconsistency in verb usage prevents a perfect score, but the overall structure remains readable and predictable.

    Tool Count5/5

    With 6 tools, this server is well-scoped for its chemical engineering domain focused on fugacity calculations and EOS analysis. Each tool appears to serve a specific purpose, such as fugacity calculations for different phases, root analysis, and reference retrieval, making the count appropriate without being overwhelming or insufficient.

    Completeness4/5

    The tool set covers key aspects of fugacity and EOS analysis, including calculations for gas mixtures, single gas components, and liquid components, as well as root analysis for both single and multi-component systems. A minor gap is the lack of tools for updating or modifying inputs or results, but core workflows are well-covered for the apparent domain.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform petroleum engineering calculations including PVT analysis, well performance modeling, and reservoir simulation support using industry-standard correlations and field units.
      45
      47
      GPL 3.0
    • A
      license
      A
      quality
      D
      maintenance
      A collection of MCP servers for chemical engineering and chemistry applications, enabling AI assistants to perform thermodynamic calculations, equation of state modeling, and phase equilibrium computations.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language control of Aspen Plus for chemical process simulation, including parameter tuning, batch runs, and result reading.
      7
      MIT