An MCP server that provides access to the ColabFit database
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server for discovering ColabFit datasets and training MACE interatomic potentials using KLIFF and KLAY.
This is a Model Context Protocol (MCP) server that gives AI assistants the ability to:
It bridges conversational AI and local compute β the AI agent searches for data, trains models, and runs simulations on your machine through this server.
For local (non-Docker) installation, only Python 3.10+ is required. See Local Installation.
Then register the MCP server with your client (see Register the MCP server below) and restart your client. The container starts automatically when your AI client connects.
Run make help to see all available commands.
If you prefer not to use the Makefile:
start.sh automatically detects NVIDIA GPU availability and enables GPU passthrough when present, falling back to CPU otherwise.
Claude Code:
Replace /path/to/colabfit-mcp with the absolute path to this repository.
Then restart Claude Code for the new server to take effect.
Claude Desktop:
Add to your Claude Desktop config (Settings > Developer > Edit Config):
OpenAI Agent (API-based, not ChatGPT app):
OpenAI agents that support MCP can connect to this server over stdio by launching the same command used above.
Use this command as the MCP server entrypoint:
If your agent framework requires explicit command/args fields, use:
Notes:
stdio MCP server registration in the same way as developer agent runtimes./path/to/colabfit-mcp with the absolute path to this repository.The server uses standard MCP stdio transport and works with any MCP-compatible client.
Entry point (after pip install or in the Docker container):
Testing with mcp-cli:
Any stdio MCP client (Gemini, OpenAI agents, Cursor, etc.) can register the server using the same command / args pattern as Claude Desktop above. The protocol is standardized β all tools use MCP stdio transport, no HTTP server or open port is required.
Python SDK client example:
Install the client library with pip install mcp. The server uses JSON-RPC 2.0 over stdio β raw subprocess.Popen with hand-crafted JSON will not work; use a proper MCP client library.
Note: Docker is required for training and inference (heavy dependencies). The
search_datasets,check_local_datasets,download_dataset,build_dataset, andcheck_statustools work without Docker via a plain pip install.
| Tool | Description |
|---|---|
search_datasets | Search ColabFit database by text, elements, properties, software |
check_local_datasets | Scan local data directory for downloaded datasets, filter by elements/properties |
download_dataset | Download a dataset from HuggingFace via KLIFF |
train_mace | Train a MACE-style KLAY model from scratch using KLIFF |
use_model | Run energy/forces/relax calculations with a trained KLAY model, or generate a Python snippet |
check_status | Check GPU, packages, disk, existing models and datasets |
list_test_drivers | List available kimvv test drivers, optionally filtered by property keyword |
run_test_driver | Run a kimvv test driver against a trained KLAY model; saves structures.extxyz + results.json in a timestamped subdirectory; supports multiple structures per call with optional repeat for supercell sizing and async_mode for slow drivers |
check_test_driver_result | Check status of an async test driver job and return inline results when complete |
| Test Driver | Description | Properties |
|---|---|---|
EquilibriumCrystalStructure | Equilibrium lattice parameters and cohesive energy | lattice-constant, cohesive-energy |
ElasticConstantsCrystal | Full elastic constants tensor at zero temperature | elastic-constants |
CrystalStructureAndEnergyVsPressure | Crystal structure and energy as a function of pressure | energy-vs-pressure |
GroundStateCrystalStructure | Lowest energy crystal structure among candidates | ground-state-structure |
VacancyFormationEnergyRelaxationVolumeCrystal | Vacancy formation energy and relaxation volume | vacancy-formation-energy, relaxation-volume |
ClusterEnergyAndForces | BFGS relaxation of an atomic cluster in a non-periodic box. Use for molecular/non-periodic models. | energy, atomic-forces, relaxed-positions |
search_datasets β find datasets with the elements/properties you needdownload_dataset β download from HuggingFace (cached locally for reuse)train_mace β train a MACE-style KLAY model on the downloaded datause_model β run energy/forces/relax calculations or generate a Python snippetrun_test_driver β validate the model against OpenKIM-style property testsThe following prompts work directly in Claude Code or Claude Desktop once the MCP server is registered.
Explore available data:
Search ColabFit for silicon datasets that include forces. Which ones look best for training an interatomic potential?
What datasets do I have downloaded locally? Do any contain iron with stress data?
End-to-end training:
Find a dataset for copper, download it, and train a MACE model on it. Use default settings.
I need a potential for lithium phosphate. Search ColabFit for Li and P datasets, pick the most suitable one, and start training.
Run inference:
Use my model at /home/mcpuser/colabfit/models/cu_mace/cu_mace__MO_000000000000_000 to calculate the energy and forces on bulk copper in FCC structure.
Relax an FCC aluminum structure with my trained model and report the final energy and cell parameters.
Generate a Python snippet to run the energy calculation on bulk silicon using my KLAY model.
Validate with test drivers:
What test drivers are available for validating my model?
Run the ElasticConstantsCrystal test driver on my silicon model at /home/mcpuser/colabfit/models/si_mace/si_mace__MO_000000000000_000.
Run the EquilibriumCrystalStructure and VacancyFormationEnergyRelaxationVolumeCrystal tests on my copper FCC model.
Check status:
Check my GPU status and list all the models and datasets I have locally.
End-to-end workflow:
Search ColabFit for silicon datasets with forces, download the best one, train a MACE model, calculate energy and forces on bulk diamond-cubic silicon, then run the ElasticConstantsCrystal and EquilibriumCrystalStructure test drivers to validate the model. Report the elastic constants and equilibrium lattice parameter when done.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/colabfit-mcp)<a href="https://allmcps.com/mcp/colabfit-mcp"><img src="https://allmcps.com/api/badge/colabfit-mcp?style=directory" alt="Colabfit MCP on AllMCPs" /></a>