Hydroxyl
v0.1.0Local stdio MCP server: publication figures, structure checks and conversions for AI assistants
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render_figure Render a publication figure
Draw a structure as a journal figure: one bond prints at the style's standard length (5.08 mm for ACS-style Publication), and the width is a maximum the figure is scaled down to fit. Returns the figure (PNG or SVG), its printed size, its label size, and a warning for any text that prints below the style's minimum (8 pt for Publication).
| Parameter | Type | Description |
|---|---|---|
background | string | PNG background, white (default) or transparent. The SVG is always transparent. |
dpi | PNG resolution, 300 (default) or 600. | |
format | string | png (default) or svg. |
molfile | string | An MDL molfile (V2000 or V3000), the whole text including the header lines. |
name | string | A common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused. |
smiles | string | A SMILES string, e.g. "c1ccccc1". |
style | string | publication (ACS 1996 settings, default), nature (Nature Portfolio), or screen. |
views | array | One panel per view, in order. skeletal (default), kekule, explicitH, lewis, condensed, sumFormula. |
width | Maximum width: "single" or "double" journal column (default single), or a width in cm. |
check_structure Check a structure
Report every valence and drawing problem the editor would flag (over-valent atoms, misplaced wedges), each with the obvious one-click fixes as corrected molfiles, plus RDKit's refusal if it would refuse it. Atoms are numbered 1-based in molfile order.
| Parameter | Type | Description |
|---|---|---|
molfile | string | An MDL molfile (V2000 or V3000), the whole text including the header lines. |
name | string | A common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused. |
smiles | string | A SMILES string, e.g. "c1ccccc1". |
describe Describe a structure
Sum formula (Hill order), average molecular weight, monoisotopic exact mass, net charge, and the CIP label of every stereocentre and stereogenic double bond. Atoms are numbered 1-based in molfile order.
| Parameter | Type | Description |
|---|---|---|
molfile | string | An MDL molfile (V2000 or V3000), the whole text including the header lines. |
name | string | A common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused. |
smiles | string | A SMILES string, e.g. "c1ccccc1". |
convert Convert between SMILES and molfile
Convert a structure to a molfile (as the editor saves it) or to RDKit's canonical SMILES. By default a SMILES becomes a molfile and anything else becomes a SMILES.
| Parameter | Type | Description |
|---|---|---|
molfile | string | An MDL molfile (V2000 or V3000), the whole text including the header lines. |
name | string | A common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused. |
smiles | string | A SMILES string, e.g. "c1ccccc1". |
to | string | The format to produce. |
editor_link Link to the structure in the editor
A link that opens the structure in the Hydroxyl editor as a new, unsaved sketch. The structure travels in the URL fragment, which the browser does not send to the server.
| Parameter | Type | Description |
|---|---|---|
molfile | string | An MDL molfile (V2000 or V3000), the whole text including the header lines. |
name | string | A common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused. |
smiles | string | A SMILES string, e.g. "c1ccccc1". |