$npx skillfedfor your agent

mp-api

API Client for the Materials Project

With conditionsPyPI Scientific/EngineeringReleased Jun 2026297.8K downloads / moBSD-3-Clause-LBNLPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mp_api-0.46.4-py3-none-any.whl
v0.46.4 · released 2026-06-15 · Python >=3.11 · 9 runtime deps: pymatgen, typing-extensions, requests, monty, emmet-core, boto3, orjson, pyarrow

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseBSD-3-Clause-LBNL permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
pymatgentyping-extensionsrequestsmontyemmet-coreboto3orjsonpyarrowdeltalake
MaintenanceActively maintained 60 days since the last release
First released
Downloads297,750 / month, #7,879 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
materials project api clientmaterials science data downloadcrystal structure database pythoncomputed materials propertiesmaterials project database access
Topics
materials-scienceapi-clientdatabase-access

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 Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

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.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

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.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

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.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

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.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also pymatgen-core · pymatgen · emmet-core · fairchem-core · moyopy · phonopy · symfc · matscipy · pyocse