query
Pack: mychem · Endpoint: https://gateway.pipeworx.io/mychem/mcp
Search MyChem.info for drugs / chemical compounds. Accepts a plain drug name (“aspirin”), an InChIKey, or a fielded query (e.g. “chembl.pref_name:aspirin”, “drugbank.name:Acetylsalicylic acid”). Returns aggregated hits with cross-references to ChEMBL, DrugBank, PubChem, ChEBI, DrugCentral, etc. Use this to resolve a drug name into structured identifiers.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Drug name (“aspirin”), an InChIKey, or a fielded query like “chembl.pref_name:aspirin”. |
fields | string | no | Comma-separated return fields (default: all). e.g. “chembl.pref_name,drugbank.name,pubchem”. |
size | number | no | Max hits to return, 1-1000 (default 10). |
Example call
curl -X POST https://gateway.pipeworx.io/mychem/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"mychem": {
"url": "https://gateway.pipeworx.io/mychem/mcp"
}
}
}
See Getting Started for client-specific install steps.