Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .claude/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .agents/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .cursor/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .gemini/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .github/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "mat-db-mp" agent skill from https://github.com/learningmatter-mit/AtomisticSkills/tree/main/skills/mat-db-mp into .opencode/skills/mat-db-mp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mat-db-mp", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
mat-db-mp
GitHub stars
176
Token cost
~3k tokens
SKILL.md length
928 words
Files
25 (incl. scripts)
Skills in repo
129
Repo updated
First seen
Licence
MIT
At a glance
Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API.
Works in 5 steps: Query Materials by Chemical System or… → Query Elastic Properties → Query Magnetic Properties → …
Tasks that involve Physical and earth sciences
SKILL.md covers Goal, Instructions, Examples and MCP Tools for Quick Retrieval, plus 1 more section
Runs Shell scripts from its folder; calls bash; needs MP_API_KEY
What it does
Mat DB Mp is an agent skill from learningmatter-mit/AtomisticSkills. Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API.
Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 29 other files, including scripts (for example `examples/README.md`, `examples/elasticity/elasticity_query.sh` and `examples/elasticity/high_bulk_modulus.json`).
It sits in Research & Science, covering Physical and earth sciences and MCP servers. It works with Model Context Protocol. The repository describes itself as: Integrating AtomisticSkills into Agentic IDEs (Cursor, Claude Code, Codex, Google Antigravity, Hermes Agent, etc). The licence is MIT.
When your agent uses it
Tasks that involve Physical and earth sciences
Tasks that involve MCP servers
Example prompts
“/mat-db-mp”
Requirements
Python 3
A Bash shell
A credential in MP_API_KEY
Workflow steps
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6257444. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Ships 1 file in scripts/ (Shell, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
bash
From the folder's file list and the shell code blocks in SKILL.md.
Network
Links to these hosts (documentation or services it may open):
github.com
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names these keys or tokens, usually read from environment variables:
MP_API_KEY
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Mat DB Mp loads about 3k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 928 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~41
When it runs· the whole SKILL.md, loaded when a task matches
~3k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
Download SKILL.mdSave it as .claude/skills/mat-db-mp/SKILL.md (or your agent's skills folder). This skill also uses 24 other files; get the full folder from GitHub.
name
mat-db-mp
description
Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API.
metadata.category
materials
metadata.venv
cpu
Materials Project Database Query
<!-- mcp-tools-note -->
[!NOTE]
Steps written server.tool are MCP tool calls: base.search_materials_project_by_formula is the search_materials_project_by_formula
tool of the base server (mcp__base__search_materials_project_by_formula, or
mcp__plugin_atomistic-skills_base__search_materials_project_by_formula when installed as a plugin).
Without a connected server, run the same tools from the shell. Tools named in
one command share a process, so a model loaded by load_model stays loaded:
bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python -m src.mcp_server.cli base search_materials_project_by_formula key=value search_materials_project_by_chemsys key=value
Goal
To retrieve crystal structures and computed properties from the Materials Project database, enabling efficient materials discovery and property analysis. This skill provides access to:
Basic material properties (energy above hull, formation energy, band gap)
--structure: Path to custom structure file (CIF, POSCAR, etc.)
--top: Number of most similar structures to return (default: 50)
--chemsys: Optional post-filter by exact chemical system match
Similarity Algorithm: Uses CrystalNN to compute local coordination fingerprints, aggregates them into structure fingerprints, and ranks by Euclidean distance in fingerprint space. Dissimilarity score: 100 * (1 - exp(-distance)), where 0% = identical and 100% = maximally different.
Output: JSON file with similar material IDs, formulas, and dissimilarity scores (0-100%).
Examples
See the examples/ directory for complete working examples:
cd skills/mat-db-mp
bash examples/elasticity/elasticity_query.sh
# Output: Si elastic data + 1387 materials with K=200-400 GPa
Magnetic Properties (examples/magnetism/):
bash
cd skills/mat-db-mp
bash examples/magnetism/magnetism_query.sh
# Output: Fe2O3 magnetic data + 23,121 ferromagnetic materials
Structure Similarity (examples/similarity/):
bash
cd skills/mat-db-mp
bash examples/similarity/similarity_search.sh
# Output: 15 structures similar to Si (mp-149)
Structure Retrieval (examples/get_structure/):
bash
cd skills/mat-db-mp
bash examples/get_structure/structure_retrieval.sh
# Output: CIF files for Si, LiFePO4, and Fe2O3
Show full SKILL.md (360 more words)Show less
MCP Tools for Quick Retrieval
For simple structure retrieval tasks, MCP tools provide a convenient alternative to running scripts:
Retrieve Most Stable Structure by Formula
python
base.search_materials_project_by_formula(
formula="LiFePO4", # Chemical formula
save_to_file="lifepo4.cif" # Optional: save path (default: auto-generated)
)
Returns only the single most stable structure (lowest energy above hull) matching the formula. If multiple polymorphs exist, only ONE is returned.
Retrieve All Stable Structures by Chemical System
python
base.search_materials_project_by_chemsys(
chemsys="Li-O", # Chemical system
save_to_file="LiO_structures" # Optional: directory path (default: {chemsys}_structures)
)
Returns all stable structures on the convex hull (E_hull = 0) in the specified chemical system. Structures are saved to individual CIF files in a directory.
Output: Directory containing CIF files for each hull structure, named {mp-id}_{formula}.cif. Each structure includes metadata (material_id, formula, energy_above_hull) in the atoms.info dict.
Example Output:
Found 3 structures on convex hull for Li-O
Saved to directory: /path/to/LiO_structures
Structures:
- mp-1960: Li2O (E_hull=0.000000 eV/atom)
- mp-12958: Li2O2 (E_hull=0.000000 eV/atom)
- mp-841: LiO2 (E_hull=0.000000 eV/atom)
When to Use MCP Tools vs Scripts
Use MCP Tools when:
Formula search: Need the single most stable polymorph quickly — ALWAYS prefer this over guessing MP IDs: guessed IDs can silently return wrong-element structures (e.g. mp-540447 and mp-150 are a Ni-phosphate and Fe, not Li) and get_structure_by_id.py saves them without complaint
Chemical system search: Need all stable phases on the convex hull
Working from Python/Jupyter notebooks
Simple queries without complex property filtering
Exploring phase diagrams (chemsys tool returns all hull phases)
Use Scripts when:
Querying structures with specific property filters (e.g., bandgap > 2 eV)
Need detailed properties (elasticity, magnetism, formation energy)
Python Version: The cpu environment uses Python 3.12
Rate Limits: Materials Project API has rate limits; large queries may be throttled
Endpoint Differences:
summary endpoint includes crystal structures (CIF format)
thermo endpoint provides detailed thermodynamic data but no structures
Similarity Chemical Filter: The --chemsys parameter in similarity search performs post-filtering for exact element matches, not compositional similarity
Large Result Sets: Queries returning >1000 materials may take several minutes to complete
API Endpoints
Summary (mpr.materials.summary): General material data with structures
Mat DB Mp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Mat DB Mp compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
Mat DB Mp this skilllearningmatter-mit/AtomisticSkills
Find official portals, APIs, and download paths for authoritative primary data sources (governments, international organizations, research institutions, etc.).
Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.
Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API. Mat DB Mp is an agent skill from learningmatter-mit/AtomisticSkills. Query Materials Project database for crystal structures, computed properties, elastic/magnetic data, and structurally similar materials using the MP API.
When should I use Mat DB Mp?
Mat DB Mp fits situations like: tasks that involve Physical and earth sciences; tasks that involve MCP servers.
How do I install Mat DB Mp in Claude Code?
Run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a claude-code`. Or copy the skill folder (skills/mat-db-mp in learningmatter-mit/AtomisticSkills) into .claude/skills/mat-db-mp in your project. Claude Code loads it when a task matches its description.
How do I install Mat DB Mp in Codex?
Run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a codex`. Or copy the skill folder (skills/mat-db-mp in learningmatter-mit/AtomisticSkills) into .agents/skills/mat-db-mp in your project. Codex loads it when a task matches its description.
Can I use Mat DB Mp in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-db-mp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mat-db-mp, .gemini/skills/mat-db-mp, .github/skills/mat-db-mp and .opencode/skills/mat-db-mp in your project.
What does Mat DB Mp need to run?
Going by SKILL.md and its folder, Mat DB Mp needs a shell for the scripts in its folder, the command-line tools its instructions call (bash) and credentials named MP_API_KEY. Our summary lists: Python 3; A Bash shell; A credential in MP_API_KEY.
Does Mat DB Mp access the network?
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Is Mat DB Mp safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
What licence does Mat DB Mp use?
Mat DB Mp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Mat DB Mp use?
About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
What are the alternatives to Mat DB Mp?
Skills that share tags, products or a category with Mat DB Mp: Chemgraph (argonne-lcf/ChemGraph, 162 stars), Chemgraph (argonne-lcf/ChemGraph, 162 stars), Read GitHub (AgentTeam-TaichuAI/ScienceClaw, 670 stars) and Firstdata (MLT-OSS/FirstData, 183 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Mat DB Mp?
learningmatter-mit (a GitHub organization) maintains it in learningmatter-mit/AtomisticSkills, which has 176 GitHub stars. The repository holds 129 skills in this directory. The repository was last updated on October 7, 2026.