Skip to main content
Glama
raspa-mcp

raspa-mcp

by lichman0405

raspa-mcp

Python MCP Tests Ruff NumPy Matplotlib License: MIT RASPA2

Turn any AI agent into a molecular simulation expert — overnight.

raspa-mcp is a Model Context Protocol (MCP) server that wraps RASPA2 — the gold-standard molecular simulation engine for porous materials — into a clean, agent-friendly tool layer. Feed it a CIF file and a molecule name; let your agent handle the rest.


Why raspa-mcp?

Running RASPA2 correctly requires deep expertise: choosing the right ensemble, setting unit cell replications, picking force fields, validating Ewald summation parameters, and parsing Fortran-style output files. Historically this knowledge lived in the heads of computational chemists and nowhere else.

raspa-mcp encodes that expertise as 20 structured MCP tools — covering every major simulation type RASPA2 supports — so that an LLM agent like featherflow can autonomously design, validate, execute, and interpret molecular simulations without human intervention.


Related MCP server: PLUMED2 MCP Server

Features at a Glance

Simulation Templates (12 types)

Template

Purpose

GCMC

Grand Canonical Monte Carlo — adsorption isotherms

Widom

Widom test-particle insertion — Henry coefficient at infinite dilution

VoidFraction

Helium void fraction (prerequisite for GCMC)

NVT-MC

Fixed-N Monte Carlo — configurational sampling, RDF

NPT-MC

Variable-volume MC — equilibrium density, flexible cell

MD

NVT Molecular Dynamics — diffusion, transport

NPT-MD

Constant-pressure MD — thermal expansion

NVE-MD

Microcanonical MD — energy conservation benchmarking

GCMCMixture

Binary mixture GCMC — co-adsorption, selectivity

CBMC

Configurational-Bias MC — chain/flexible molecules (C4+)

TI

Thermodynamic Integration — free energy ΔA

FlexibleMD

Flexible-framework MD — breathing, gate opening

Output Parsing (7 parsers)

  • Adsorption loading — mol/kg, mg/g, cm³(STP)/g, molecules/uc, ±errors

  • Isosteric heat Qst — from energy fluctuations [kJ/mol]

  • Henry coefficient & μ_ex — from Widom insertion, −RT ln(W)

  • Helium void fraction — direct extraction

  • Radial distribution function g(r) — peak detection, full r/g(r) arrays

  • MSD → Diffusion coefficients — self D_s and collective D_c via Einstein relation (NumPy linear fit, latter 50% of trajectory)

  • 3D density grid — 2D slice extraction from .grid files

  • Thermodynamic Integration — trapezoidal ∫⟨∂U/∂λ⟩dλ → ΔA [kJ/mol]

  • Multi-component mixture — per-component loading with backward compatibility

Analysis Tools

  • Selectivity S_AB — (x_A/x_B) / (y_A/y_B) from mixture loadings

  • Isotherm plotting — single and multi-MOF comparison PNGs (matplotlib)

  • Density slice plotting — heatmap PNG from 3D grid data

Built-in Knowledge Base

  • 6 molecules: CO2, N2, CH4, H2O, helium, n-butane (TraPPE / SPC-E)

  • 5 force fields: TraPPE-CO2/N2/CH4/H2O, UFF — with mixing rules, pseudo-atom definitions

  • Input validator — catches 20+ common mistakes before RASPA2 ever runs

  • Environment checker — reports RASPA2 readiness on server startup


Installation

0. Install uv (if not already present)

# Linux / macOS
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

uv is a fast Python package manager. It replaces pip + venv with a single tool and handles the Python version automatically.

1. Clone and install the Python package

git clone https://github.com/lichman0405/raspa-mcp
cd raspa-mcp
uv sync

uv sync creates a virtual environment under .venv/, pins the Python version (3.11+), and installs all dependencies — no manual venv or pip needed.

2. Compile and configure RASPA2 (one-time setup)

uv run python -m raspa_mcp.installer

