• IDENTIFIERS
  • DATA
  • REFINEMENT
  • HUMAN

How to find compound identifiers with your AI

Connect the PubChem PUG REST API to your AI client to turn chemical names into precise identifiers.

Ask AI about this page

Short answer

How do I get CIDs from chemical names using AI?

Your AI calls the PubChem PUG REST API to match your text queries against the PubChem database. It returns the exact Compound Identifiers (CIDs) you need for further research. You'll see the specific IDs and matching names immediately.

The results you get

Where your data lands

What happens after you ask your AI for a compound.

IDENTIFIERS

Exact CID retrieval

The AI pulls the unique PubChem Compound Identifier for the substance you named. You get the specific ID needed for database queries.

DATA

Chemical name matching

The tool maps your keywords to official chemical nomenclature. This ensures you are working with the correct molecular entity.

REFINEMENT

Narrowing your search

If a name is ambiguous, the AI identifies the most likely candidates. You can then pick the specific CID that fits your project.

HUMAN

Manual verification

The AI provides the ID, but you must confirm the chemical structure matches your specific requirements before proceeding with sensitive lab work.

The workflow

What your AI does when a name is provided.

The AI handles the API communication so you don't have to write code or manual queries.

  1. Query parsing

    Your AI interprets your natural language request and extracts the chemical name or keyword you want to look up.

    search_compound_cids
  2. API execution

    The agent sends the parsed name to the PubChem PUG REST service to find matching entries.

    search_compound_cids
  3. Result filtering

    The AI looks through the returned data to find the most relevant Compound Identifiers.

    search_compound_cids
  4. Data delivery

    The agent presents the CIDs and associated names in a clean format within your chat interface.

    search_compound_cids

Try it

Copy these to start.

Use these prompts to trigger a search immediately.

Starting points

Replace the chemical names in these examples with the specific substances you are researching.

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
  • Find the PubChem CID for Aspirin.

  • Search for the identifier for Caffeine.

  • What is the CID for the compound known as Glucose?

  • Give me the PubChem identifiers for common organic solvents like Ethanol.

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

Start here

Connect PubChem PUG REST API once, then ask.

One click connects the MCP to your client. Your credentials stay encrypted and secure on our side.

Connect PubChem PUG REST API to your AI

FAQ

How the search behaves

  • 01

    Can the AI find the molecular weight of a compound?

    No. This specific tool is only for finding Compound Identifiers (CIDs) based on names or keywords.

  • 02

    Does the AI update the PubChem database?

    No. The AI can only read data from PubChem; it cannot add, edit, or delete any chemical records.

  • 03

    What if I provide a misspelled chemical name?

    The AI will attempt to find the closest match in PubChem, but you should always verify the resulting CID.

  • 04

    Can I search using SMILES strings?

    No. This tool is designed for searching via names and keywords to retrieve CIDs.

  • 05

    Will the AI suggest which CID is the most biologically active?

    No. The AI only retrieves the identifier; it does not perform biological or pharmacological analysis.

  • 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