4,500+ servers built on MCP Fusion
Vinkius

PubChem PUG REST API MCP. Audit compounds and formulas by CID or name instantly.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

PubChem PUG REST API MCP on Cursor AI Code Editor MCP Client PubChem PUG REST API MCP on Claude Desktop App MCP Integration PubChem PUG REST API MCP on OpenAI Agents SDK MCP Compatible PubChem PUG REST API MCP on Visual Studio Code MCP Extension Client PubChem PUG REST API MCP on GitHub Copilot AI Agent MCP Integration PubChem PUG REST API MCP on Google Gemini AI MCP Integration PubChem PUG REST API MCP on Lovable AI Development MCP Client PubChem PUG REST API MCP on Mistral AI Agents MCP Compatible PubChem PUG REST API MCP on Amazon AWS Bedrock MCP Support

Just plug in your AI agents and start using Vinkius.

The PubChem PUG REST API MCP Server lets your AI agent access authoritative molecular data from PubChem, a resource managed by the National Library of Medicine.

It allows you to audit chemical compounds, retrieve detailed metadata, and query specific formulas and Compound Identifiers (CIDs) without ever visiting a scientific portal.

You can search for CIDs using keywords or look up full compound details instantly just by providing a name or an ID.

What your AI agents can do

Check api status

Verifies if the PubChem PUG REST service is currently running and accessible.

Get compound by cid

Retrieves detailed information for a chemical compound using its specific CID number.

Get compound by name

Gets comprehensive details and formulas for a chemical compound when you provide its name.

+ 1 more capabilities included
Validate API Health

Checks the operational status of the PubChem PUG REST service to ensure data retrieval won't fail.

Lookup by Compound CID

Retrieves all technical metadata, formulas, and details for a chemical compound when provided with its unique Identifier (CID).

Lookup by Common Name

Finds detailed records, including molecular formulas and IUPAC names, using the known name of a chemical compound.

Search for CIDs via Keyword

Scans the database to find multiple Compound Identifiers (CIDs) that match a general keyword or search phrase.

Retrieve Technical Specifications

Access high-resolution properties and formulas needed for scientific auditing of any chemical record.

Supported MCP Clients

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients
Free for Subscribers

Waiting for input…

AI Agent

PubChem PUG REST API: 4 Tools for Molecular Data Access

Use these tools to check service status, find compound details by name or ID, and search the PubChem database using keywords.

check019d8471

check api status

Verifies if the PubChem PUG REST service is currently running and accessible.

get019d8471

get compound by cid

Retrieves detailed information for a chemical compound using its specific CID number.

get019d8471

get compound by name

Gets comprehensive details and formulas for a chemical compound when you provide its name.

search019d8471

search compound cids

Searches the database to find multiple CIDs that match a given keyword or search term.

Choose How to Get Started

Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.

Build Your Own

Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.

  • Import from OpenAPI, Swagger, or YAML specs
  • Create Agent Skills with progressive disclosure
  • Deploy to edge with MCPFusion framework
  • Built in DLP, auth, and compliance on every call
  • Real time usage dashboard and cost metering
  • Publish to catalog or keep private
Start building

Make Your AI Do More

Start with PubChem PUG REST API, then connect any of our 4,700+ other servers whenever your AI needs more. One click, no limits.

  • Use this MCP plus 4,700+ others, all in one place
  • Add new capabilities to your AI anytime you want
  • Every connection is secured and compliant automatically
  • Track usage and costs across all your servers
  • Works with Claude, ChatGPT, Cursor, and more
  • New servers added to the catalog every week

What you can do with this MCP connector

Listen up. This server hooks your AI agent right into PubChem, which is basically the gold standard for molecular data—it’s run by the National Library of Medicine. It lets your agent audit chemical compounds, pull deep metadata, and query specific formulas or Compound Identifiers (CIDs) without you ever having to visit a clunky scientific website yourself.

You're getting direct access to authoritative chemistry info.

When you use this tool set, your agent doesn’t just search; it performs structured chemical audits. It handles the complex stuff so you don't have to babysit databases manually. This speeds up your workflow big time.

Here’s how your AI client uses the tools:

First, before running anything else, your agent checks the service health using check_api_status. That confirms whether the PubChem PUG REST service is actually online and ready to spit out data. You don't want a failed retrieval because the endpoint was down.

To pull specific details on an already known compound, you’ve got two main options. If you know the exact Compound Identifier (CID), you use get_compound_by_cid. This tool retrieves all the technical metadata, molecular formulas, and detailed specs for that chemical record. On the other hand, if you only have a common or IUPAC name—say, 'Aspirin'—you use get_compound_by_name.

