API & MCP
Everything a person can do on SMILES to Formula, Molar Mass & Properties, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://prooflinesmilesinfo.usefulweb.app/api/v1/calculate– run SMILES to Formula, Molar Mass & PropertiesGET https://prooflinesmilesinfo.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
SMILES to Formula, Molar Mass & Properties
Paste a SMILES string, a MOL/SDF block or XYZ coordinates and get the molecular formula, the molar mass from the IUPAC standard atomic weights with its uncertainty, the exact (monoisotopic) mass, ring and aromatic-ring counts, hydrogen-bond donors and acceptors, rotatable bonds, a canonical SMILES, a 2-D structure drawing and a MOL file. Part of the Proofline math notebook and its Molecule Lab.
| Field | Type | Default | Description |
|---|---|---|---|
structure (required) | textarea | "CC(=O)Oc1ccccc1C(=O)O" | Structure. A SMILES string (CCO, c1ccccc1, [NH4+]), a MOL/SDF V2000 block or XYZ coordinates. SMILES subset: organic atoms B C N O P S F Cl Br I and aromatic b c n o p s, bracket atoms with isotope, hydrogens and charge, bonds - = # :, branches, ring numbers and %nn, dots between parts. Stereo marks are read but not used. |
format | select (auto, smiles, mol, xyz) | "auto" | Format |
Example request
Aspirin (acetylsalicylic acid)
curl -X POST https://prooflinesmilesinfo.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"structure":"CC(=O)Oc1ccccc1C(=O)O"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://prooflinesmilesinfo.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
proofline_smiles_info - Local stdio connector:
node src/mcp-stdio.ts --tool=proofline-smiles-info
{
"mcpServers": {
"proofline-smiles-info": { "type": "http", "url": "https://prooflinesmilesinfo.usefulweb.app/mcp" }
}
}