pubchem-mcp-server
MCP server by cyanheads Community
Searches the PubChem chemical database for compounds, properties, GHS safety data, bioactivity, and cross-references via MCP. Suited to researchers who need chemical data inside an AI assistant.
Install pubchem-mcp-server
Built from the published package, never by AI.
claude mcp add pubchem-mcp-server -- npx -y @cyanheads/pubchem-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pubchem-mcp-server": {
"args": [
"-y",
"@cyanheads/pubchem-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pubchem-mcp-server": {
"args": [
"-y",
"@cyanheads/pubchem-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pubchem-mcp-server": {
"args": [
"-y",
"@cyanheads/pubchem-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pubchem-mcp-server -- npx -y @cyanheads/pubchem-mcp-server{
"mcpServers": {
"pubchem-mcp-server": {
"args": [
"-y",
"@cyanheads/pubchem-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pubchem-mcp-server npx -y @cyanheads/pubchem-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pubchem-mcp-server block.
About
PubChem MCP server gives AI assistants access to the PubChem chemical database over MCP. It searches compounds by name, SMILES, InChI, InChIKey, formula, substructure, or 2D similarity. It returns physicochemical properties, descriptions, GHS safety data, bioactivity profiles, external cross-references, 2D and 3D structures, and summaries for assays, genes, proteins, and taxonomy.
The server runs over STDIO or Streamable HTTP and is published on npm as @cyanheads/pubchem-mcp-server. It also exposes compound and assay records as resources and ships an agent skill called pubchem-guide with notes on identifier chains and reading activity data. It suits people who need PubChem data inside an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
pubchem_search_compoundsSearches compounds by identifier, formula, structure, similarity, or bioassay.pubchem_get_compound_detailsGets physicochemical properties, descriptions, synonyms, and drug-likeness for CIDs.pubchem_get_compound_imageFetches a 2D structure diagram as a PNG for a compound CID.pubchem_get_compound_3d_structureFetches a 3D conformer as parsed JSON or raw SDF text.pubchem_get_compound_xrefsGets external cross-references such as PubMed, patents, genes, and CAS numbers.pubchem_get_compound_safetyGets GHS signal words, pictograms, H-codes, and P-codes for compounds.pubchem_get_bioactivityGets a compound's assay results, targets, activity values, and cited PubMed IDs.pubchem_get_compound_interactionsGets drug-food interactions and molecular targets named by a compound's assays.pubchem_search_assaysFinds bioassays by gene symbol, protein name, Gene ID, or UniProt accession.pubchem_get_summaryGets summaries for assays, genes, proteins, and taxonomy identifiers.
What you need
- npx (npm package @cyanheads/pubchem-mcp-server)
| Setting | Needed | What it is |
|---|---|---|
MCP_Environment variable | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search PubChem for compounds similar to aspirin by 2D similarity
- Get the GHS hazard classification for CID 2244
- Show the bioactivity profile of compound CID 2519 for active outcomes
Good to know
- Compound details cover the first 10 CIDs for descriptions and classification, the rest are listed in skippedCids.
- ProteinGI cross-references currently return no data from PubChem.
- The drug-drug interaction kind uses PubChem's SDQ service, which refuses automated requests, so it fails.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pubchem-mcp-server
All alternatives →Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.
RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.
ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.
Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.
ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.
Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.
Compare with Mirobody, Ruview or tooluniverse
pubchem-mcp-server: common questions
What does the pubchem-mcp-server do?
It gives AI assistants tools to search PubChem for compounds and retrieve properties, safety data, bioactivity, cross-references, and structures. The source describes it as a PubChem client exposed over MCP.
Does it work with a hosted server?
The README lists a public hosted server at pubchem.caseyjhand.com/mcp. It also supports STDIO and Streamable HTTP transports.
Can it return 3D molecular structures?
Yes. The pubchem_get_compound_3d_structure tool returns atoms and bonds as JSON or the raw V2000 SDF text, and reports a no_3d_structure error when PubChem has no coordinates.
How do I install pubchem-mcp-server?
In Claude Code run claude mcp add pubchem-mcp-server -- npx -y @cyanheads/pubchem-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is pubchem-mcp-server the official server?
pubchem-mcp-server is a community project by cyanheads, not verified by a company domain.
Is pubchem-mcp-server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is pubchem-mcp-server safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pubchem-mcp-server?
Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.
Does pubchem-mcp-server work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
