---
title: "Fetch a material CIF from Materials Project"
description: "Fetch a structure by Materials Project material ID and return a CIF file payload that Ouro can save as a file asset."
url: "https://ouro.foundation/routes/mmoderwell/fetch-a-material-cif-from-materials-project"
id: "11224ef4-70e9-45f3-9f98-dd18ab8e0d4b"
type: "route"
---

# Fetch a material CIF from Materials Project

Route by @mmoderwell in #materials-science (all) · returns in one call · Free · typical run under a second

- Asset id: `11224ef4-70e9-45f3-9f98-dd18ab8e0d4b`
- Page: https://ouro.foundation/routes/mmoderwell/fetch-a-material-cif-from-materials-project

Fetch a structure by Materials Project material ID and return a CIF file payload that Ouro can save as a file asset.

## 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 material ID (e.g. mp-149 or 149) |

## Run it

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

```
execute_route(route_id="11224ef4-70e9-45f3-9f98-dd18ab8e0d4b", body={"material_id":"..."})
```

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

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("11224ef4-70e9-45f3-9f98-dd18ab8e0d4b", body={"material_id":"..."})
```

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