This single command:

  • Checks for build tools (git, gcc, make, autoconf, automake, libtool) and installs any that are missing automatically via apt-get / dnf / yum / brew etc.

  • Clones RASPA2 from GitHub and compiles from source

  • Installs to ~/.local/raspa2 by default (override with --prefix)

  • Writes RASPA_DIR and PATH exports to your shell RC file automatically

# custom install prefix:
uv run python -m raspa_mcp.installer --prefix /opt/raspa2

# force reinstall even if already present:
uv run python -m raspa_mcp.installer --force

After the command finishes, reload your shell:

source ~/.bashrc   # or ~/.zshrc, ~/.profile, etc.

Compatibility: Tested on Ubuntu 24.04 (GCC 14). The installer automatically applies -std=gnu11 and other compiler flags to work around known issues in the RASPA2 source tree on modern GCC versions.

RASPA2 source: https://github.com/iRASPA/RASPA2
Reference: D. Dubbeldam, S. Calero, D.E. Ellis, R.Q. Snurr, Mol. Simul. 42, 81–101 (2016)


Quickstart — featherflow

Register raspa-mcp with one command (run in the featherflow project directory):

featherflow config mcp add raspa2 \
  --command uv \
  --arg run \
  --arg --directory \
  --arg /path/to/raspa-mcp \
  --arg raspa-mcp \
  --lazy \
  --description "RASPA2 molecular simulation: GCMC, MD, adsorption isotherms, force fields, output parsing" \
  --timeout 600

--lazy: raspa-mcp exposes 20 tools — lazy mode registers a single gateway entry-point instead of all tools upfront, keeping per-call LLM token cost low.
--timeout 600: RASPA2 simulations can take minutes; featherflow recommends 300–600 s for scientific computing MCP servers.

Verify:

featherflow config mcp list

Your agent can now autonomously:

User: Study CO2 adsorption in ZIF-8 at 298 K from 0.1 to 50 bar.

Agent:
  1. raspa-mcp.get_simulation_template("VoidFraction")   → run RASPA2
  2. raspa-mcp.parse_raspa_output(...)                   → void fraction = 0.47
  3. raspa-mcp.get_simulation_template("GCMC")           → fill placeholders × 7 pressures
  4. raspa-mcp.validate_simulation_input(...)            → clean
  5. shell_exec → RASPA2 × 7
  6. raspa-mcp.parse_raspa_output(...)                   → isotherm data
  7. raspa-mcp.plot_isotherm(...)                        → ZIF-8_CO2.png
  8. feishu-mcp.upload_file_and_share(...)               → report delivered

No human intervention required.


MCP Tools Reference

Tool

Category

list_simulation_types

Discovery

get_simulation_template

Input generation

get_parameter_docs

Input generation

list_available_forcefields

Force field

get_forcefield_files

Force field

recommend_forcefield

Force field

list_available_molecules

Molecule

get_molecule_definition

Molecule

create_workspace

Workspace

validate_simulation_input

Validation

parse_raspa_output

Output parsing

parse_rdf_output

Output parsing

parse_msd_output

Output parsing

parse_ti_output

Output parsing

parse_density_grid

Output parsing

calculate_selectivity

Analysis

plot_isotherm

Visualization

plot_isotherm_comparison

Visualization

plot_density_slice

Visualization

check_raspa2_environment

Environment

generate_force_field_def

Custom workflow

generate_force_field_mixing_rules_def

Custom workflow

generate_pseudo_atoms_def

Custom workflow

generate_molecule_def

Custom workflow

inspect_cif

Custom workflow

recommend_supercell

Custom workflow

preflight_workspace

Custom workflow

get_workflow_recipe

Custom workflow


Custom-everything workflow

When you bring your own CIF, your own force field, and your own molecule definitions, the tooling above gives you safe builders for every file RASPA2 expects:

