mace-mcp-server
An MCP (Model Context Protocol) server that gives AI assistants direct access to MACE machine learning interatomic potentials. Run atomistic simulations -- energy calculations, geometry optimizations, molecular dynamics, vibrational analysis, and more -- through natural language.
Why?
MACE is the most widely-used ML force field with 11 foundation models covering 89 elements. This server bridges the gap between MACE's capabilities and AI assistants, enabling researchers to run sub-second atomistic simulations conversationally.
Features
- 10 Tools: Single-point energy, geometry optimization, molecular dynamics, vibrational frequencies, structure parsing/building/conversion, equation of state, descriptor extraction, parameter suggestion
- 4 Resources: Model catalog, individual model details, unit conventions, example structures
- 3 Prompts: Guided workflows for structure analysis, molecule optimization, MD simulation
- 11 Foundation Models: MACE-MPA-0, MACE-MP-0, MACE-OMAT-0, MACE-MATPES-PBE/r2SCAN, MACE-MH-1, MACE-OFF23, MACE-OMOL-0, MACE-Polar-1, MACE-ANI-CC, plus custom models
- All 3 MCP Primitives: Tools + Resources + Prompts
- Structured Output: Pydantic-validated JSON responses with full
outputSchema - LLM-Friendly Errors: Every error includes
hintandnext_actionfor self-correction - Model Caching: Lazy loading with lifespan-managed cache (avoids 5-30s reload penalty)
Installation
# Standard install
pip install mace-mcp-server
# With D3 dispersion support
pip install mace-mcp-server[dispersion]
# From source (development)
git clone https://github.com/zichengzhao/mace-mcp-server
cd mace-mcp-server
pip install -e ".[dev]"
# Run directly with uvx (no install needed)
uvx mace-mcp-server
Quick Start
Claude Code
claude mcp add mace -- mace-mcp-server
Then ask:
- "Parse the structure at examples/water.xyz"
- "What model should I use for silicon?"
- "Calculate the energy of ethanol with MACE-OFF"
- "Optimize this crystal structure"
- "Run NVT MD at 500K for 200 steps"
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mace": {
"command": "uvx",
"args": ["mace-mcp-server"]
}
}
}
MCP Inspector
npx -y @modelcontextprotocol/inspector mace-mcp-server
Tools
| Tool | Description | Category |
|---|---|---|
single_point |
Energy, forces, stress evaluation | Calculation |
optimize |
Geometry optimization (BFGS/FIRE) | Calculation |
molecular_dynamics |
NVT/NPT/NVE simulations | Calculation |
vibrational_frequencies |
Normal modes and thermodynamics | Calculation |
parse_structure |
Read and analyze structure files | Structure |
build_structure |
Generate molecules, crystals, surfaces | Structure |
convert_structure |
Format conversion (XYZ, CIF, POSCAR, PDB) | Structure |
equation_of_state |
Bulk modulus and equilibrium volume | Analysis |
extract_descriptors |
MACE learned atomic representations | Analysis |
suggest_parameters |
AI-powered parameter recommendation | Intelligence |
Foundation Models
| Model | Elements | Domain | Use Case |
|---|---|---|---|
| MACE-MPA-0 (default) | 89 | Materials | Crystals, surfaces, interfaces |
| MACE-OFF23 | 10 | Organic | Drug-like molecules, polymers |
| MACE-OMOL-0 | 83 | Molecular | Organometallics, charged species |
| MACE-ANI-CC | 4 | High accuracy | Small H/C/N/O molecules (CCSD(T)) |
| MACE-OMAT-0 | 89 | Materials | Phonons, mechanical properties |
| MACE-MH-1 | 89 | Cross-domain | Multi-functional predictions |
See mace://models resource for the complete catalog.
Units
All calculations use ASE's unit system:
- Energy: eV
- Force: eV/A
- Distance: Angstrom
- Stress: eV/A^3 (Voigt: [xx, yy, zz, yz, xz, xy])
- Frequency: cm^-1
- Temperature: Kelvin
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/
# Run with logging
PYTHONPATH=src python -m mace_mcp_server.server
Architecture
src/mace_mcp_server/
server.py # FastMCP entry point + lifespan
tools/ # MCP tool wrappers (thin layer)
resources/ # URI-addressable data (model catalog, units, examples)
prompts/ # Workflow templates
engine/ # Scientific logic (testable without MCP)
schemas/ # Pydantic input/output models
The engine/ layer contains all scientific logic and is fully testable without MCP transport. Tools are thin wrappers that validate input, call the engine, and format structured output.
License
MIT
Metadata
Release files for mace-mcp-server 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mace_mcp_server-0.1.1.tar.gz | 49.5 kB | With provenance | Details for mace_mcp_server-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mace_mcp_server-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for mace_mcp_server-0.1.1-py3-none-any.whl |
Total release size: 89.2 kB
Release files / mace_mcp_server-0.1.1.tar.gz
| Download URL | mace_mcp_server-0.1.1.tar.gz |
|---|---|
| Size | 49.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6a1d49065db5b502537cb7397940aaa4279189046949a564ffcbdd07a8b9391
|
|
BLAKE2b-256 checksum How to use checksums |
b0309d46b693e7e576a7054acd8031a6a163783d6d58ed1038a1e2cd1000a7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logRelease files / mace_mcp_server-0.1.1-py3-none-any.whl
| Download URL | mace_mcp_server-0.1.1-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6946a4f2935ad870ea5504c8db739be93ff6c92fe7215f4c48ef2703f65a51b7
|
|
BLAKE2b-256 checksum How to use checksums |
986e8b186557451ff930a820252b0b8b002c395c672c25825b82b7a53199d86b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logSecurity for mace-mcp-server 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mace_mcp_server-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.