MCP Atomic Toolkit

MCP Atomic Toolkit

A FastMCP server for atomistic modeling workflows that enables building structures, running geometry optimization and molecular dynamics, and analyzing results with downloadable artifacts.

Category
Visit Server

README

βš›οΈ MCP Atomic Toolkit

Python 3.11+ License: MIT MCP tests

[!NOTE] This project is under active development. Interfaces and behavior may evolve.

A FastMCP server for atomistic modeling workflows powered by ASE, pymatgen, and modern ML interatomic potentials.

It gives MCP clients a practical toolkit for:

  • building structures,
  • running geometry optimization + molecular dynamics,
  • analyzing structures/trajectories,
  • and downloading generated artifacts (data + plots).

✨ Why this repo

If you need atomistic workflows exposed as MCP tools (instead of hand-wiring scripts), this project gives you:

  • ready-to-call MCP tools for common simulation tasks,
  • file-first outputs that are easy to inspect/reuse,
  • artifact download URLs so clients don’t need binary blobs in chat context,
  • deployment-ready HTTP app with health and server-card endpoints.

πŸš€ Features

  • MCP-native workflows via FastMCP tools
  • Structure generation: bulk, surface, molecule, supercell, amorphous, liquid, bicrystal, polycrystal
  • Optimization workflows with MLIPs (kim default, nequix/orb supported)
  • Molecular dynamics workflows (Velocity Verlet, Langevin, NVT Berendsen)
  • Analysis outputs:
    • RDF + coordination stats
    • MSD + thermodynamic trends
    • VACF + diffusion (Green-Kubo)
  • Downloadable artifacts (xyz, extxyz, cif, traj, png, svg, csv, dat, ...)
  • Registry-friendly endpoints (/healthz, server card, Streamable HTTP root)

⚑ Quick Start

1) Requirements

  • Python 3.11+

2) Install

pip install -r requirements.txt

3) Run locally

uvicorn mcp_atomictoolkit.http_app:app --host 0.0.0.0 --port 10000

Alternative:

python main.py

STDIO mode (for desktop MCP clients):

python -m mcp_atomictoolkit.mcp_server

[!IMPORTANT] STDIO transports must keep stdout clean for JSON-RPC. Avoid print() or logging to stdout when running the server in STDIO mode.

4) Smoke check

curl -s http://localhost:10000/healthz

Expected response:

{"status":"ok"}

🧰 Tooling Overview

Main MCP tools exposed by the server:

  • build_structure_workflow
  • analyze_structure_workflow
  • write_structure_workflow
  • optimize_structure_workflow
  • single_point_workflow
  • run_md_workflow
  • analyze_trajectory_workflow
  • autocorrelation_workflow

Legacy aliases are also included for backward compatibility.


🌐 Endpoints

  • POST / β€” primary MCP Streamable HTTP endpoint
  • GET /healthz β€” health check
  • GET /docs β€” lightweight documentation (README)
  • GET /.well-known/mcp/server-card.json β€” MCP server card metadata
  • GET /artifacts/{artifact_id}/{filename} β€” artifact download route
  • /sse/ β€” compatibility alias path mounted to the MCP app

πŸ“¦ Deployment

Render

render.yaml is included and ready to use.

Default start command:

uvicorn mcp_atomictoolkit.http_app:app --host 0.0.0.0 --port $PORT

Docker

docker build -t mcp-atomictoolkit .
docker run --rm -p 7860:7860 mcp-atomictoolkit

πŸ—‚οΈ Project Structure

src/mcp_atomictoolkit/
  mcp_server.py          # FastMCP tool definitions
  http_app.py            # Starlette app + routing/endpoints
  workflows/core.py      # High-level workflow orchestration
  analysis/              # Structure/trajectory/VACF analysis logic
  structure_operations.py
  optimizers.py
  md_runner.py
  artifact_store.py      # Download artifact registration + URLs

πŸ§ͺ Workflow Notes (for MCP clients)

Structure building coverage

build_structure_workflow supports:

  • bulk (ASE bulk)
  • surface (ASE surface)
  • molecule (ASE molecule)
  • supercell (multiplication of a base structure)
  • amorphous/liquid (random packed structures)
  • bicrystal and polycrystal (grain stacking/rotation)

For interfaces, doped structures, adsorbates, or custom slabs, prefer:

  1. Generate the structure with ASE/pymatgen (or an external builder), then
  2. Use write_structure_workflow to persist the final geometry for downstream steps.

This ensures MCP callers can still handle advanced structures even when a specialized builder is required.

Builder kwargs cheat sheet

Common builder_kwargs for build_structure_workflow:

  • surface: indices, layers, vacuum
  • supercell: size, base_structure_type, base_crystal_system, base_lattice_constant, base_kwargs
  • amorphous/liquid: num_atoms, box_length, relax, relax_steps, relax_fmax
  • bicrystal: grain_size, interface_axis, rotation_angle, rotation_axis, interface_gap
  • polycrystal: num_grains, grain_size, rotation_angle

Optimization options

optimize_structure_workflow exposes:

  • max_steps, fmax (convergence)
  • maxstep, alpha (BFGS step/damping controls)
  • constraints (fixed_atoms, fixed_bonds, fixed_cell)

Single-point calculations

single_point_workflow computes energy, forces, and stress (if periodic) without modifying the structure, making it suitable for quick evaluations.

MD integrators / ensembles

run_md_workflow supports:

  • velocityverlet / nve (NVE)
  • langevin / nvt-langevin (NVT)
  • nvt / nvt-berendsen (NVT)

Tune temperature_K, friction, and taut to control thermostat behavior.


πŸ“ˆ GitHub Pulse

Add your repository path in the URLs below to enable live charts.

Star history

Star History Chart


🀝 Contributing

  • Keep outputs file-based and artifact-friendly.
  • When adding tools, usually update both:
    • workflows/core.py
    • mcp_server.py
  • Preserve http_app.py compatibility behavior unless intentionally changing deployment contracts.

πŸ“„ License

MIT β€” see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured