New advertisers: 50% off your first month with code FIRSTMONTHSee slots
lonepair avatar

Lone Pair

app.lonepair/lonepair

Draws publication-style chemical structures, reactions, and figures, and converts and analyses molecules.

tools
5
transport
HTTP
last updated
Nov 21, 2026
Open website

What it does

  • Draws figures with draw and render_reaction, from SMILES, InChI, molfiles, ChemDraw files, or compound names looked up on PubChem
  • Converts structures with convert between ChemDraw CDXML and CDX, molfile, SD, RXN, SMILES, InChI, and CML, and reports what each format cannot keep
  • Reports formula, molecular weight, exact mass, and reaction balance with analyze, and revises earlier figures with edit_drawing
  • Runs as a hosted endpoint with no account or key, with a per-caller rate limit, or locally over stdio; name lookups send the name to PubChem
  • Designed for chemists and scripts that need journal-ready schemes and figures without redrawing them by hand

Install

$ npx -y add-mcp https://mcp.lonepair.app/mcp --name lonepair -y

Adds the server to every agent config it finds in this project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http lonepair https://mcp.lonepair.app/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 5 tools

Verified live against the running server on Nov 22, 2026.

drawDraw a chemical structure or reaction as a publication-style figure (ChemDraw-like skeletal formula) with the Lone Pair editor's renderer. Give SMILES, reaction SMILES, InChI, a molfile, a ChemDraw file, or a compound name with name=true. Refused, with the reason, instead of d...7 params

Draw a chemical structure or reaction as a publication-style figure (ChemDraw-like skeletal formula) with the Lone Pair editor's renderer. Give SMILES, reaction SMILES, InChI, a molfile, a ChemDraw file, or a compound name with name=true. Refused, with the reason, instead of d...