That gives your agent comprehensive records and formulas based purely on the name you feed it.

If you don’t know which CID to start with, you search first. You run search_compound_cids by giving it a general keyword or phrase. This scans the whole database and finds multiple CIDs that match your search term.

Knowing these tools lets your agent handle everything from basic lookups to deep technical auditing. It gathers high-resolution properties and formulas you need when you’re verifying any chemical record. You can find detailed records, including IUPAC names and molecular formulas, using the known name of a compound via get_compound_by_name. For full scientific verification, all available details for a compound are pulled through get_compound_by_cid once that unique ID is provided.

If you just need to know which CIDs exist for a term—like 'glucose' or something else—you use search_compound_cids to get that list of matching identifiers.

This setup makes sure your agent never gets stuck waiting on another person to run the search, giving it immediate access to core molecular data. You just hook up your preferred AI client and point it at this server. It handles all the necessary calls—status checks, name lookups, CID lookups, and keyword searches—so you're always working with verified chemical information.

How PubChem PUG REST API MCP Works

  1. 1 Subscribe to the PubChem PUG REST API server.
  2. 2 Connect your AI client (e.g., Claude, Cursor) using the MCP protocol.
  3. 3 Ask your agent to run a tool—for example, request get_compound_by_name for 'Aspirin' and provide the name as input.

The bottom line is that you get verified chemical data pushed directly into your workflow without needing to open or navigate a web portal.

Who Is PubChem PUG REST API MCP For?

Anyone who regularly deals with molecular structure, compound IDs, and scientific literature needs this. This is for the computational chemist stuck in manual database lookups, the pharmacologist verifying drug targets, or the research scientist needing rapid data cross-referencing across multiple sources.

Computational Chemist

Uses search_compound_cids to screen for potential scaffolds and then uses get_compound_by_cid to pull full metadata for synthesis planning.

Pharmacologist

Runs get_compound_by_name on drug candidates to verify their molecular formulas or check against known metabolic pathways, saving hours of manual searching.

Biomedical Research Scientist

Needs quick verification. They use the agent to automatically audit compound details by name and CID during preliminary data review.

What Changes When You Connect

  • Verify compound details on the fly. Instead of opening a web portal, use get_compound_by_name to pull IUPAC names and molecular structures directly into your chat window.
  • Accelerate discovery with broad searches. Use search_compound_cids when you only know a general chemical class; it returns a list of potential CIDs for follow-up.
  • Guarantee data integrity. Always run check_api_status first to ensure the entire chemical research workflow is operational before starting an audit.
  • Deep dive into specifics. When you have a target CID, running get_compound_by_cid pulls every single technical property—from formula to metadata—in one go.
  • Automate data collection. Your agent handles the tedious process of cross-referencing chemical identifiers (CIDs) and common names, giving you structured results instantly.

Real-World Use Cases

01

Auditing a Formula Sheet

A chemist has a physical list of 50 compounds. Instead of manually searching for each on PubChem's website, they ask their agent to run get_compound_by_name on the entire batch. The agent processes them all and returns a structured list detailing the molecular formula for every single entry.

02

Following an Unknown Lead

A researcher finds a compound mentioned in an old paper but doesn't have its CID. They use search_compound_cids with the vague keyword from the paper. The agent returns several potential CIDs, allowing the researcher to then run get_compound_by_cid on the most likely candidate.

03

Cross-Checking IDs

You receive two different sources for a compound—one gives the common name, and the other gives the CID. You ask your agent to run both get_compound_by_name and get_compound_by_cid. The resulting data confirms they match, giving you high confidence in the identity.

04

Building a Data Pipeline

Before starting research, you ask your agent to run check_api_status just to confirm system uptime. This simple step ensures that subsequent complex data retrieval calls using get_compound_by_cid won't fail mid-process.

The Tradeoffs

Searching only by name

Asking the agent for details on 'glucose' but expecting a structured list of CIDs and formulas. The initial query might miss variations or common synonyms.

First, run search_compound_cids with the keyword 'glucose'. This provides several matching identifiers (like 5793). Then, take those specific CIDs and use get_compound_by_cid to get the full, guaranteed metadata for each one.

Bypassing status checks

Starting a massive audit of compounds using get_compound_by_cid when the API server is undergoing maintenance or hits a temporary rate limit.

