MCP Server for Materials Project database - query material properties, crystal structures, and phase diagrams
Project description
Materials Project MCP Server
An MCP (Model Context Protocol) server that provides access to the Materials Project database for querying material properties, crystal structures, and phase diagrams.
Features
- fetch_full_material_data: Search materials by formula, elements, band gap, stability, etc.
- get_structure_details: Get crystal structure with lattice parameters and atomic sites
- search_materials_by_property: Search by specific property ranges (band gap, bulk modulus, etc.)
- get_phase_diagram_info: Get phase diagram entries for a chemical system
- compare_materials: Compare multiple materials side by side
Installation
From PyPI (Recommended)
pip install mcp-materials-project
From Source
git clone https://github.com/luffysolution-svg/mcp-materials-project.git
cd mcp-materials-project
pip install -r requirements.txt
Configuration
-
Get your API key from Materials Project
-
Set the environment variable:
# Windows
set MP_API_KEY=your_api_key_here
# Linux/macOS
export MP_API_KEY=your_api_key_here
Claude Code Configuration
Add to your ~/.claude/settings.json or project .mcp.json:
{
"mcpServers": {
"materials-project": {
"command": "mcp-materials-project",
"env": {
"MP_API_KEY": "your_api_key_here"
}
}
}
}
Or run directly:
claude mcp add materials-project -- mcp-materials-project
Then set the environment variable MP_API_KEY in your shell or add it to the config.
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"materials-project": {
"command": "mcp-materials-project",
"env": {
"MP_API_KEY": "your_api_key_here"
}
}
}
}
Usage Examples
Once configured, you can ask Claude:
- "Search for stable materials containing Li and O with band gap > 2 eV"
- "Get the crystal structure of mp-149 (Silicon)"
- "Compare mp-149, mp-2534, and mp-22862"
- "Show me the phase diagram for the Li-Fe-O system"
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_materials_project-0.1.0.tar.gz.
File metadata
- Download URL: mcp_materials_project-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b19a387ebeca37f37e48e2569f16b30f8cbc94f8d6ba63cd284905922418d7f7
|
|
| MD5 |
32d86701127221c465d5e5cc70b80f87
|
|
| BLAKE2b-256 |
1490d1d9e90c7dce9d8d14bf79b73a37cc309833544c8057a73e78fc9ee6830f
|
File details
Details for the file mcp_materials_project-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_materials_project-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2073f224291855725877e00eeac7e07fa966f1ba92bf982acfcb52a34f77aae0
|
|
| MD5 |
e28b5b6f6f1ec403ef740760fad5f81a
|
|
| BLAKE2b-256 |
bdcb5f94d8642cf3fd63638dcb9f6597f9c0106ecfe9ab47c1a9e3e397f5660e
|