molecule-mcp
Query US drug records from published FDA, CMS, VA, and NLM files, cited to exact file and row (source@edition/file:row), with deterministic server-signed receipts (mlin_rcpt_v1...).
Primary connection: Direct Streamable HTTP (zero install)
Connect directly to the stateless HTTPS endpoint with no local package required:
- Endpoint:
https://moleculelineage.com/api/mcp(POSTJSON-RPC 2.0;GETreturns discovery JSON) - Server card:
https://moleculelineage.com/api/mcp/server-card - Tool guide & schemas:
https://moleculelineage.com/agent-onboarding/SKILL.md - Interactive playground & receipt checker: Molecule Console
Standard .mcp.json (mcpServers HTTP transport):
{
"mcpServers": {
"molecule": {
"type": "http",
"url": "https://moleculelineage.com/api/mcp"
}
}
}
Workspace servers JSON:
{
"servers": {
"molecule": {
"type": "http",
"url": "https://moleculelineage.com/api/mcp"
}
}
}
TOML (config.toml):
[mcp_servers.molecule]
url = "https://moleculelineage.com/api/mcp"
Direct curl check (keyless):
curl -fsS https://moleculelineage.com/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"resolve_ndc","arguments":{"ndc":"00003-0894-21"}}}'
For commercial access, attach Authorization: Bearer mlin_lic_v1... to each POST.
Optional stdio-to-HTTPS bridge (molecule-mcp)
For MCP clients that only launch a local stdio process, install uv and run molecule-mcp (or molecule-mcp serve). With zero local snapshot configured, molecule-mcp acts as a zero-dependency stdio-to-HTTPS bridge to https://moleculelineage.com/api/mcp, sending User-Agent: molecule-client/1.0 and forwarding MOLECULE_API_KEY (or MOLECULE_LICENSE_KEY / --api-key) as Authorization: Bearer ... when set.
{
"mcpServers": {
"molecule": {
"command": "uvx",
"args": ["molecule-mcp"]
}
}
}
molecule-mcp serve --remote https://your-host.example/api/mcp targets an alternate HTTPS endpoint.
Live /api/mcp tools
| Tool | Access | Description |
|---|---|---|
find_drug(query, limit?) |
Keyless (5,000-NDC starter subset; full catalog with key) |
Search FDA ingredient and label (brand) names. Returns matching federal ingredient names with file-and-row citations. |
resolve_ndc(ndc) |
Keyless (5,000-NDC starter subset; full catalog with key) |
Resolve a US package NDC (hyphenated 10-digit or 11-digit, always a string) to its FDA NDC Directory listing: package name, application number, and file-and-row citations. |
get_price_benchmark(ndc) |
Commercial (data_feed or audit_advisor) |
Get the CMS retail NADAC per-unit benchmark for an NDC in the edition served, with citations. A pharmacy acquisition cost survey, not a patient price. |
get_equivalents(ndc) |
Commercial (data_feed or audit_advisor) |
List the FDA Orange Book A-rated therapeutic equivalence entries for the product behind an NDC, with TE codes and citations. |
diagnose_ndc_cohort(ndcs, profile?) |
Commercial (data_feed or audit_advisor) |
Assess question fit and benchmark availability for up to 12 de-identified NDCs in the edition served (NADAC match, VA FSS only, active FDA shortage, ambiguous 10-digit NDC). Profiles: strict_federal@1 (default) and amplified_discovery@1. |
verify_receipt(receipt, payload?) |
Keyless (any Molecule receipt) | Check the cryptographic signature on a Molecule outcome receipt (mlin_rcpt_v1...) and, when payload is provided, confirm that its canonical SHA-256 digest matches the receipt. |
Pass NDCs as strings to preserve leading zeros. An unhyphenated 10-digit NDC can map to multiple 11-digit forms (ambiguous_ndc10: true); supply the hyphenated package code rather than guessing.
In keyless mode (30 requests/minute per IP), find_drug and resolve_ndc search a 5,000-NDC small-molecule starter subset (excluding FDA Purple Book biologics). A zero-hit response carries index_scope: "starter_subset_5000_ndc" and scope_note so callers never mistake a subset miss for a nonexistent drug.
Catalog scope and plans (USD)
| Plan | Price | /api/mcp commercial tools |
Scope |
|---|---|---|---|
| Keyless Lookup & Starter API | $0 |
No (find_drug, resolve_ndc starter subset + verify_receipt) |
83,000+ cited pages, eligible table CSVs, 500-NDC audit sample, 25-family screener preview, and keyless starter API (30 req/min). |
| Screener Pro | $79/month |
No | Interactive cross-catalog screener, threshold filters, watchlists, and CSV export across 11,300+ exportable small-molecule versions plus view-only biologic browsing. |
| Single Audit Pass | $299 one-time (30 days) |
No | Single employer plan evaluation across 46,500+ NDCs, 850,000+ dated CMS NADAC intervals, and 1,150+ 12-quarter Part B J-code ASP rates, with cited CSV export and paginated Board PDF. |
| Commercial Data Feed | $299/month |
Yes (all 6 tools) | Full-catalog signed /api/mcp lookups plus 38 zstd Parquet views, 2,500+ dated ingredient JSON documents, and SHA256SUMS manifests. |
| Advisor Unlimited | $599/month |
Yes (all 6 tools) | Multi-client advisory practice — unlimited client evaluations and white-label paginated Board PDFs across 46,500+ NDCs, plus all six signed /api/mcp tools. |
FDA Purple Book biologic rows are view-only on web pages and excluded from /api/mcp and bulk Parquet/API exports pending FDA reuse confirmation.
Deterministic mlin_rcpt_v1 receipt checking
Every /api/mcp response returns a deterministic mlin_rcpt_v1.<digest>.<signature> receipt covering receipt_meta (tool, arguments, release_id), the answer body, and any commitment_hmac inside the JSON, while leaving receipt and top-level issued_at outside the digest. Identical calls against the same release return byte-identical receipts.
Check canonical digest binding locally from the CLI or Python, or call keyless verify_receipt(receipt, payload) on /api/mcp to check both the digest and the server's HMAC signature:
molecule-mcp verify-receipt "mlin_rcpt_v1.<digest>.<signature>" --payload response.json
from molecule_mcp import verify_receipt
outcome = verify_receipt(response["receipt"], response)
assert outcome["digest_verified"] is True
Air-gapped Commercial Data Feed snapshots
Commercial Data Feed subscribers ($299/month) can mirror checksummed Parquet views and ingredient JSON documents on a connected host, then serve them offline with --snapshot-dir (alias: --api-dir, or MOLECULE_SNAPSHOT_DIR / MOLECULE_MCP_API_DIR):
export MOLECULE_API_KEY="mlin_lic_v1..."
uvx molecule-mcp sync-commercial --dest ./snapshot
uvx molecule-mcp doctor --snapshot-dir ./snapshot
uvx --from 'molecule-mcp[parquet]' molecule-mcp serve --snapshot-dir ./snapshot
The retired static starter tarball (/data/molecule-mcp-starter.tar.gz) is no longer distributed; use the keyless HTTPS endpoint (molecule-mcp or https://moleculelineage.com/api/mcp) for zero-install starter lookups.
Offline snapshot mode exposes find_drug, resolve_ndc, get_equivalents, get_price(ndc, as_of?), get_changes(id, since, until?), and cite_fact(fact_table, fact_id). To opt into offline BLA lookups using your own local FDA Purple Book CSV, pass --purple-csv /path/to/local.csv alongside --snapshot-dir.
License
Apache-2.0 covers this client package (stdio-to-HTTPS bridge, receipt helper, and air-gapped snapshot reader). The hosted service runs the private engine and returns cited outcomes with signed receipts. Data and service terms
Metadata
Release files for molecule-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| molecule_mcp-0.1.1.tar.gz | 31.6 kB | Without provenance | Details for molecule_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| molecule_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for molecule_mcp-0.1.1-py3-none-any.whl |
Total release size: 66.6 kB
Release files / molecule_mcp-0.1.1.tar.gz
| Download URL | molecule_mcp-0.1.1.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12f9bf49632e003b678fee2687d036740d71a8052a325526213de42c999c0434
|
|
BLAKE2b-256 checksum How to use checksums |
f34b420669e662ee3a0d8bbf98db72dbcee45f767d06e4218f66204a841cb27f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / molecule_mcp-0.1.1-py3-none-any.whl
| Download URL | molecule_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a10d91f45858476a655772ad128f86ea23412ba52234b61c2940bf998aabff51
|
|
BLAKE2b-256 checksum How to use checksums |
2325c5d5818866be7ed2f49bfc9c670bee20804a1b84556727f48be1e1863fd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for molecule-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.