search_by_name

Pack: pubchem · Endpoint: https://gateway.pipeworx.io/pubchem/mcp

Resolve a common chemical or drug name to PubChem CIDs. Use for “what’s the CID of ibuprofen?” or to disambiguate. Returns CIDs (Compound IDs) matched to the name. Then use get_compound with the CID for properties.

Parameters

NameTypeRequiredDescription
namestringyesCommon, IUPAC, or brand name (e.g., “ibuprofen”, “caffeine”)
max_resultsnumbernoCap results (default 5)

Example call

Arguments

{
  "name": "ibuprofen"
}

curl

curl -X POST https://gateway.pipeworx.io/pubchem/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_by_name","arguments":{"name":"ibuprofen"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_by_name', {
  "name": "ibuprofen"
});

More examples

{
  "name": "caffeine",
  "max_results": 3
}

Response shape

Always returns: name, count, cids, pubchem_urls

FieldTypeDescription
namestringThe chemical/drug name searched
countnumberNumber of CIDs found
cidsarrayList of matching PubChem Compound IDs
pubchem_urlsarrayDirect URLs to PubChem pages for each CID
Full JSON Schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The chemical/drug name searched"
    },
    "count": {
      "type": "number",
      "description": "Number of CIDs found"
    },
    "cids": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "List of matching PubChem Compound IDs"
    },
    "pubchem_urls": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Direct URLs to PubChem pages for each CID"
    }
  },
  "required": [
    "name",
    "count",
    "cids",
    "pubchem_urls"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "pubchem": {
      "url": "https://gateway.pipeworx.io/pubchem/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026