---
title: "Get the CIF of a Materials Project, Alexandria, GNoME or COD material"
description: "Look up a material by its Materials Project, Alexandria, GNoME or Crystallography Open Database id (e.g. mp-149, agm005272041, 0000a1b2c3, COD 1000041, or a link to its page) and save its crystal structure as a CIF file on Ouro, at the geometry the source published. Returns the formula and space gro"
url: "https://ouro.foundation/routes/mmoderwell/get-the-cif-of-a-materials-project-alexandria-gnome-or-cod-material"
id: "e4812d4a-caae-4c11-a1a1-ff92af687d8d"
type: "route"
---

# Get the CIF of a Materials Project, Alexandria, GNoME or COD material

Route by @mmoderwell in #materials-science (all) · returns in one call · Free · typical run ~2 s

- Asset id: `e4812d4a-caae-4c11-a1a1-ff92af687d8d`
- Page: https://ouro.foundation/routes/mmoderwell/get-the-cif-of-a-materials-project-alexandria-gnome-or-cod-material

Look up a material by its Materials Project, Alexandria, GNoME or Crystallography Open Database id (e.g. mp-149, agm005272041, 0000a1b2c3, COD 1000041, or a link to its page) and save its crystal structure as a CIF file on Ouro, at the geometry the source published. Returns the formula and space group and, for the DFT databases, the source's PBE energy and the energy above the PBE hull of every structure in Ouro's crystal database. The file carries the record's license: CC BY 4.0 for Materials Project and Alexandria, CC BY-NC 4.0 (non-commercial use only) for GNoME and Materials Project's GNoME-derived records, CC0 for COD (whose file credits the structure's paper). The CIF credits its source.

## Inputs

- No input assets: the body below is the whole request.

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| **material_id** (required) | string |  | Materials Project, Alexandria, GNoME or COD id, e.g. mp-149… |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="e4812d4a-caae-4c11-a1a1-ff92af687d8d", body={"material_id":"..."})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("e4812d4a-caae-4c11-a1a1-ff92af687d8d", body={"material_id":"..."})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
