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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | Common, IUPAC, or brand name (e.g., “ibuprofen”, “caffeine”) |
max_results | number | no | Cap results (default 5) |
Example call
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":{}}}'
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.