inspect_cif(cif)               → formula, cell, charges, overlap warnings
recommend_supercell(cif, 12)   → UnitCells line + ChargeMethod hint
create_workspace(work, name, cif)
generate_force_field_def(work)                       # safe "3 zeros" overwrite file
generate_force_field_mixing_rules_def(work, atom_types=[...])  # LJ ε/σ
generate_pseudo_atoms_def(work, atoms=[...])         # atom registry
generate_molecule_def(work, "MyAdsorbate", ...)      # per-molecule .def
preflight_workspace(work)                            # cross-file sanity

force_field.def ≠ force_field_mixing_rules.def. The first file is overwrite rules (use the "3 zeros" minimum for almost every job). The second file is where Lennard-Jones ε/σ live. Mixing them up is the single most common cause of cryptic :# parse errors from RASPA2. The generators emit the correct format for both.

For an end-to-end recipe call get_workflow_recipe("custom_mof_gcmc").

All write operations are sandboxed under RASPA_MCP_WORKSPACE_BASE (default ~/raspa_workspaces) — paths outside that root are rejected.


Testing

uv run pytest tests/ -q          # 41 tests, ~1.5 s
uv run ruff check raspa_mcp/ tests/

Architecture

raspa-mcp/
├── raspa_mcp/
│   ├── server.py        # 20 MCP tools (FastMCP, stdio transport)
│   ├── parser.py        # Output parsers (loading, RDF, MSD, TI, density)
│   ├── validator.py     # Input validator (20+ rule checks)
│   ├── installer.py     # RASPA2 env detection + source build + raspa-mcp-setup CLI
│   └── data/
│       ├── templates.py    # 12 simulation.input templates
│       ├── molecules.py    # 6 molecule definitions + metadata
│       └── forcefields.py  # 5 force field file sets
├── tests/
│   └── test_server.py   # 41 unit tests
└── docs/
    └── workflow.md      # Full autonomous research workflow walkthrough

Full Business Workflow

See docs/workflow.md for a complete end-to-end walkthrough of an autonomous MOF screening study using featherflow + raspa-mcp + RASPA2 + feishu-mcp, from a single chat message to a ranked report delivered to Feishu — approximately 120–140 tool calls, zero human steps.


License

MIT


Acknowledgements

Built on top of RASPA2 by Dubbeldam, Calero, Ellis & Snurr. Force-field parameters from the TraPPE family (Martin, Siepmann et al.) and the Universal Force Field (Rappé et al.).

Available Tools

28 tools
calculate_selectivityA

Calculate adsorption selectivity S_AB from mixture GCMC results (4-4).

Uses the adsorption selectivity definition: S_AB = (x_A / x_B) / (y_A / y_B) where x = adsorbed-phase mole fraction, y = gas-phase (feed) mole fraction.

Inputs come from parse_raspa_output()["components"] for a GCMCMixture simulation.

loading_a / loading_b: average loading of each component in mol/kg (or any consistent units — they cancel in the ratio). feed_fraction_a / feed_fraction_b: mole fractions in the feed gas (must sum to 1.0 for a binary; for partial fractions in a larger mixture, pass the relevant pair).

Returns S_AB > 1 means the material prefers A over B. S_AB < 1 means preference for B. S_AB = 1 means no selectivity.

Inputs: loading_a (required), loading_b (required), feed_fraction_a (required), feed_fraction_b (required), +2 more.

check_raspa2_environmentA

Check whether RASPA2 is correctly installed and configured on this server.

Verifies:

  1. 'simulate' binary is on PATH

  2. RASPA_DIR environment variable is set and valid

  3. Force field and molecule files exist under $RASPA_DIR

Returns a full diagnostic report. If ready=False, run: raspa-mcp-setup (compiles RASPA2 from source).

Inputs: no named parameters.

create_workspaceA

Create a properly structured RASPA2 simulation workspace directory.

RASPA2 expects a specific directory layout. This tool creates it and copies the CIF file into the right location.

Structure created: <work_dir>/ simulation.input ← Claude writes this force_field_mixing_rules.def ← Claude writes this pseudo_atoms.def ← Claude writes this frameworks/ <framework_name>/ <framework_name>.cif molecules/ TraPPE/ ← Claude writes .def files here

