Provides access to the MCP-LAMMPS repository hosted on GitHub for installation and contribution purposes.
Enables interaction with LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator) for setting up, configuring, running, and analyzing molecular dynamics simulations through natural language commands.
Click on "Install 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., "@MCP LAMMPS Servercreate an ethanol liquid simulation with 200 molecules at 298K using GAFF force field"
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.
MCP LAMMPS Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with LAMMPS (Large-scale Atomic/Molecular Massively Parallel Simulator) for molecular dynamics simulations.
Status
This is still in experimental status. This package is developed in collaboration with AI coder.
Update 06.12.2025
Note: all tests are performed with Sonnet 4.5
Add support for organic liquids simulations with gaff
simple test prompt:
Organic Liquid Simulation
Multi-Component Simulation
Related MCP server: MCP Toolkit
Overview
This MCP is part of our workflow for the autonomous computational materials design with LLM. This MCP server provides a standardized interface for controlling LAMMPS molecular dynamics simulations through natural language commands. It enables AI assistants to:
Set up and configure molecular dynamics simulations
Run equilibration and production simulations
Monitor simulation progress in real-time
Analyze simulation results
Manage simulation workflows
Features
Core Capabilities
Simulation Management: Create, configure, and run LAMMPS simulations
Molecular Structure Processing: Convert SMILES to 3D structures, assign GAFF atom types
Force Field Support: GAFF (General AMBER Force Field) parameter assignment
LAMMPS Data File Generation: Create simulation input files from molecular structures
Real-time Monitoring: Track simulation progress and system properties
Analysis Tools: Process trajectories and calculate thermodynamic properties (with MDAnalysis)
Charge Calculation: Gasteiger, MMFF94, and GAFF charge estimation methods
Workflow Automation: Define and execute multi-step simulation workflows
SLURM Integration: Submit and manage simulations on HPC clusters (optional)
Supported Molecular Systems
Small organic molecules
Liquid systems and mixtures
Polymer systems
Custom molecular structures via SMILES or coordinate files
Installation
Prerequisites
Python 3.9 or higher
LAMMPS with Python interface
RDKit (for molecular structure processing)
Packmol (for organic liquid box creation with proper molecular packing)
System Dependencies
Packmol Installation (Required for organic liquid simulations):
Optional Dependencies
MDAnalysis (for advanced trajectory analysis)
OpenBabel (for additional molecular format conversion - requires system Open Babel libraries)
pytraj (for additional trajectory analysis - requires cpptraj)
SLURM (for HPC cluster job submission and management)
Quick Start
Clone the repository:
git clone https://github.com/mcp-lammps/mcp-lammps.git cd mcp-lammpsCreate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtInstall in development mode:
pip install -e .
Usage
Basic Usage
Start the MCP server:
Configuration
The server can be configured through environment variables or configuration files:
SLURM Cluster Integration
For HPC cluster environments, MCP LAMMPS supports SLURM job submission:
Configure
slurm_config.yamlin your workspace:
Submit simulations to SLURM cluster via AI commands or programmatically
See SLURM Integration Guide for detailed instructions.
Example Prompts
Basic Organic Molecule Simulation:
Multi-Component Mixture:
Custom Molecule from SMILES:
Development
Project Structure
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Ensure all tests pass
Submit a pull request
License
This project is licensed under the Apache License - see the LICENSE file for details.
Acknowledgments
LAMMPS development team for the molecular dynamics engine
Model Context Protocol community for the MCP framework
Scientific computing community for inspiration and feedback
LLM for writing the code