PubChem Finder
Search PubChem by chemical structure from your
terminal or from Claude. PubChem Finder builds a local fingerprint index of PubChem (all
of it, or the slice you need) for exact similarity and substructure search with no rate
limits, wraps PubChem's live services for names, safety data and bioassays, and adds RDKit
chemistry: structure drawings, med-chem triage and descriptors. Local search works from the
first question, on a built-in set of 1,932 FDA-approved drugs, until you build a PubChem
index. It runs as a command-line tool, a Python library and an
MCP server for Claude Desktop, Claude Code and other MCP
clients.


Real searches over the first 444,794 compounds of PubChem, rendered from the index the
project's real-data workflow builds: similarity hits for aspirin with the atoms that differ
from it highlighted, then hits for an aryl sulfonamide SMARTS with the match highlighted.
MP4 version.
Why this one
Other PubChem tools, MCP servers and hosted connectors included, forward questions to
PubChem's web API. That works for looking compounds up, but structure search through the
API is rate-limited, times out on generic queries and returns unscored samples. PubChem
Finder also keeps a local index:
- Exact, scored similarity search over every indexed compound (ECFP4 Tanimoto by
default) in milliseconds, using FPSim2, the engine
behind ChEMBL's similarity search.
- Local substructure search with SMILES or SMARTS: a fingerprint screen, then an
atom-by-atom match, so every hit is a real match.
- Offline chemistry with RDKit: descriptors, standardization, PAINS/Brenk/NIH alerts,
QED, synthetic accessibility, and drawings that show what changed between analogues.
- PubChem knowledge, cited: synonyms and CAS numbers, cross-references, GHS
classification, pharmacology, toxicity and bioassay summaries, each with its source.
No database server, no Docker: the index is a pair of files in your data directory.
Use it from Claude
Requires uv, which fetches
Python and everything else on first run.
Claude Code:
claude mcp add pubchem-finder -- uvx --python 3.14 pubchem-finder mcp
or as a plugin, which also works in Cowork:
/plugin install pubchem-finder --marketplace MysterionRise/pubchem-finder
Claude Desktop (Settings, Developer, Edit Config, then restart Claude):
{
"mcpServers": {
"pubchem-finder": {
"command": "uvx",
"args": ["--python", "3.14", "pubchem-finder", "mcp"]
}
}
}
Then ask things like:
- "What is the molecular weight and XLogP of caffeine? Is it Lipinski-compliant?"
- "Is ibuprofen hazardous? What does its GHS label say? Cite the sources."
- "What are the main targets of celecoxib in PubChem bioassays?"
- "Show me the closest analogues of aspirin and highlight what changed."
- "Does this compound have any PAINS alerts?
O=C1C(=Cc2ccccc2)SC(=S)N1"
- "Find the 20 compounds most similar to ibuprofen" or "Which indexed compounds contain an
aryl sulfonamide? Draw a few with the group highlighted." (local search: the demo set of
FDA-approved drugs until you build an index)

draw_molecules with highlight="smarts": eight sulfonamide drugs with the match for
[NX3][SX4](=O)(=O)c highlighted, as Claude shows it inline.