Args: work_dir: Absolute path for the new simulation directory. framework_name: Name matching the CIF file (without .cif extension). cif_source_path: Absolute path to the existing CIF file.

Security: work_dir must resolve to a path inside the allowed workspace base, controlled by the RASPA_MCP_WORKSPACE_BASE environment variable (default: ~/raspa_workspaces). This prevents an LLM from creating directories or copying files at arbitrary filesystem locations (e.g. /etc, /root) when this MCP runs as a privileged user.

Inputs: work_dir (required), framework_name (required), cif_source_path (required).

generate_force_field_defA

Generate force_field.def (the OVERWRITE-rules file) at work_dir.

With no extra arguments, produces the safe minimal "3 zeros" form, which is what most users actually need when their LJ parameters live in force_field_mixing_rules.def.

DO NOT confuse this file with force_field_mixing_rules.def — putting LJ epsilon/sigma here is the most common cause of cryptic :# parse errors from RASPA2. Use generate_force_field_mixing_rules_def for those.

Args: work_dir: Workspace directory (must be inside RASPA_MCP_WORKSPACE_BASE). rules_to_overwrite, interactions_to_define, mixing_rules_to_overwrite: Optional lists of {"line": str, "comment": str | None} entries. return_only: If True, do not touch disk; just return the rendered text.

Inputs: work_dir (required), return_only, rules_to_overwrite, interactions_to_define, +1 more.

generate_force_field_mixing_rules_defA

Generate force_field_mixing_rules.def — the LJ epsilon/sigma file.

Each atom_types item: {"name": str, "epsilon_K": float, "sigma_A": float, "interaction": "lennard-jones", "comment": str | None}.

For the "shifted vs truncated" choice, "shifted" zeroes the LJ potential at the cutoff (smoother energies); "truncated" matches RASPA2 legacy behaviour. Set tail_corrections=True for fluid-phase work.

Args: work_dir: Workspace directory (sandboxed). atom_types: Required list of atom-type dicts. general_mixing_rule: Lorentz-Berthelot (default) or Jorgensen. general_truncation: shifted (default) or truncated. tail_corrections: Apply analytic LJ tail corrections. return_only: Dry-run; do not write to disk.

Inputs: work_dir (required), atom_types (required), return_only, tail_corrections, +2 more.

generate_molecule_defA

Generate a per-molecule .def file at <work_dir>/molecules/<subdirectory>/<molecule_name>.def.

atoms items: {"type": str, "x": float, "y": float, "z": float}. Coords are Å relative to the molecule centre of mass.

bonds items: [i, j, "RIGID_BOND"] (or any RASPA2 bond keyword). bends items: [i, j, k, "<bend_keyword>"]. torsions items: [i, j, k, l, "<torsion_keyword>"].

Set MoleculeDefinition <subdirectory> in simulation.input so RASPA2 finds this file. Avoid MoleculeDefinition local — that points to $RASPA_DIR/share/raspa/molecules/local/, not your workspace.

Inputs: atoms (required), work_dir (required), molecule_name (required), acentric_factor (required), +9 more.

generate_pseudo_atoms_defA

Generate pseudo_atoms.def — the atom registry. Every atom-type symbol that appears in the CIF, in force_field_mixing_rules.def, or in any molecule .def must be listed here.

Each atoms item must include at minimum: name, chem, mass, charge. Optional keys with defaults: print=yes, print_as=name, oxidation=0, polarization=0, b_factor=1.0, radii=1.0, connectivity=0, anisotropic=0, anisotropic_type='absolute', tinker_type=0.

Inputs: atoms (required), work_dir (required), return_only.

get_forcefield_filesA

Return the complete content of pseudo_atoms.def and force_field_mixing_rules.def for the given force field.

These files must be placed in the simulation working directory alongside simulation.input.

Args: forcefield_name: e.g. "TraPPE-CO2", "TraPPE-N2", "TraPPE-CH4"

Inputs: forcefield_name (required).

get_molecule_definitionA

Return the content of the RASPA2 molecule definition file (.def) for a built-in molecule.

