mcp-molecules

v0.3.1
mcp-molecules Checked 11 hours ago Published 1 month ago

An MCP server for chemistry, calculations (e.g.

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

info

Report mcp-molecules server availability, version, and environment information.

molecular_weight_calculator

Compute the molecular weight (molar mass) of a chemical formula. Parses ``formula`` into an atom tally, looks up each element's mass in the bundled NIST Atomic Weights and Isotopic Compositions database, and returns the total weight in the requested ``unit``. Every call reports all three distinct mass flavors under ``masses`` so callers never conflate them or have to re-ask: * ``nominal`` -- sum of the integer mass numbers of the most abundant isotopes, * ``average`` -- the standard atomic weight (average molar mass), * ``monoisotopic`` -- the exact mass…

ParameterTypeDescription
formula *stringChemical formula to weigh. Supports element symbols, integer multipliers, arbitrarily nested parenthetical groups, and isotope labels D (deuterium) and T (tritium). Examples: 'H2O', 'C6H12O6', 'Ca(OH)…
compositionbooleanIf true, return the per-element percent composition by mass (count, mass subtotal, and percentage) alongside the total weight.
monoisotopicbooleanSelects which mass flavor is reported at the top level (weight / uncertainty / formatted): false (default) for the standard atomic weight, true for the monoisotopic mass. All three flavors (nominal, a…
uncertaintybooleanIf true, propagate the per-element NIST standard uncertainties in quadrature and report the result as value ± sigma.
unitstringOutput unit for the reported mass. Defaults to grams per mole.

isotope_distribution

Compute the natural isotopic pattern (isotope distribution) of a formula. Returns the set of isotopologue peaks a mass spectrometer would see: each peak's neutral ``mass`` (and ``mz`` when ``charge`` is non-zero), its intensity ``relative`` to the base peak, and its absolute ``abundance``. Also reports the ``monoisotopic_mass`` (most-abundant isotope of each element) and the ``average_mass``. Backed by the bundled NIST Atomic Weights and Isotopic Compositions database -- offline and deterministic. Peaks below ``threshold`` percent of the base peak are dropped; at…

ParameterTypeDescription
formula *stringChemical formula whose isotopic pattern to compute. Same syntax as molecular_weight_calculator: element symbols, integer multipliers, nested groups, isotope labels D/T, Unicode subscripts. Examples: '…
chargeintegerIon charge. 0 (default) reports neutral isotopologue masses. A non-zero n reports m/z for the [M+nH] ion (positive) or [M-nH] ion (negative): (mass +/- n*proton)/|n|.
groupingstring'unit' (default) collapses peaks to nominal integer masses (intensity-weighted centroid) -- the low-resolution spectrum a chemist eyeballs. 'exact' keeps every resolved isotopologue.
limitintegerMaximum number of peaks to return, most intense first.
thresholdnumberDrop peaks below this percent of the base (most intense) peak.

find_chemical_compound

Look up a chemical compound by name or molecular formula. Searches the bundled name<->formula database (a PubChem subset) first, then the writable user cache, then -- unless disabled -- the online fallback (PubChem, Wikidata, and, when an API key is set, EPA CompTox). A name resolves to its molecular formula(e); a formula resolves to the compound name(s) sharing it (isomers), ordered with the preferred name first. The direction is chosen by ``by``. Returns the ``query``, how it was interpreted (``interpreted_as``), the ``normalized`` Hill-system canonicalization of…

ParameterTypeDescription
query *stringCompound to look up -- either a name or a molecular formula. Names match the canonical name or any alias, case-insensitively, ignoring trailing registry annotations like '(9CI)' or '(USAN)'. Formulae…
bystringHow to read the query. 'auto' (default) treats a parseable formula as a formula and anything else as a name, falling back to the other direction on a miss. 'name' or 'formula' pin it.
limitintegerMaximum number of compounds to return for a formula lookup. Isomers share a formula; results are ordered with the most notable (preferred) name first.