mcp-atomictoolkit logo

mcp-atomictoolkit

Community
XirtamEsrevni

An MCP-compatible server providing atomistic simulation capabilities through ASE, pymatgen, etc.

PublisherXirtamEsrevni
Repositorymcp-atomictoolkit
LanguagePython
Forks
2
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    mcp-atomictoolkit exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 2 forks from the linked repository.

⚛️ 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

bash
pip install -r requirements.txt

3) Run locally

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

Alternative:

bash
python main.py

STDIO mode (for desktop MCP clients):

bash
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

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

Expected response:

json
{"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:

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

Docker

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

🗂️ Project Structure

text
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.

Use mcp-atomictoolkit MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once mcp-atomictoolkit is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add mcp-atomictoolkit as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the mcp-atomictoolkit MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-atomictoolkit": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the mcp-atomictoolkit MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the mcp-atomictoolkit MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use mcp-atomictoolkit to help me with this task?
mcp-atomictoolkit
Sure. I read it.
Here is what I found using mcp-atomictoolkit.

Frequently asked questions

What is the mcp-atomictoolkit MCP server used for?

mcp-atomictoolkit is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use mcp-atomictoolkit MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use mcp-atomictoolkit with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use mcp-atomictoolkit MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With mcp-atomictoolkit connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect mcp-atomictoolkit MCP to TypingMind?

mcp-atomictoolkit runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does mcp-atomictoolkit MCP provide in TypingMind?

mcp-atomictoolkit exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use mcp-atomictoolkit MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If mcp-atomictoolkit requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