Always start by calling check_api_status. This single step tells you if the whole system is up. If it fails, don't waste time on compound lookups.

Treating tools as synonyms

Assuming that running get_compound_by_name will always find a CID when the name is slightly misspelled or incomplete.

If you suspect an error, run search_compound_cids. This broad search uses keyword matching and might catch variations that simple direct lookups miss.

When It Fits, When It Doesn't

Use this server if your core task involves verifying molecular structures, formulas, or CIDs using authoritative, public domain data. You need a reliable chemical database lookup—that’s the only reason to use it.

Don't use this if you just need general scientific information (e.g., 'How does aspirin work?'). For that, you'll need a general knowledge model. If your goal is comparative analysis across different databases (like internal company data vs. PubChem), you’re better off building a custom pipeline around the tools. Use this if specificity and verifiable identifiers are non-negotiable.

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by PubChem. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

VINKIUS INFRASTRUCTURE

Cloud Hosted

Managed infra

V8 Isolated

Sandboxed per request

Zero-Trust Proxy

No stored credentials

DLP Enforced

Policy on every call

GDPR Compliant

EU data residency

Token Compression

~60% cost reduction

How we secure it →

Works with Claude, ChatGPT, Cursor, and more

The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.

This server provides 4 capabilities that interface natively with Claude, ChatGPT, Cursor, and any MCP client. No middleware. No custom integration required.

Available Capabilities

check_api_status get_compound_by_cid get_compound_by_name search_compound_cids

Sifting through scientific portals for basic compound data takes forever.

Today, getting accurate chemical details means opening PubChem's website or a specialized database. You search by name, click through multiple pages to find the CID, then copy-paste that ID into another tool just to get the formula. It’s slow, it involves several tabs, and you risk copying an incorrect identifier.

With this MCP server, your agent handles the entire flow. You tell it the compound's name; it runs `get_compound_by_name` and delivers the CID, IUPAC name, *and* formula in a single chat response. It’s immediate verification.

PubChem PUG REST API MCP Server: Get confirmed molecular data.

You don't have to manually check if the service is down before starting your research. You simply ask the agent to run `check_api_status`. If it confirms the service is operational, you know every subsequent call—whether using `get_compound_by_cid` or another tool—will be reliable.

This guarantees that your entire chemical audit workflow stays online and predictable. It's about knowing your data source is rock solid before you commit to analysis.

Common Questions About PubChem PUG REST API MCP

How do I find the CID for a compound using PubChem PUG REST API? +

Use search_compound_cids and input the common name or keyword. This tool scans the database and returns multiple potential CIDs, which you can then use with get_compound_by_cid.

Is `get_compound_by_name` better than `get_compound_by_cid`? +

No. If you have the CID, always use get_compound_by_cid. It is faster and more precise because you are querying by a guaranteed unique identifier.

What should I run if I want to know if PubChem is working? +

Run the check_api_status tool. This confirms that the entire data service is up, which is critical before running any compound lookups or searches.

Can I find a formula using only my agent and PubChem PUG REST API? +

Yes. You can run get_compound_by_name (if you know the name) or get_compound_by_cid (if you have the ID). Both tools return the molecular formula as part of the comprehensive metadata.

How do I authenticate my agent when using PubChem PUG REST API? +

You don't need to worry about authentication. The service is free and open, so your AI client connects immediately without needing an API key or credentials.

What should I do if my call to `search_compound_cids` fails due to rate limiting? +

If the search request fails, your agent must implement retry logic with exponential backoff. Always check PubChem's published usage policy for specific rate limits and quotas.

Does `get_compound_by_name` return the full molecular formula or just basic details? +

It returns comprehensive metadata. You'll get structured data including IUPAC names, structural formulas, and technical properties necessary for deep auditing.

If a chemical name I pass to `get_compound_by_name` doesn't exist, how does PubChem PUG REST API handle the error? +

The tool will return an explicit error code or an empty dataset rather than crashing. Your agent must check the response structure for null values before attempting to process results.

Is an API Key required for PubChem API? +

No. PubChem is a free and open service provided by the NIH. This server works out of the box without any static credentials required.

What is a CID? +

CID stands for Compound Identifier. It is a unique numerical ID assigned to each chemical compound in the PubChem database.

Can the agent show molecular formulas? +

Yes. The compound details retrieved by your agent include the molecular formula and IUPAC name metadata where available.

More in this category

You might also like

Built & Managed by Vinkius 30s setup 4 tools

We've already built the connector for PubChem PUG REST API. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 4 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.