AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Materials Project

skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-materials-project · by WuGroup-XJTLU

Use when querying the Materials Project database for crystal structures, material properties, or generating phase diagrams. Requires the MP_API_KEY environment variable to be set.

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-materials-project

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-materials-project)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Materials Project? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Materials Project API Skill

Overview

Query the Materials Project database for structures, properties, and thermodynamic data.

When to Use Materials Project vs. Other Tools

| Scenario | Recommended Tool | Why | |---|---|---| | Retrieving known crystal structures, band gaps, or phase diagrams from a curated database | Materials Project API | Fast access to DFT-computed data without running calculations | | Exploring structures when no API key is available | AFLOW / OQMD web interface | Alternative open databases with overlapping coverage | | Running custom DFT on a modified structure | ASE + VASP / CP2K / PySCF | Materials Project gives starting points, not bespoke calculations |

Key rule: Use the Materials Project API when you need experimentally or computationally validated structures and properties without running fresh quantum chemistry calculations.

Setup

export MP_API_KEY="your_key_here"

Core Capabilities

1. Query by Formula or Material ID

python scripts/query_materials.py --formula Fe2O3
python scripts/query_materials.py --material-id mp-149

2. Phase Diagrams

Generate phase diagrams for a chemical system.

python scripts/query_materials.py --chemsys Li-Fe-O --phase-diagram

Output

Results are printed as JSON to stdout. Structures can be saved as CIF files with --save-cif .

Anti-Patterns (Do Not Do These)

  • Do not query Materials Project without setting MP_API_KEY. All requests will fail immediately with an authentication error.
  • Do not assume a formula query returns only one structure. One formula can map to many polymorphs and oxidation states.
  • Do not use energy_above_hull == 0 alone to guarantee synthesizability. It indicates thermodynamic stability in the DFT phase diagram, not kinetic accessibility.
  • Do not neglect licensing and attribution. Materials Project data should be cited appropriately in publications.

Best Practices

  • Batch queries when possible to reduce API round-trips.
  • Filter by energy_above_hull to find stable phases; values closer to zero are more thermodynamically stable.
  • Save structures as CIF with --save-cif if you plan to feed them into ASE, VASP, or visualization tools.
  • When comparing computed properties across material families, be consistent about the functional and approximations used by the database version you are querying.
  • For questions about the latest Materials Project API features, newly added data fields, or version-specific syntax changes, use WebFetch on https://docs.materialsproject.org/ before answering.

Common Errors and Fixes

| Error / Symptom | Likely Cause | Fix | |---|---|---| | MP_API_KEY environment variable not set | Missing API key | Export MP_API_KEY before running the script | | Connection error or timeout | Network issue or API rate limiting | Retry after a short delay or check Materials Project status page | | Empty results for a formula | No matching entries in the database | Try a different formula formatting or search by element chemsys | | ValueError during phase diagram generation | Entry mismatch or unsupported chemsys | Verify the chemsys string uses valid elements separated by hyphens | | Missing properties in response | Data field not available for that material | Check the Materials Project documentation for field availability by version |

References

  • Official Documentation: https://docs.materialsproject.org/
  • MPRester API Reference: https://docs.materialsproject.org/downloading-data/using-the-api/reference/
  • GitHub (pymatgen): https://github.com/materialsproject/pymatgen
  • GitHub (mp-api): https://github.com/materialsproject/api

Getting Live Information

If the user asks about recently added features, new data fields, or version-specific syntax changes, use WebFetch on the official documentation at https://docs.materialsproject.org/ before answering.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.