Parameters* required
as_writtenboolean
Draw atoms that have too many bonds instead of refusing the structure. Default false.
dpinumber
PNG resolution, 300 by default; 600 for print.
formatstring
png (default; returned as an image), svg (returned as text), pdf or eps (returned as base64 in `data_base64`).one of png · svg · pdf · eps
inputstring
The structure as text: SMILES, reaction SMILES (reactants>agents>products), InChI, a molfile, RXN, SD file, CDXML, CML or Marvin text, or a Lone Pair drawing (the JSON from an earlier result, or th...
nameboolean
Set to true when `input` is a compound name (e.g. "aspirin") rather than a structure. The name is sent to PubChem to find the structure; this is the only network call the server makes. Default false.
opaqueboolean
White background instead of transparent (SVG, PNG). Default false.
stylestring
Journal style. acs = ACS Document 1996 (default), rsc = RSC, nature = Nature Reviews, slides = heavier lines for slides.one of acs · rsc · nature · slides
render_reactionDraw a reaction scheme from its parts: reactants joined by plus signs, an arrow with optional text above and below, then products. Each structure is SMILES, InChI or a molfile. For a reaction already written as reaction SMILES, use draw. Refused, with the reason, instead of dr...9 params

Draw a reaction scheme from its parts: reactants joined by plus signs, an arrow with optional text above and below, then products. Each structure is SMILES, InChI or a molfile. For a reaction already written as reaction SMILES, use draw. Refused, with the reason, instead of dr...

Parameters* required
abovestring
Text above the arrow: reagents or catalyst. Digits after letters become subscripts (H2SO4).
as_writtenboolean
Draw atoms that have too many bonds instead of refusing the structure. Default false.
belowstring
Text below the arrow: solvent, temperature, time.
dpinumber
PNG resolution, 300 by default; 600 for print.
formatstring
png (default; returned as an image), svg (returned as text), pdf or eps (returned as base64 in `data_base64`).one of png · svg · pdf · eps
opaqueboolean
White background instead of transparent (SVG, PNG). Default false.
products*array
Structures right of the arrow.
reactants*array
Structures left of the arrow.
stylestring
Journal style. acs = ACS Document 1996 (default), rsc = RSC, nature = Nature Reviews, slides = heavier lines for slides.one of acs · rsc · nature · slides
convertConvert a structure between formats: cdxml, cdx, mol, molV3, sdf, rxn, rxnV3, smiles, inchi, inchikey, cml, mrv, json (mol = V2000 molfile, molV3 = V3000, json = Lone Pair drawing). Reads ChemDraw CDXML and CDX. `notes` says what the target format cannot keep (for example dati...4 params

Convert a structure between formats: cdxml, cdx, mol, molV3, sdf, rxn, rxnV3, smiles, inchi, inchikey, cml, mrv, json (mol = V2000 molfile, molV3 = V3000, json = Lone Pair drawing). Reads ChemDraw CDXML and CDX. `notes` says what the target format cannot keep (for example dati...

Parameters* required
as_writtenboolean
Draw atoms that have too many bonds instead of refusing the structure. Default false.
inputstring
The structure as text: SMILES, reaction SMILES (reactants>agents>products), InChI, a molfile, RXN, SD file, CDXML, CML or Marvin text, or a Lone Pair drawing (the JSON from an earlier result, or th...
nameboolean
Set to true when `input` is a compound name (e.g. "aspirin") rather than a structure. The name is sent to PubChem to find the structure; this is the only network call the server makes. Default false.
to*string
The format to write.one of cdxml · cdx · mol · molV3 · sdf · rxn
analyzeFor each structure in the input: molecular formula, molecular weight, exact (monoisotopic) mass, elemental analysis, SMILES, InChI and InChIKey. For a reaction: each structure's role and whether atoms and charge balance (each drawn structure counted once). Calculated from the...3 params

For each structure in the input: molecular formula, molecular weight, exact (monoisotopic) mass, elemental analysis, SMILES, InChI and InChIKey. For a reaction: each structure's role and whether atoms and charge balance (each drawn structure counted once). Calculated from the...

Parameters* required
as_writtenboolean
Draw atoms that have too many bonds instead of refusing the structure. Default false.
inputstring
The structure as text: SMILES, reaction SMILES (reactants>agents>products), InChI, a molfile, RXN, SD file, CDXML, CML or Marvin text, or a Lone Pair drawing (the JSON from an earlier result, or th...
nameboolean
Set to true when `input` is a compound name (e.g. "aspirin") rather than a structure. The name is sent to PubChem to find the structure; this is the only network call the server makes. Default false.
edit_drawingChange a figure Lone Pair made earlier and get the new figure: add a structure to the right of it, change the journal style, or put a caption under it. Give the earlier result's `drawing`. Everything else in the drawing stays as it was. Moving or deleting atoms is not supporte...8 params

Change a figure Lone Pair made earlier and get the new figure: add a structure to the right of it, change the journal style, or put a caption under it. Give the earlier result's `drawing`. Everything else in the drawing stays as it was. Moving or deleting atoms is not supporte...

Parameters* required
addstring
A structure to add to the right of the drawing (SMILES, InChI, molfile).
add_is_nameboolean
True when `add` is a compound name to look up at PubChem. Default false.
captionstring
Text to put under the drawing.
dpinumber
PNG resolution, 300 by default; 600 for print.
drawingobject
The `drawing` object from an earlier result.
formatstring
png (default; returned as an image), svg (returned as text), pdf or eps (returned as base64 in `data_base64`).one of png · svg · pdf · eps
opaqueboolean
White background instead of transparent (SVG, PNG). Default false.
stylestring
Journal style. acs = ACS Document 1996 (default), rsc = RSC, nature = Nature Reviews, slides = heavier lines for slides.one of acs · rsc · nature · slides

Details

Website
lonepair.app/agents
Categories
Research & Academic, Design & UI/UX
Transport
HTTP
Registry
MCP registry, active
Resources
1
Tools verified
Nov 22, 2026

Similar to Lone Pair

More Research & Academic