chem
Pack: mychem · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/chem for the schema, then POST the same URL with its arguments for the data.
Fetch the full aggregated annotation for a single chemical / drug by id. The id is typically an InChIKey (e.g. “BSYNRYMUTXBXSQ-UHFFFAOYSA-N”), but a DrugBank id, ChEMBL id, or other source id also works. Returns merged annotations from ChEMBL, DrugBank, PubChem, ChEBI, DrugCentral, etc., including mechanism, indication, and pharmacology cross-references.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | An InChIKey like “BSYNRYMUTXBXSQ-UHFFFAOYSA-N”, or a DrugBank / ChEMBL id. |
fields | string | no | Comma-separated return fields (default: all). |
max_list_items | number | no | When the record is over about 1.5M characters (aspirin is 3.6 MB uncut), lists longer than this are cut to it and the response names each cut list with its true length. Default 50, maximum 5000. |
Example call
Arguments
{
"id": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"
}
curl
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":"chem","arguments":{"id":"BSYNRYMUTXBXSQ-UHFFFAOYSA-N"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('chem', {
"id": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N"
});
More examples
{
"id": "DB00945"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the mychem pack
{
"mcpServers": {
"mychem": {
"url": "https://gateway.pipeworx.io/mychem/mcp"
}
}
}
See Getting Started for client-specific install steps.