The file must be placed at: /molecules/TraPPE/.def

Args: molecule_name: e.g. "CO2", "N2", "CH4", "H2O", "helium"

Inputs: molecule_name (required).

get_parameter_docsA

Return documentation for RASPA2 simulation.input parameters.

Args: parameter_name: Specific parameter name (e.g. "CutOff", "EwaldPrecision"), or None to get all parameters.

Inputs: parameter_name.

get_simulation_templateA

Return the canonical simulation.input template for the given simulation type. The template contains ${PLACEHOLDER} markers — replace them with actual values before writing the file.

Also returns parameter documentation explaining each placeholder.

Inputs: simulation_type (required).

get_workflow_recipeA

Return an ordered, tool-by-tool recipe for a common RASPA2 scenario.

Args: scenario: One of custom_mof_gcmc, henry_widom, diffusion_md, or None to list all available scenarios.

Inputs: scenario.

inspect_cifA

Inspect a CIF file: formula, cell parameters, charge column status, minimum interatomic distance. Flags common pitfalls (no charges, non-neutral cell, atom overlap).

Use before launching a simulation against an unfamiliar CIF.

Inputs: cif_path (required).

list_available_forcefieldsA

List all built-in force fields with their molecule targets, references, and applicability notes. Use this to decide which force field to use.

Inputs: no named parameters.

list_available_moleculesA

List all built-in molecule definitions with metadata. Molecules not listed here require manual .def file construction.

Inputs: no named parameters.

list_simulation_typesA

List all RASPA2 simulation types with descriptions and typical use cases. Call this first to decide which simulation type fits the user's goal.

Inputs: no named parameters.

parse_density_gridA

Parse RASPA2 3D density grid files and extract a 2D slice (3-4).

RASPA2 writes .grid files when the simulation.input contains: WriteDensityProfile3DVTKGrid yes DensityAveragingTypeVTK number_of_molecules

The 3D grid is stored as Nx×Ny×Nz float values (row-major). This function returns the full grid metadata and ONE 2D slice. Pass the returned 'slice_data' field to plot_density_slice() to save a PNG.

KNOWN LIMITATION: This tool returns a 2D cross-section only, NOT a full 3D isosurface or volumetric render. For true 3D visualization (isosurfaces, volume rendering), export the raw 'slice_data' and use external tools such as VESTA, py3Dmol, or ParaView with the original .grid/.vtk file. To explore different planes, call this tool multiple times with different slice_axis ('x','y','z') and slice_index values.

KNOWN LIMITATION: The .grid ASCII format written by RASPA2 has minor variations across versions (header line count differs). If parsing fails (status='no_grid_files' or 'warning' in dataset), verify that WriteDensityProfile3DVTKGrid is set and check the raw file header.

Args: output_dir: Path to RASPA2 Output (or parent) directory. molecule: Optional filter on molecule name (e.g. "CO2"). slice_axis: Axis perpendicular to the slice: 'x'/'a', 'y'/'b', 'z'/'c'. slice_index: Grid-plane index along slice_axis; -1 = midpoint.

Inputs: output_dir (required), molecule, slice_axis, slice_index.

parse_msd_outputA

Parse RASPA2 MSD files and compute self- or collective-diffusion coefficients (2-1/3-1/3-2).

Requires a completed NVT-MD or NPT-MD simulation with 'ComputeMSD yes' set. RASPA2 writes MSDSelf_.dat (self-diffusion) and MSDCollective_.dat.

The Einstein relation D = MSD(t) / 6t is fitted to the linear regime (latter 50% of trajectory). Result is given in A²/ps and m²/s.

Typical self-diffusivities in MOFs:

  • Fast gas (H2, He): 10⁻⁸ – 10⁻⁷ m²/s

  • CO2, CH4 in wide pores: 10⁻⁹ – 10⁻⁸ m²/s

  • Slow diffusers (large MOF pores, tight channels): < 10⁻¹¹ m²/s

Args: output_dir: Path to RASPA2 Output directory. molecule: Optional filter by molecule name (e.g. "CO2"). diffusion_type: "self" (MSDSelf) or "collective" (MSDCollective).

