• DATA
  • SEARCH
  • ANALYSIS
  • HUMAN

How to retrieve molecular metadata with your AI

Connect your AI to PubChem to pull technical chemical data instantly. Once connected, you just provide a CID to get the details you need.

Ask AI about this page

Short answer

How do I get chemical properties using an AI?

Give your AI a PubChem Compound ID (CID), and it will use the PUG REST API to fetch specific molecular properties. You'll get technical data like molecular weight and chemical formulas. This breakdown shows you how to set it up and use it.

The results you get

Where the data lands

The AI handles the API calls so you can focus on the chemistry.

DATA

Technical properties

The AI pulls specific molecular descriptors. You get raw data like exact mass and chemical formulas.

SEARCH

CID-based lookups

Instead of browsing websites, you give the AI a CID. It fetches the corresponding record immediately.

ANALYSIS

Property comparison

Once the data is pulled, your AI can compare properties between different compounds. You can ask it to find similarities or differences.

HUMAN

Expert verification

The AI provides the data, but you must verify the results for critical lab work. It doesn't replace your judgment on chemical safety or reactivity.

The workflow

What your AI does when a CID is provided.

The AI acts as the bridge between your chat and the PubChem database.

  1. Identify the target

    Your AI parses your request to find the specific Compound ID you want to look up.

    get_compound_by_cid
  2. Fetch the data

    The agent calls the API to grab the technical metadata associated with that ID.

    get_compound_by_cid
  3. Format the results

    The AI takes the raw JSON response and turns it into a readable summary or a structured list.

    get_compound_by_cid
  4. Answer your questions

    You can then ask follow-up questions about the specific properties the AI just retrieved.

    get_compound_by_cid

Try it

Copy these to start.

Use these prompts to trigger the data retrieval.

Starting points

Replace the bracketed text with your actual chemical IDs or specific property requests.

PubChem Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_39PvvjDIh0Gw5sIiVCJqmFBNo6SJy2fu1ixaSd7V/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — PubChem capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "pubchem-pug-rest-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_39PvvjDIh0Gw5sIiVCJqmFBNo6SJy2fu1ixaSd7V/mcp"
    }
  }
}
Copy into chat04
  • Get the molecular weight and formula for CID 2244.

  • What are the technical properties for CID 5281?

  • Retrieve the chemical properties for CID 190.

  • Compare the molecular weight of CID 2244 and CID 5281.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect PubChem PUG REST API once, then ask.

Click the button to link the MCP to your client. Your credentials stay encrypted, and you'll be ready to query PubChem immediately.

Connect PubChem PUG REST API to your AI

FAQ

How the task behaves

  • 01

    Can the AI search for chemicals by name instead of CID?

    No. This specific tool requires a unique Compound ID (CID) to retrieve data.

  • 02

    Can the AI update information in the PubChem database?

    No. The AI can only read data from PubChem; it cannot modify or add any records.

  • 03

    Does the AI provide structural diagrams?

    No. The tool retrieves technical metadata and text-based properties, not image files.

  • 04

    Can I use this with Claude?

    Yes, as long as you are using an MCP-compatible client like Claude Desktop.

  • 05

    What happens if I provide an invalid CID?

    The AI will report that it cannot find a compound matching that specific ID.

  • More questions about PubChem PUG REST API? The Connector page answers them. See everything the PubChem PUG REST API Connector can do

Connect PubChem to Claude, Cursor, ChatGPT & more