PP

phelanshao/plumed2-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

12 stars 6 forks 质量 66 趋势 8GPL-3.0

PLUMED2 Smart Input Generator - An MCP-based assistant for molecular dynamics enhanced sampling configurations that automatically generates optimized PLUMED input files, supporting metadynamics,...

概览

The PLUMED2 MCP Server is a Model Context Protocol (MCP) server that provides AI assistants with powerful tools for generating, validating, and optimizing PLUMED input files for molecular dynamics simulations. This server enables seamless integration of PLUMED expertise into AI workflows. - : Generate complete PLUMED input files with collective variables, bias methods, and output configurations - : Access pre-defined templates for common simulation scenarios (protein folding, drug binding, phase transitions, nucleation) - : Get intelligent suggestions to optimize PLUMED performance for large systems - : Validate PLUMED syntax with detailed error reporting and reference checking - : Fully English codebase with professional documentation - Python 3.11 or higher - pip package manager Add the following configuration to your MCP client settings (e.g., Claude Desktop, Cline, etc.): : Replace /path/to/plumed_mcp_server with the actual path to your installation directory.

README

以下为原文 README 节选,完整内容请查看原文。

PLUMED2 MCP Server / PLUMED2 MCP 服务器

English | 中文


English

Overview

The PLUMED2 MCP Server is a Model Context Protocol (MCP) server that provides AI assistants with powerful tools for generating, validating, and optimizing PLUMED input files for molecular dynamics simulations. This server enables seamless integration of PLUMED expertise into AI workflows.

Features

  • 🔧 Input File Generation: Generate complete PLUMED input files with collective variables, bias methods, and output configurations
  • 📋 Template System: Access pre-defined templates for common simulation scenarios (protein folding, drug binding, phase transitions, nucleation)
  • ⚡ Performance Optimization: Get intelligent suggestions to optimize PLUMED performance for large systems
  • ✅ Syntax Validation: Validate PLUMED syntax with detailed error reporting and reference checking
  • 🌐 International: Fully English codebase with professional documentation

Installation

Prerequisites

  • Python 3.11 or higher
  • pip package manager

Install Dependencies

cd plumed_mcp_server
pip install -r requirements.txt

MCP Client Configuration

Add the following configuration to your MCP client settings (e.g., Claude Desktop, Cline, etc.):

{
  "mcpServers": {
    "plumed2": {
      "command": "python",
      "args": [
        "-m", "plumed_mcp_server.main"
      ],
      "cwd": "/path/to/plumed_mcp_server",
      "alwaysAllow": [
        "generate_plumed_input",
        "validate_plumed_syntax", 
        "optimize_plumed_performance",
        "get_plumed_template"
      ]
    }
  }
}

Note: Replace /path/to/plumed_mcp_server with the actual path to your installation directory.

Available Tools

1. generate_plumed_input

Generate complete PLUMED input files based on simulation requirements.

Parameters:

  • collective_variables (required): List of collective variables to compute
  • bias_methods (optional): List of bias methods to apply
  • output_config (optional): Output configuration settings
  • system_info (optional): System information for optimization
  • molinfo_config (optional): Molecular information settings
  • group_definitions (optional): Custom group definitions

2. validate_plumed_syntax

Validate PLUMED input syntax and check for common errors.

Parameters:

  • plumed_input (required): PLUMED input content to validate
  • number_of_replicas (optional): Number of replicas for @replicas syntax validation

3. optimize_plumed_performance

Get performance optimization suggestions for PLUMED simulations.

Parameters:

  • plumed_input (required): PLUMED input content to analyze
  • system_info (optional): System information (number of atoms, simulation length, etc.)

4. get_plumed_template

Retrieve pre-defined or custom PLUMED templates.

Parameters:

  • template_name (required): Name of the template to retrieve
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "plumed2": { "command": "python", "args": [ "-m", "plumed_mcp_server.main" ], "cwd": "/path/to/plumed_mcp_server", "alwaysAllow": [ "generate_plumed_input", "validate_plumed_syntax", "optimize_plumed_performance", "get_plumed_template" ] } } }