{"name":"io.github.cyanheads/pubchem-mcp-server","slug":"cyanheads-pubchem-mcp-server","title":null,"description":"Search PubChem compounds, properties, safety data, bioactivity, and cross-references.","url":"https://mcp.market/server/cyanheads-pubchem-mcp-server","rating":null,"grade":"A","score":93,"certified":false,"status":"active","category":"search","tags":["search"],"presence":{"score":44,"stars":9,"forks":3,"downloads_week":868,"last_push_at":"2026-09-19T16:22:11.000Z","license":"Apache-2.0"},"uptime":{"percent":100,"checks":4,"ok":4,"last_checked_at":"2026-09-20T10:40:49.895Z","last_ok_at":"2026-09-20T10:40:49.895Z","latency_ms":268},"claimed":false,"transport":"mixed","callable_via_gateway":true,"default_price_micros":0,"repository":"https://github.com/cyanheads/pubchem-mcp-server","website":null,"version":"0.6.3","remotes":[{"type":"streamable-http","url":"https://pubchem.caseyjhand.com/mcp"}],"packages":[{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@cyanheads/pubchem-mcp-server","version":"0.6.3","runtimeHint":"bun","transport":{"type":"stdio"},"packageArguments":[{"value":"run","type":"positional"},{"value":"start:stdio","type":"positional"}],"environmentVariables":[{"description":"Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').","format":"string","default":"info","name":"MCP_LOG_LEVEL"}]},{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@cyanheads/pubchem-mcp-server","version":"0.6.3","runtimeHint":"bun","transport":{"type":"streamable-http","url":"http://localhost:3010/mcp"},"packageArguments":[{"value":"run","type":"positional"},{"value":"start:http","type":"positional"}],"environmentVariables":[{"description":"HTTP session mode: stateless, stateful, or auto. Stateless is sufficient for PubChem; auto resolves to stateful.","format":"string","default":"stateless","name":"MCP_SESSION_MODE"},{"description":"The hostname for the HTTP server.","format":"string","default":"127.0.0.1","name":"MCP_HTTP_HOST"},{"description":"The port to run the HTTP server on.","format":"string","default":"3010","name":"MCP_HTTP_PORT"},{"description":"The endpoint path for the MCP server.","format":"string","default":"/mcp","name":"MCP_HTTP_ENDPOINT_PATH"},{"description":"Authentication mode to use: 'none', 'jwt', or 'oauth'.","format":"string","default":"none","name":"MCP_AUTH_MODE"},{"description":"Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').","format":"string","default":"info","name":"MCP_LOG_LEVEL"}]}],"tools":[{"name":"pubchem_get_bioactivity","description":"Get a compound's bioactivity profile: which assays tested it, activity outcomes (Active/Inactive/Inconclusive), target identifiers (NCBI Gene ID, UniProt/GenBank accession), and quantitative values (IC50, EC50, Ki, etc.). Filter by outcome and/or a specific molecular target (NCBI Gene ID or protein accession) to focus the profile — e.g. \"is this compound active against target T?\".","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cid":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds."},"outcomeFilter":{"default":"all","description":"Filter by activity outcome. \"active\" shows only assays where the compound showed activity — most useful for understanding biological profile. Default: \"all\".","type":"string","enum":["active","inactive","all"]},"targetGeneId":{"description":"Filter to assays against this NCBI Gene ID. Obtain Gene IDs from pubchem_search_assays or the targetGeneId field of an unfiltered result here. Combine with outcomeFilter=\"active\" to answer \"is this compound active against target T?\".","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"targetAccession":{"description":"Filter to assays against this target protein accession (UniProt/GenBank), e.g. \"P35354\". Obtain accessions from pubchem_search_assays or the targetAccession field of an unfiltered result here.","type":"string"},"offset":{"default":0,"description":"Zero-based index of the first assay to return, applied after the outcome and target filters. Pass the nextOffset from a previous call to read the following page. Default: 0.","type":"integer","minimum":0,"maximum":9007199254740991},"maxResults":{"default":20,"description":"Max assay results to return per page (1-100). Well-studied compounds have thousands of records; use offset to reach the ones past this page. Default: 20.","type":"integer","minimum":1,"maximum":100}},"required":["cid"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_3d_structure","description":"Get a compound's default 3D conformer — atomic coordinates and bonds — for one CID. format=\"json\" (default) returns atoms and bonds parsed into structured fields; format=\"sdf\" returns the raw V2000 SDF text for passthrough to docking, rendering, or conformer tools. Optionally lists alternate conformer IDs. Not every compound has computed 3D coordinates (large molecules, mixtures, and some salts do not).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cid":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds."},"format":{"default":"json","description":"Output format. \"json\" (default) returns parsed atoms and bonds. \"sdf\" returns the raw V2000 SDF text for passthrough to other tools.","type":"string","enum":["sdf","json"]},"includeAlternateConformerIds":{"default":false,"description":"List the IDs of additional computed conformers beyond the default. Slower than the default response. Default: false.","type":"boolean"},"maxAtoms":{"description":"Cap the atoms returned in the format=\"json\" preview. atomCount always reports the full total; omitted rows are disclosed via the truncated/shownAtoms enrichment. Defaults to the first 200 atoms.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"maxBonds":{"description":"Cap the bonds returned in the format=\"json\" preview. bondCount always reports the full total; omitted rows are disclosed via the truncated/shownBonds enrichment. Defaults to the first 200 bonds.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"includeRawSdf":{"default":false,"description":"For format=\"sdf\", return the complete raw V2000 SDF even when it exceeds the safe line cap. Default false: an SDF longer than 500 lines is line-capped with disclosure. No effect when format=\"json\".","type":"boolean"}},"required":["cid"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_details","description":"Get detailed compound information by CID. Returns physicochemical properties (molecular weight, SMILES, InChIKey, XLogP, TPSA, etc.), optionally with a textual description (pharmacology, mechanism, therapeutic use), known synonyms, drug-likeness assessment (Lipinski/Veber rules), and/or pharmacological classification (FDA classes, MeSH classes, ATC codes). Accepts up to 100 CIDs per call.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cids":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"PubChem Compound IDs to fetch (1-100). Resolve from names/SMILES with pubchem_search_compounds."},"properties":{"description":"Properties to retrieve. Defaults to a core set: MolecularFormula, MolecularWeight, IUPACName, CanonicalSMILES, IsomericSMILES, InChIKey, XLogP, TPSA, HBondDonorCount, HBondAcceptorCount, RotatableBondCount, HeavyAtomCount, Charge, Complexity.","type":"array","items":{"type":"string","enum":["MolecularFormula","MolecularWeight","CanonicalSMILES","IsomericSMILES","InChI","InChIKey","IUPACName","Title","XLogP","ExactMass","MonoisotopicMass","TPSA","Complexity","Charge","HBondDonorCount","HBondAcceptorCount","RotatableBondCount","HeavyAtomCount","IsotopeAtomCount","AtomStereoCount","DefinedAtomStereoCount","UndefinedAtomStereoCount","BondStereoCount","DefinedBondStereoCount","UndefinedBondStereoCount","CovalentUnitCount","Volume3D"]}},"includeDescription":{"default":false,"description":"Include textual descriptions (pharmacology, mechanism, therapeutic use) attributed by source. Well-studied compounds have many overlapping summaries — paged via descriptionOffset/maxDescriptions. Fetched only for the first 10 CIDs in the batch; remaining CIDs return without descriptions and are listed in the response's skippedCids.","type":"boolean"},"descriptionOffset":{"default":0,"description":"Zero-based index of the first description to return within each compound's description list. The same offset is applied to every compound in the batch. Pass the nextDescriptionOffset from a previous call to read the following page. Default: 0.","type":"integer","minimum":0,"maximum":9007199254740991},"maxDescriptions":{"default":3,"description":"Max number of distinct description entries per compound per page (1-20). PubChem returns near-duplicate summaries from many depositors; duplicates are collapsed before this cap applies. Default: 3.","type":"integer","minimum":1,"maximum":20},"includeSynonyms":{"default":false,"description":"Fetch known names and synonyms (trade names, systematic names, registry numbers), paged via synonymOffset/maxSynonyms. Fetched for every found CID in the batch. Slower for large CID lists.","type":"boolean"},"synonymOffset":{"default":0,"description":"Zero-based index of the first synonym to return within each compound's synonym list. The same offset is applied to every compound in the batch. Pass the nextSynonymOffset from a previous call to read the following page. Default: 0.","type":"integer","minimum":0,"maximum":9007199254740991},"maxSynonyms":{"default":20,"description":"Max synonyms returned per compound per page (1-100). PubChem lists hundreds for common drugs; use synonymOffset to reach the ones past this page. Default: 20.","type":"integer","minimum":1,"maximum":100},"includeDrugLikeness":{"default":false,"description":"Compute drug-likeness assessment: Lipinski Rule of Five (MW, XLogP, HBD, HBA) and Veber rules (TPSA, rotatable bonds). Computed from the returned properties, so it adds no latency.","type":"boolean"},"includeClassification":{"default":false,"description":"Include pharmacological classification: FDA Established Pharmacologic Classes, mechanisms of action, MeSH classes, and ATC codes. Fetched only for the first 10 CIDs in the batch; remaining CIDs return without classification and are listed in the response's skippedCids.","type":"boolean"}},"required":["cids"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_image","description":"Fetch a 2D structure diagram (PNG image) for a compound by CID.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cid":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds."},"size":{"default":"large","description":"Image size: \"small\" (100x100) or \"large\" (300x300). Default: \"large\".","type":"string","enum":["small","large"]}},"required":["cid"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_interactions","description":"Get a compound's interaction data: drug-drug interactions (DrugBank), drug-food interactions, and chemical-target interactions (binding/activity from BindingDB, ChEMBL, and others). Each entry carries its originating source. Results are paged per kind, with the source-record total and the next offset reported for each. Richest for approved drugs; many compounds have no deposited interaction records.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cid":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds."},"kinds":{"default":["drug-drug"],"description":"Interaction kinds to fetch. \"drug-drug\" (interactions with other drugs), \"drug-food\" (dietary interactions), \"target\" (binding/activity against molecular targets). Default: [\"drug-drug\"].","minItems":1,"type":"array","items":{"type":"string","enum":["drug-drug","drug-food","target"]}},"offset":{"default":0,"description":"Zero-based start position within each requested kind, counted in source records rather than returned entries. The same offset applies to every kind in the call, and the kinds advance at different rates — when paging past the first page, request one kind per call and pass that kind's nextOffset. Default: 0.","type":"integer","minimum":0,"maximum":2147483646},"maxEntries":{"default":10,"description":"Max entries per kind per page (1-50). Well-studied drugs have a long tail of interactions; use offset to reach the ones past this page. Default: 10.","type":"integer","minimum":1,"maximum":50}},"required":["cid"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_safety","description":"Get GHS (Globally Harmonized System) hazard classification and safety data for one or more compounds by CID. Returns signal word, pictograms, hazard statements (H-codes), and precautionary statements (P-codes) per compound. Data sourced from PubChem depositors — source attribution included.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cids":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"PubChem Compound IDs to fetch safety data for (1-25). Resolve from names/SMILES with pubchem_search_compounds."}},"required":["cids"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_compound_xrefs","description":"Get external database cross-references for a compound: PubMed citations, patent IDs, gene/protein associations, registry numbers, and taxonomy IDs. Results are paged per type — capped at maxPerType with the total count reported; reach the IDs past a page with offset.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"cid":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds."},"xrefTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["RegistryID","RN","PubMedID","PatentID","GeneID","ProteinGI","TaxonomyID"]},"description":"Cross-reference types to retrieve. String IDs: RegistryID (DSSTox/EPA registry numbers), RN (CAS numbers), PatentID. Numeric IDs: PubMedID, GeneID (NCBI Gene), ProteinGI (legacy NCBI Protein GI), TaxonomyID."},"offset":{"default":0,"description":"Zero-based index of the first ID to return within each xref type. The same offset is applied to every requested type. Pass the nextOffset from a previous call to read the following page. Default: 0.","type":"integer","minimum":0,"maximum":9007199254740991},"maxPerType":{"default":50,"description":"Max IDs to return per xref type per page (1-500). A compound may have thousands of PubMed references; use offset to reach the ones past this page. Total count always reported. Default: 50.","type":"integer","minimum":1,"maximum":500}},"required":["cid","xrefTypes"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_get_summary","description":"Get descriptive summaries for PubChem entities by ID. Supports assays (AID), genes (Gene ID), proteins (UniProt accession), and taxonomy (Tax ID). Up to 10 per call.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"entityType":{"type":"string","enum":["assay","gene","protein","taxonomy"],"description":"Entity type. Determines ID format and returned fields."},"identifiers":{"minItems":1,"maxItems":10,"type":"array","items":{"anyOf":[{"type":"string","description":"String identifier (e.g. UniProt accession)."},{"type":"number","description":"Numeric identifier (e.g. AID, Gene ID, Tax ID)."}],"description":"Entity identifier — string or number depending on entityType."},"description":"Entity identifiers (1-10). Type depends on entityType:\n- assay: AID (number), e.g. [1000]\n- gene: Gene ID (number), e.g. [1956]\n- protein: UniProt accession (string), e.g. [\"P00533\"]\n- taxonomy: Tax ID (number), e.g. [9606]"}},"required":["entityType","identifiers"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_search_assays","description":"Find PubChem bioassays associated with a biological target. Search by gene symbol (e.g. \"EGFR\"), protein name, NCBI Gene ID, or UniProt accession. Returns a page of assay IDs (AIDs) — page past maxResults with offset — which can be explored further with pubchem_get_summary.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"targetType":{"type":"string","enum":["genesymbol","proteinname","geneid","proteinaccession"],"description":"Target identifier type. \"genesymbol\" and \"proteinname\" accept text names. \"geneid\" accepts NCBI Gene IDs. \"proteinaccession\" accepts UniProt accessions."},"targetQuery":{"type":"string","description":"Target identifier. Examples: \"EGFR\" (genesymbol), \"Epidermal growth factor receptor\" (proteinname), \"1956\" (geneid), \"P00533\" (proteinaccession)."},"offset":{"default":0,"description":"Zero-based index of the first AID to return. Pass the nextOffset from a previous call to read the following page. Default: 0.","type":"integer","minimum":0,"maximum":9007199254740991},"maxResults":{"default":50,"description":"Max AIDs to return per page (1-200). Popular targets may have thousands of assays; use offset to reach the ones past this page. Default: 50.","type":"integer","minimum":1,"maximum":200}},"required":["targetType","targetQuery"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"pubchem_search_compounds","description":"Search PubChem for chemical compounds by identifier (name, SMILES, or InChIKey, batched up to 25), molecular formula in Hill notation, substructure or superstructure containment, or 2D Tanimoto similarity. Returns a page of CIDs — reach matches past maxResults with offset. Optionally hydrate results with properties to avoid a follow-up pubchem_get_compound_details call.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"searchType":{"type":"string","enum":["identifier","formula","substructure","superstructure","similarity"],"description":"Search strategy. \"identifier\": name/SMILES/InChIKey lookup. \"formula\": molecular formula. \"substructure\": find compounds containing the query as a substructure. \"superstructure\": find compounds that are themselves substructures of the query. \"similarity\": 2D Tanimoto similarity to the query."},"identifierType":{"description":"Required for identifier search. Type of chemical identifier: \"name\", \"smiles\", or \"inchikey\".","type":"string","enum":["name","smiles","inchikey"]},"identifiers":{"description":"Required for identifier search. Array of identifiers to resolve (1-25). Examples: [\"aspirin\", \"ibuprofen\"] for name, [\"CC(=O)OC1=CC=CC=C1C(=O)O\"] for SMILES, [\"BSYNRYMUTXBXSQ-UHFFFAOYSA-N\"] for inchikey (27-char block format).","minItems":1,"maxItems":25,"type":"array","items":{"type":"string"}},"formula":{"description":"Required for formula search. Molecular formula in Hill notation (e.g. \"C6H12O6\", \"CaH2O2\").","type":"string"},"allowOtherElements":{"default":false,"description":"Formula search only. When true, includes compounds with additional elements beyond the formula.","type":"boolean"},"query":{"description":"Required for substructure/superstructure/similarity searches. A SMILES string (e.g. \"CC(=O)O\") or PubChem CID as a string (e.g. \"2244\").","type":"string"},"queryType":{"description":"Required for structure/similarity searches. Format of the query: \"smiles\" or \"cid\".","type":"string","enum":["smiles","cid"]},"threshold":{"default":90,"description":"Similarity search only. Minimum Tanimoto similarity (70-100). 90+ for close analogs, 70-80 for scaffold hops. Default: 90.","type":"number","minimum":70,"maximum":100},"offset":{"default":0,"description":"Zero-based index of the first CID to return. Pass the nextOffset from a previous call to read the following page. Identifier lookups resolve every match up front, so paging them is free; formula, substructure, superstructure, and similarity searches have to ask PubChem for offset + maxResults records to reach a page, so deep pages cost progressively more upstream — hence the 10000 ceiling. Default: 0.","type":"integer","minimum":0,"maximum":10000},"maxResults":{"default":20,"description":"Maximum CIDs to return per page (1-200). Use offset to reach matches past this page. Default: 20.","type":"integer","minimum":1,"maximum":200},"properties":{"description":"Optional: fetch these properties for each result, avoiding a follow-up details call. E.g. [\"MolecularFormula\", \"MolecularWeight\", \"CanonicalSMILES\"].","type":"array","items":{"type":"string","enum":["MolecularFormula","MolecularWeight","CanonicalSMILES","IsomericSMILES","InChI","InChIKey","IUPACName","Title","XLogP","ExactMass","MonoisotopicMass","TPSA","Complexity","Charge","HBondDonorCount","HBondAcceptorCount","RotatableBondCount","HeavyAtomCount","IsotopeAtomCount","AtomStereoCount","DefinedAtomStereoCount","UndefinedAtomStereoCount","BondStereoCount","DefinedBondStereoCount","UndefinedBondStereoCount","CovalentUnitCount","Volume3D"]}}},"required":["searchType"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}}],"scan":{"score":93,"grade":"A","scanned_at":"2026-09-19T20:04:53.720Z","report":{"scannerVersion":"0.1.5","scannedAt":"2026-09-19T20:04:53.684Z","components":{"code":{"score":25,"max":25,"notes":["49 source files scanned","49 source files scanned"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 987ms"]},"poisoning":{"score":15,"max":15,"notes":["10 tool descriptions checked"]},"auth":{"score":10,"max":15,"notes":["open endpoint, read-only tools"]},"maintenance":{"score":15,"max":15,"notes":["last push 0 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[],"inputs":{"probes":[{"url":"https://pubchem.caseyjhand.com/mcp","reachable":true,"authRequired":false,"latencyMs":987,"serverInfo":{"name":"pubchem-mcp-server","version":"0.6.3"}}],"packages":[{"registryType":"npm","identifier":"@cyanheads/pubchem-mcp-server","version":"0.6.3","found":true,"license":"Apache-2.0","hasInstallScripts":false,"dependencyCount":3,"publishedAt":"2026-09-19T16:26:26.581Z","repositoryUrl":"git+https://github.com/cyanheads/pubchem-mcp-server.git","weeklyDownloads":434},{"registryType":"npm","identifier":"@cyanheads/pubchem-mcp-server","version":"0.6.3","found":true,"license":"Apache-2.0","hasInstallScripts":false,"dependencyCount":3,"publishedAt":"2026-09-19T16:26:26.581Z","repositoryUrl":"git+https://github.com/cyanheads/pubchem-mcp-server.git","weeklyDownloads":434}],"repo":{"found":true,"owner":"cyanheads","repo":"pubchem-mcp-server","archived":false,"pushedAt":"2026-09-19T16:22:11Z","stars":9,"forks":3,"openIssues":4,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/10339515?v=4","ownerCreatedAt":"2014-12-29T13:01:12Z","license":"Apache-2.0"},"icon":{"url":"https://avatars.githubusercontent.com/u/10339515?v=4&s=128","source":"registry"},"presence":{"stars":9,"forks":3,"downloadsWeek":868,"license":"Apache-2.0","lastPushAt":"2026-09-19T16:22:11.000Z","score":44}}}},"grade_history":[],"reviews":[]}