Hydroxyl

v0.1.0
io.github.trebeljahr/hydroxyl Checked 3 days ago Published 1 month ago

Local 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).

ParameterTypeDescription
backgroundstringPNG background, white (default) or transparent. The SVG is always transparent.
dpiPNG resolution, 300 (default) or 600.
formatstringpng (default) or svg.
molfilestringAn MDL molfile (V2000 or V3000), the whole text including the header lines.
namestringA common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused.
smilesstringA SMILES string, e.g. "c1ccccc1".
stylestringpublication (ACS 1996 settings, default), nature (Nature Portfolio), or screen.
viewsarrayOne panel per view, in order. skeletal (default), kekule, explicitH, lewis, condensed, sumFormula.
widthMaximum 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.

ParameterTypeDescription
molfilestringAn MDL molfile (V2000 or V3000), the whole text including the header lines.
namestringA common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused.
smilesstringA 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.

ParameterTypeDescription
molfilestringAn MDL molfile (V2000 or V3000), the whole text including the header lines.
namestringA common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused.
smilesstringA 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.

ParameterTypeDescription
molfilestringAn MDL molfile (V2000 or V3000), the whole text including the header lines.
namestringA common name from the editor's structure dictionary, e.g. "benzene", "glycine", "DMSO". Not a full name-to-structure parser: unknown names are refused.
smilesstringA SMILES string, e.g. "c1ccccc1".
tostringThe format to produce.