Offline deterministic chemistry toolbox computing molecular weights, isotope distributions, and name-formula lookups with authoritative data.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Molecules.
Atoms and molecules for the artificial minds β trustworthy chemistry tools, computed for real and backed by authoritative data.
Atoms combine into molecules, and a language model asked about them should not have to recall facts from memory; it should compute answers it can trust. mcp-molecules is a growing toolbox for working with chemical elements and molecules β offline, deterministic, and backed by authoritative sources such as the NIST Atomic Weights and Isotopic Compositions database.
For example, it can already take a chemical formula and return its molecular weight: ask "what does CβHββOβ weigh?" and it parses the formula, looks every element up in NIST data, and computes the molar mass rather than guessing it. More molecule-oriented tools are planned.
You can ask things like:
molecular_weight_calculator β (one example of what's here today)
compute the molecular weight (molar mass) of a chemical formula. Parameters:
formula β element symbols, integer multipliers, arbitrarily nested
parentheses, and the isotope labels D (deuterium) and T (tritium).
Examples: H2O, C6H12O6, Ca(OH)2, Fe2(SO4)3, ((CH3)2CH)2, D2O, Tc.unit β g/mol (default), kg/mol, Da, u, or kDa.uncertainty β propagate the per-element NIST standard uncertainties in
quadrature and report value Β± sigma.monoisotopic β use the most abundant isotope of each element
(mass-spectrometry monoisotopic mass) instead of the standard atomic weight.composition β return the per-element percent composition by mass.isotope_distribution β compute the natural isotopic pattern (the peaks a
mass spectrometer would see) for a formula, with each peak's mass, m/z, and
relative intensity, plus the monoisotopic and average masses. Parameters:
formula β same syntax as molecular_weight_calculator.charge β 0 (default) reports neutral masses; a non-zero n reports m/z
for the [M+nH]/[M-nH] ion.threshold β drop peaks below this percent of the base peak (default 0.1).limit β maximum peaks to return, most intense first (default 10).grouping β unit (default) collapses to nominal integer masses; exact
keeps every resolved isotopologue.find_chemical_compound β look up a compound by name or molecular
formula. Searches a bundled offline database (a PubChem subset) and a writable
user cache first, then β unless disabled β an online fallback (PubChem,
Wikidata, and, when an API key is set, EPA CompTox), caching what it fetches.
Parameters:
query β a name (aspirin, acetylsalicylic acid) or a formula
(H2O, C9H8O4); formulae are matched in the Hill system.by β auto (default) guesses name vs. formula and falls back to the
other direction on a miss; name or formula pin the direction.limit β maximum compounds to return for a formula lookup (isomers share
a formula), preferred name first.The online fallback is on by default; set MCP_MOLECULES_ONLINE to a falsy
value (0/false/no/off) to keep lookups fully offline. The EPA CompTox
source additionally needs a free CCTE API key in MCP_MOLECULES_EPA_API_KEY;
without it that source is skipped.
info β server availability / version / environment health check.
A pre-commit hook in .githooks/ auto-formats and lints staged Python files
so the CI format gate can't be missed. Enable it once per clone:
Element masses come from the NIST Atomic Weights and Isotopic Compositions
database (https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl), which
is in the public domain. The data is bundled in the package as
mcp_molecules/data/nist_atomic_weights.json.
Sponsoring this project will keep it alive. If it is useful to you, please consider sponsoring.
The idea and the inspiration came from MΓ‘tyΓ‘s Mayer. The idea was excellent, the inspiration priceless.
GPL-3.0-or-later. See LICENSE. The bundled NIST data is public domain.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/laszlopere-mcp-molecules)<a href="https://allmcps.com/mcp/laszlopere-mcp-molecules"><img src="https://allmcps.com/api/badge/laszlopere-mcp-molecules?style=directory" alt="MCP Molecules on AllMCPs" /></a>