Skip to main content
Glama
DrYe1109

MS-MCP

by DrYe1109

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ms_statusA

Check Materials Studio paths, RunMatScript availability, and MS-MCP workspace.

ms_codex_configA

Return an MCP server config snippet that can be pasted into Codex settings.

ms_run_materialscriptB

Run a MaterialsScript Perl script through RunMatScript. Disabled by default unless MS_MCP_ALLOW_ARBITRARY_SCRIPT=1.

ms_enqueue_materialscript

Queue a MaterialsScript Perl command for the optional in-Materials-Studio mcp_loop_gui.pl runner. Disabled unless MS_MCP_ALLOW_ARBITRARY_SCRIPT=1.

ms_queue_statusB

Inspect the optional MS-MCP GUI queue folders.

ms_gui_stateA

Get the stateful GUI session target: current document, current exported file, last job, and history.

ms_gui_project_dirB

Ensure and return the current MS-MCP task/session output directory under the workspace.

ms_gui_start_project_session

Start a new MS-MCP task/session folder under the workspace, such as YYYY-MM-DD-1, for subsequent GUI modeling and calculation outputs. Use only when the user explicitly asks for a new task/session; normal modeling should reuse the Dashboard/current session.

ms_gui_set_current_document

Set the current Materials Studio GUI document for subsequent stateful operations. This does not create a file.

ms_gui_import_current

Queue an import into the open Materials Studio GUI project and make the imported document the current document. Import external source files only; do not import XSD files that MS-MCP just exported from the current GUI document.

ms_gui_download_cif_import_current

Download a CIF from an open supported source or direct CIF URL, store it once in the active task session, optionally import it into the open GUI project, and make it current. Use this before modeling when a reliable database CIF is available. Do not use this to bypass login/license walls; credentialed databases require user-provided existing credentials/API configuration.

ms_gui_find_cif_import_current

Search open crystallographic databases for a reliable CIF, download it once, import it into the current GUI project, and make it current. Use this before manually building a new crystal or molecular crystal. It only uses open sources; if the requested structure appears to require credentialed databases such as ICSD/CSD/Materials Project API, return candidates/reason so the user can provide access instead of bypassing login walls.

ms_gui_new_structure_current

Unified entry point for creating a new GUI structure. Decision order: if an open and reliable CIF can be found, download it and import it as the initial XSD/current GUI document; if a likely source exists but requires an account/API such as ICSD/CSD/Materials Project/OQMD, return candidates and ask the user for access instead of bypassing authentication; if no usable CIF source is available, fall back to controlled MCP GUI manual creation when manual atoms/cell data are provided. Build the primitive/base document first; do not name the initial document after a planned supercell size. Prefer this tool over direct create/import tools for first-time structure creation.

ms_gui_create_currentA

Create or replace the current GUI document from a MaterialsScript body. Before using this for a new structure, first try ms_gui_find_cif_import_current against open CIF sources; use manual construction only when no reliable open CIF is found or the user provides credentials/API access for a restricted source. By default it reuses the existing current/same-name document and rebuilds it in place to avoid duplicate .xsd files.

ms_gui_create_crystal_currentA

Create or replace the current GUI document as a periodic crystal/unit cell from lattice parameters and atom coordinates. Before using this for a new crystal, first try ms_gui_find_cif_import_current against open CIF sources; use manual construction only when no reliable open CIF is found or the user provides credentials/API access for a restricted source. Do not add vacuum here unless the user explicitly requested vacuum in the initial cell parameters.

ms_gui_set_lattice_currentC

Set lattice parameters on the current GUI crystal document in place.

ms_gui_make_supercell_currentC

Build a supercell from the current GUI periodic document in place, using Materials Studio BuildSuperCell.

ms_gui_add_vacuum_currentB

Add vacuum to the current GUI periodic document in place only when the user explicitly asks for vacuum. For an already-built 3D cell, extend_lattice increases the chosen lattice length while preserving Cartesian atom positions; for 2D surfaces, vacuum_slab uses CrystalBuilder VacuumSlab.

ms_gui_cleave_surface_vacuum_currentB

Cleave a surface from the current GUI crystal and build a vacuum slab through Materials Studio SurfaceBuilder + CrystalBuilder. Use only when the user explicitly asks to cleave/build a surface or create a vacuum slab by the manual surface workflow.

ms_gui_apply_currentC

Queue a MaterialsScript body that modifies the current GUI document in place. Use this for 'on this molecule...' edits.

ms_gui_dmol3_optimize_currentC

Queue a DMol3 GeometryOptimization on the current GUI document and organize calculation outputs under a dedicated calculation name/folder.

ms_gui_forcite_optimize_currentC

Queue a Forcite GeometryOptimization on the current GUI document using a manual-like calculation folder layout.

ms_gui_prepare_remote_castep_batchB

Prepare independent native CASTEP geometry-optimization jobs or compatibility Script Job drivers. The default native_castep mode stages one XSD plus one CASTEP settings document per structure/spin task for separate submission from the CASTEP Calculation dialog, giving each calculation its own CASTEP Job Control entry and native convergence graphs.

ms_remote_castep_record_submissionB

Record one Materials Studio Job Control receipt. For native_castep preparation, call this once per calculationName after submitting its XSD from the CASTEP Calculation dialog.

ms_remote_castep_batch_statusB

Read the local preparation markers, submission receipt, and downloaded result summary available for a remote CASTEP batch.

ms_gui_castep_currentC

Queue a CASTEP calculation on the current GUI document. Supports Energy, GeometryOptimization, phonon/frequency, DOS, band structure, charge density, and density difference presets.

ms_gui_model_current

Queue a basic Materials Studio modeling-toolbar operation on the current GUI document, such as Clean or AdjustHydrogen, without creating a new document.

ms_gui_edit_currentB

Queue a basic molecule-building edit on the current GUI document, such as adding/deleting bonds, changing an atom element, adding/deleting atoms, recalculating bonds, Clean, or AdjustHydrogen.

ms_create_moleculeA

Create a standalone molecule/crystal document from explicit atoms and bonds using MaterialsScript. For the already-open GUI project, prefer ms_gui_create_current to avoid duplicate GUI documents.

ms_forciteC

Run a Forcite task on an input document located under the MS-MCP work root.

ms_castepB

Run a CASTEP task or preset calculation on an input document located under the MS-MCP work root. Presets include Energy, GeometryOptimization, Frequency/phonons, DOS, band structure, charge density, and density difference.

ms_list_workspaceC

List files under the MS-MCP work root.

ms_read_text

Read a text output file under the MS-MCP work root.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrYe1109/MS-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server