mcp-molecules
v0.3.1An 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…
| Parameter | Type | Description |
|---|---|---|
formula * | string | Chemical 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)… |
composition | boolean | If true, return the per-element percent composition by mass (count, mass subtotal, and percentage) alongside the total weight. |
monoisotopic | boolean | Selects 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… |
uncertainty | boolean | If true, propagate the per-element NIST standard uncertainties in quadrature and report the result as value ± sigma. |
unit | string | Output 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…
| Parameter | Type | Description |
|---|---|---|
formula * | string | Chemical 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: '… |
charge | integer | Ion 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|. |
grouping | string | 'unit' (default) collapses peaks to nominal integer masses (intensity-weighted centroid) -- the low-resolution spectrum a chemist eyeballs. 'exact' keeps every resolved isotopologue. |
limit | integer | Maximum number of peaks to return, most intense first. |
threshold | number | Drop 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Compound 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… |
by | string | How 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. |
limit | integer | Maximum number of compounds to return for a formula lookup. Isomers share a formula; results are ordered with the most notable (preferred) name first. |