mp-api
API Client for the Materials Project
Decision gist · record as of 2026-08-14
Yes, if you work with materials science data. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is the official client for a widely-used database. The permissive license poses no restriction. The main requirement is a Materials Project API key and Python 3.11+; the dependency stack is substantial but appropriate for materials research workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Materials Project API key (free registration at materialsproject.org) and Python 3.11 or later.
- Low friction installation with a pure-wheel distribution.
- Active maintenance with a release within the last 60 days.
License · maintenance · safety
BSD-3-Clause-LBNL (permissive) — BSD-3-Clause-LBNL is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions, provided you retain the license notice.
last release 2026-06-15 (60 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 297,750 downloads/mo, #7,879 on PyPI
Alternatives
Verify before relying
pip install mp-api
from mp_api.client import MPRester
with MPRester(api_key="YOUR_API_KEY") as mpr:
docs = mpr.materials.search(formula="Si")- Whether the package supports offline use or requires live API connectivity for all operations.
- Performance characteristics when querying large result sets or downloading bulk data.
- Whether pymatgen and emmet-core are required for all use cases or only for specific workflows.
What it is and what it does
mp-api is the official Python client for the Materials Project, a large database of computed materials properties and crystal structures. It provides a programmatic interface to search, filter, and download materials data by composition, structure, or property, making it the standard tool for researchers and engineers working with computational materials datasets.
The package wraps the Materials Project REST API and handles authentication, data serialization (via orjson), and cloud storage access (via boto3 and deltalake). It depends on pymatgen for materials-specific data structures and emmet-core for common data models. Installation is straightforward, though it requires Python 3.11 and a free API key from the Materials Project.
Use it for
- Search for materials by chemical formula or composition to retrieve computed band gaps, elastic constants, or thermodynamic properties.
- Download crystal structure files in bulk for machine learning training datasets or high-throughput screening workflows.
- Integrate materials data into simulation pipelines that depend on pymatgen structures and properties.
- Query phase diagrams or stability data for materials design and discovery applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with materials science data.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and is the official client for a widely-used database. The permissive license poses no restriction. The main requirement is a Materials Project API key and Python 3.11+; the dependency stack is substantial but appropriate for materials research workflows.
Install
mp-api on PyPI
Before you install
Low friction installation with a pure-wheel distribution. Active maintenance with a release within the last 60 days. Requires Python 3.11 or later and depends on a substantial stack including pymatgen, boto3, and data processing libraries (pyarrow, deltalake).
Requires a Materials Project API key (free registration at materialsproject.org) and Python 3.11 or later.
License in practice
BSD-3-Clause-LBNL is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions, provided you retain the license notice.
Quickstart
pip install mp-api
from mp_api.client import MPRester
with MPRester(api_key="YOUR_API_KEY") as mpr:
docs = mpr.materials.search(formula="Si")
Verify before relying
- Whether the package supports offline use or requires live API connectivity for all operations.
- Performance characteristics when querying large result sets or downloading bulk data.
- Whether pymatgen and emmet-core are required for all use cases or only for specific workflows.
Package facts
| License | BSD-3-Clause-LBNL permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagespymatgentyping-extensionsrequestsmontyemmet-coreboto3orjsonpyarrowdeltalake |
| Maintenance | Actively maintained 60 days since the last release |
| First released | |
| Downloads | 297,750 / month, #7,879 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering |
Evidence: mp_api-0.46.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “materials project api client”
- mp-apiA Python client for querying and downloading materials science data…
- emmet-coreEmmet-core provides the core data models, pipelines, and API toolkit…
- pymatgenPymatgen provides Python classes and analysis tools for materials…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also pymatgen-core · pymatgen · emmet-core · fairchem-core · moyopy · phonopy · symfc · matscipy · pyocse