Crystallography

v0.3.1
io.github.pipeworx-io/crystallography Checked 54 minutes ago Published 1 month ago

Crystallography Open Database (COD) MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_structures

Search the Crystallography Open Database (COD), an open repository of crystal structures (inorganic, organic, metal-organic, and mineral). Search by compound name (free text), chemical formula, or mineral name; returns matching crystal structures with unit-cell parameters, space group, year, and a link to the CIF structure file. Keyless. Provide at least one of query, formula, or mineral. Formulas are normalized to COD's stored Hill notation for you, so "NaCl", "SiO2" and "CaCO3" all work; the response reports `formula_searched` with the exact string that was matched.

ParameterTypeDescription
formulastringChemical formula in any common spelling — "NaCl", "SiO2", "CaCO3", "C6H6", or COD's own "O2 Si". It is converted to COD's stored Hill form (C first, then H, then the rest alphabetically; counts of 1…
limitnumberMax structures to return (default 20, max 100).
mineralstringMineral name, e.g. "Quartz", "Calcite", "Halite". Matched against each structure's mineral field (case-insensitive substring), so "Quartz" also returns "Quartz low" / "Quartz high".
querystringFree-text search (compound/common name, title words, author, etc.). e.g. "quartz", "aspirin".

get_structure

Look up a single crystal structure in the Crystallography Open Database (COD) by its numeric COD ID (e.g. "1009000"). Returns the compound/mineral name, chemical formula, space group, full unit-cell parameters (a, b, c, alpha, beta, gamma, volume), bibliographic details (title, authors, journal, year, DOI), and a link to the CIF structure file. Keyless.

ParameterTypeDescription
cod_id *stringCOD numeric structure id, e.g. "1009000".

get_cif

Fetch the full CIF (Crystallographic Information File) for a COD structure by its numeric COD ID — the actual machine-readable structure: symmetry operations and the atom sites (element, fractional x/y/z coordinates, occupancy). Use after search_structures/get_structure when you need the real atomic structure, not just the metadata/link. Returns the CIF text plus a parsed summary (formula, space group, cell, atom count). Keyless.

ParameterTypeDescription
cod_id *stringCOD numeric structure id, e.g. "1009000".