Inputs: output_dir (required), molecule, diffusion_type.

parse_raspa_outputA

Parse RASPA2 output files and return structured results as JSON.

Extracts: loading (mol/kg, mg/g, cm³STP/g), Henry coefficients, void fraction, energies (including Qst and mu_ex), and builds an isotherm table if multiple pressure points are detected.

Args: output_dir: Path to the Output directory produced by RASPA2, typically '/Output/System_0/'.

Inputs: output_dir (required).

parse_rdf_outputA

Parse RASPA2 radial distribution function (RDF) output files (3-3).

RASPA2 writes RDF data to RDF__.dat files when 'ComputeRDF yes' is set in simulation.input (requires NVT-MC or NVT-MD simulation).

Returns r(Å) and g(r) arrays per pair, plus first-peak position — useful for identifying preferred adsorption sites and coordination shells.

component_a / component_b: optional name filters (e.g. "CO2", "framework"). Leave empty to return all RDF datasets in the output directory.

Args: output_dir: Path to RASPA2 Output directory. component_a: Optional filter: only return pairs containing this name. component_b: Optional filter: only return pairs containing this name.

Inputs: output_dir (required), component_a, component_b.

parse_ti_outputA

Parse RASPA2 Thermodynamic Integration (TI) output and compute ΔA (1-8).

Expects one completed RASPA2 simulation per lambda value (0.0 → 1.0), each in its own subdirectory. The subdirectory name should contain the lambda value (e.g. 'lambda_0.3/', '0.3/', etc.).

RASPA2 must be run with Lambda and LambdaDefinition set in simulation.input. Each output file must contain a line matching: Average <dU/dlambda>: X.XXXXX +/- Y.YYYYY [K]

KNOWN LIMITATION: The exact format of this line varies between RASPA2 versions and build options. If status='no_ti_data' is returned, check:

  1. That the simulation used Lambda / LambdaDefinition keywords.

  2. That the RASPA2 version writes 'Average <dU/dlambda>'.

  3. That subdirectory names contain the numeric lambda value. In that case, extract dU/dlambda values manually from the output files and call numpy.trapezoid() directly.

The function integrates ⟨∂U/∂λ⟩ over λ using the trapezoidal rule: ΔA = ∫₀¹ ⟨∂U/∂λ⟩ dλ [K] → ×R → [kJ/mol]

Fewer lambda points = less accuracy:

  • 3 points (0, 0.5, 1): rough estimate

  • 5 points: adequate for most cases

  • 11 points (0.0, 0.1, ..., 1.0): high accuracy

Args: output_dir: Root directory containing per-lambda subdirectories.

Inputs: output_dir (required).

plot_density_sliceA

Render a 2D density slice from parse_density_grid() as a heatmap PNG (3-4).

slice_data is the 'slice_data' field from parse_density_grid() — a 2D list of float density values.

cell_lengths: optional [La, Lb] in Å for axis tick labels. axes_labels: optional [x_label, y_label], defaults to ["a (Å)", "b (Å)"]. colormap: matplotlib colormap name; 'hot', 'viridis', 'Blues' all work well.

Inputs: slice_data (required), output_path (required), title, colormap, +3 more.

plot_isothermA

Generate a single-MOF adsorption isotherm plot (PNG).

isotherm_data is a list of dicts, each with at least:

  • a pressure field ("pressure_Pa", "pressure_bar", or "pressure_kPa")

  • a loading field (default key: "loading_mol_kg")

Typical source: the "isotherm" list returned by parse_raspa_output() when multiple pressure-point simulations are run and their outputs placed in sub-directories named by pressure value.

pressure_unit: unit of pressure values in isotherm_data (Pa, bar, kPa). loading_key: key name for the loading column (e.g. "loading_mol_kg", "loading_mg_g", "loading_cm3_STP_g"). output_path: absolute path where the PNG file will be saved.

Returns: {"status": "ok", "path": ..., "n_points": ...} or {"status": "error", "message": ...}

