pymatgen

Extract and analyze crystalline structures and phase data from CIF/POSCAR files.

4|1|Updated Jun 18, 2025
One-click install
npx skills add https://github.com/HolobiomicsLab/Toolomics --skill pymatgen-holobiomicslab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/HolobiomicsLab/Toolomics/tree/main/mcp_host/skills/scientific-skills/scientific-skills/pymatgen
Command: npx skills add https://github.com/HolobiomicsLab/Toolomics --skill pymatgen-holobiomicslab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymatgen, mp-api, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Pymatgen provides a comprehensive toolkit and APIs to analyze, manipulate, and convert crystal structures and materials data across formats, integrate with Materials Project, and perform high-level analyses such as phase diagrams, band structures, and DOS.

Core Features & Use Cases

  • Structure handling and file I/O
  • Format conversions between CIF, POSCAR, XYZ, and more
  • Phase diagram construction and thermodynamic analysis
  • Electronic structure analysis (band structure, DOS)
  • Materials Project integration and workflow automation
  • High-throughput structure generation and transformations

Quick Start

Use a CIF file to generate a POSCAR and kick off a phase-diagram workflow.

Frequently Asked Questions about pymatgen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a CIF file to POSCAR format for crystal structure analysis?

To convert a CIF file to POSCAR format, you can use this toolkit's structure handling and file I/O capabilities. It supports extensive format conversions between CIF, POSCAR, and XYZ files to integrate crystalline data into your research pipeline.

What is the best way to construct a phase diagram from Materials Project data?

Constructing a phase diagram from Materials Project data is achieved by using the integrated mp-api to fetch results. This toolkit then applies phase diagram construction and thermodynamic analysis to evaluate material stability.

Can I analyze electronic structure and density of states using pymatgen?

Yes, you can analyze electronic structure and density of states. The toolkit provides specialized functions to process band structures and DOS, enabling detailed electronic structure analyses within automated research workflows.

Does this workflow support high-throughput structure generation and transformations?

High-throughput structure generation and transformations are fully supported. It applies pymatgen across structure manipulation and workflow automation, allowing extensive high-throughput generation for materials screening pipelines.

How do I extract and manipulate crystal structures from POSCAR files in Python?

You can extract and manipulate crystal structures from POSCAR files using its Python-based materials analysis toolkit. It reads structural data directly and applies transformations for interoperability across different file formats.

Why use pymatgen instead of other tools for materials analysis and format conversions?

Using pymatgen provides a comprehensive toolkit with extensive I/O support and interoperability. It integrates directly with Materials Project for workflow automation, distinguishing it from other tools in the same category.