# PubChem PUG REST API MCP for AI Agents AI Agent Connect

> PubChem PUG REST API MCP lets your AI agent pull real-time chemical data, audit molecular formulas, and search Compound Identifiers (CIDs) from the National Library of Medicine. It turns your agent into a chemical consultant for research and laboratory auditing.

## Overview
- **Category:** the-unthinkable
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_39PvvjDIh0Gw5sIiVCJqmFBNo6SJy2fu1ixaSd7V/ai-agent-connect
- **Tags:** chemistry, molecular-data, compound-search, biomedical-data, research-tools, api-integration

## Description

This chemical data connector lets you pull real-time information from the National Library of Medicine without leaving your chat interface. Instead of spending your afternoon toggling between browser tabs and copying molecular formulas into a spreadsheet, you can let your agent do the heavy lifting. It handles the querying of high-resolution technical properties or finding specific Compound Identifiers without you ever visiting a scientific portal. It turns your chat interface into a real-time chemical consultant. You might be verifying a compound for a pharmacology paper or auditing a list of laboratory chemicals. In both cases, the data comes back verified and ready for your next step. By adding this to your setup through the Vinkius catalog, you give your agent a reliable source of truth for molecular data. You move from manual data entry to a workflow where your agent handles the search and you focus on the analysis. You can ask for specific details on a compound and get a full breakdown of its properties, including its IUPAC name and molecular formula. This is a massive win for anyone who needs to maintain a high level of accuracy in their research. It removes the risk of typos or missed details that often happen when moving data between different software platforms. Your agent acts as an extension of your research team, capable of retrieving and organizing chemical data on demand. This means you spend less time on the search and find phase of your work and more time on the interpretation and application of that data. It connects your queries to one of the most authoritative chemical databases in the world.

## Tools

### check_api_status
This tool verifies that the PubChem PUG REST service is currently online. This ensures your research workflow won't hit a dead end.

### get_compound_by_cid
This tool fetches complete data for a specific Compound Identifier. It is the fastest way to get precise info on a known record.

### get_compound_by_name
This tool gets full details for a chemical compound using its common name. It makes it easy to jump from a name to a full profile.

### search_compound_cids
This tool finds Compound Identifiers (CIDs) based on a keyword or name. Use this to identify multiple matches in the database.

## Prompt Examples

**Prompt:** 
```
Can you find the molecular formula for Caffeine?
```

**Response:** 
```
I've retrieved the details for Caffeine! It has a CID of 2519 and its molecular formula is identified as **C8H10N4O2**. 

Would you like more technical properties for this record?
```

**Prompt:** 
```
What are the details for CID 2244?
```

**Response:** 
```
I've identified the compound for CID 2244! 

*   **Name**: Aspirin
*   **Formula**: C9H8O4
*   **Status**: Verified

I can assist you with more technical properties for this record if you'd like.
```

**Prompt:** 
```
Search for all CIDs related to glucose.
```

**Response:** 
```
I've scanned the database for glucose! I've identified several matching CIDs, including:

*   **5793**
*   **107526**

I can provide the full metadata for any of these identifiers to help you in your research.
```

## Capabilities

### Search compounds by name
Find full profiles for any chemical compound by entering its common name or keyword.

### Retrieve details for specific CIDs
Pull complete data for a known record using its unique Compound Identifier.

### Audit molecular formulas
Verify that your chemical data matches official records from the National Library of Medicine.

### Check API status
Confirm the PubChem service is online before you start your research workflow.

### Pull technical metadata
Get high-resolution properties for any record to assist in scientific auditing.

## Use Cases

### Verifying drug candidates
A pharmacologist needs to verify the molecular formula of a new drug candidate. They ask their agent to pull the official record for a specific CID.

### Rapid student research
A chemistry student wants to identify the properties of glucose quickly. They ask the agent to find the compound by name and list its properties.

### Laboratory safety audits
A lab manager needs to audit a list of 50 chemicals for a safety report. They ask the agent to pull the technical metadata for each CID.

### Keyword-based compound discovery
A researcher wants to find all CIDs associated with a specific chemical keyword. They ask the agent to search the database for all matching records.

## Benefits

- Skip the browser: Use get_compound_by_name to grab full chemical profiles without leaving your chat.
- Verify molecular data: Use get_compound_by_cid to pull official records and ensure your data is accurate.
- Audit chemical records: Get high-resolution properties for any record to help with scientific auditing.
- Identify compound matches: Use search_compound_cids to find all relevant IDs for a keyword in one step.
- Monitor connection status: Use check_api_status to confirm the PubChem service is online before you start.

## How It Works

The bottom line is you get instant access to verified molecular data without leaving your chat interface.

1. Subscribe to the Connector on the Vinkius platform.
2. Connect your AI client without needing a separate API key.
3. Ask your agent to find compounds, pull CIDs, or audit formulas.

## Frequently Asked Questions

**Does the PubChem PUG REST API MCP require an API key?**
No, it does not. Since PubChem is a free and open service, you can connect your agent and start pulling data immediately without managing keys.

**How can I use the PubChem PUG REST API MCP to verify chemical formulas?**
You can simply ask your agent to look up a specific compound by its name or CID. It will pull the official molecular formula directly from the National Library of Medicine for you.

**Can the PubChem PUG REST API MCP find compounds by keyword?**
Yes, your agent can search for compounds using keywords. It will return a list of matching Compound Identifiers (CIDs) so you can find exactly what you need.

**Is the data in the PubChem PUG REST API MCP accurate for pharmacology?**
Yes, the data comes directly from PubChem, which is an authoritative source for molecular and chemical data used widely in pharmacology and research.

**Can I use the PubChem PUG REST API MCP to audit laboratory chemicals?**
Yes, you can ask your agent to pull high-resolution technical properties and metadata for specific chemicals to help you audit your inventory or research records.

**What happens if the PubChem service is down?**
You can ask your agent to check the service status. This will tell you if the connection to the database is active before you start your research workflow.

**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.