Inputs: output_path (required), isotherm_data (required), molecule, framework, +3 more.

plot_isotherm_comparisonA

Generate a multi-MOF comparison isotherm plot (PNG) — all MOFs on one figure.

datasets is a list of dicts, each representing one MOF: { "label": "MIL-101(Cr)", # legend label "isotherm_data": [{...}, {...}, ...] # same format as plot_isotherm() }

Designed for the final "top-N candidates" comparison step: pass in the isotherm_data from each MOF's parse_raspa_output() call together with a descriptive label, and receive a single publication-ready comparison figure.

pressure_unit / loading_key: same semantics as plot_isotherm(). output_path: absolute path where the PNG will be saved.

Returns: {"status": "ok", "path": ..., "n_series": ...} or {"status": "error", "message": ...}

Inputs: datasets (required), output_path (required), molecule, loading_key, +2 more.

preflight_workspaceA

Validate a workspace directory before launching simulate.

Checks:

  • simulation.input exists and passes validate_simulation_input

  • the CIF named by FrameworkName exists at frameworks//.cif

  • force_field.def exists and is in overwrite-rules format (NOT mixing)

  • force_field_mixing_rules.def exists and lists atom types

  • pseudo_atoms.def covers every atom type used by the mixing-rules file

  • each Component in simulation.input has a matching molecule .def

Returns {"ok": bool, "errors": [...], "warnings": [...], "findings": {...}}.

Inputs: work_dir (required).

recommend_forcefieldA

Given a molecule name (common name, formula, or IUPAC), recommend the most appropriate built-in force field and provide literature guidance.

For molecules NOT in the built-in library, returns structured guidance on how to find parameters from literature using Semantic Scholar.

Args: molecule: e.g. "CO2", "methane", "PH3", "SO2", "water"

Inputs: molecule (required).

recommend_supercellA

Recommend an integer supercell (nx, ny, nz) such that each axis is at least 2 × cutoff_A (the RASPA2 minimum-image rule). Also recommends a ChargeMethod based on whether the CIF has non-zero charges.

Inputs: cif_path (required), cutoff_A.

validate_simulation_inputA

Validate the content of a RASPA2 simulation.input file BEFORE running.

Returns errors (blocking — must fix) and warnings (advisory). Always call this after generating simulation.input and before running simulate.

Args: content: Full text content of the simulation.input file.

Inputs: content (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 28 tools

    Disambiguation5/5

    Every tool targets a distinct concern: simulation type templates, force field generation, molecule definitions, workspace setup, output parsing, and plotting are clearly separated. Even closely related tools like generate_force_field_def and generate_force_field_mixing_rules_def are explicitly differentiated in their descriptions.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern (list_*, get_*, generate_*, parse_*, plot_*, etc.). There are no camelCase or mixed conventions, making the API predictable and easy to navigate.

    Tool Count2/5

    With 28 tools, the surface is oversized for the domain. While RASPA2 simulations involve many steps, several tools could be consolidated (e.g., plot_isotherm and plot_isotherm_comparison, or the various generate_*_def tools). The count exceeds the 25-tool threshold that indicates a bloated interface.

    Completeness2/5

    The toolset covers setup, input file generation, validation, and output parsing, but critically lacks any tool to actually execute the RASPA2 simulation. The workflow references running 'simulate' externally, which is a major gap for an MCP server dedicated to RASPA2. Additionally, there are no tools for restarting, monitoring, or canceling simulations.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for deconstructing and analyzing Metal-Organic Framework (MOF) structures, including SBU and ligand identification, guest removal, and COF stacking analysis. It enables AI agents to perform automated chemical informatics and structural characterization on crystal structures via CIF files.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP-native scientific skills for reproducible computational biology and AI-driven drug-discovery workflows. It combines deterministic scientific tools with an MCP server to give AI agents real computational capabilities.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for chemistry-focused tools, enabling LLM agents to perform molecule parsing, format conversion, property lookup, and other chemistry operations with explainable responses.
      Apache 2.0