drug
Pack: opentargets · 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/drug for the schema, then POST the same URL with its arguments for the data.
“Drug info for [ChEMBL ID]” / “look up [drug] target info” / “[CHEMBL…] mechanism” — fetch a drug profile from Open Targets by ChEMBL ID. Returns name, mechanisms of action, indications, target genes, trade names, clinical-trial phase. Use for drug research, mechanism queries.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
chembl_id | string | yes | e.g. “CHEMBL1201583” (imatinib) |
Example call
Arguments
{
"chembl_id": "CHEMBL1201583"
}
curl
curl -X POST https://gateway.pipeworx.io/opentargets/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"drug","arguments":{"chembl_id":"CHEMBL1201583"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('drug', {
"chembl_id": "CHEMBL1201583"
});
More examples
{
"chembl_id": "CHEMBL25"
}
Response shape
| Field | Type | Description |
|---|---|---|
drug | object |
Full JSON Schema
{
"type": "object",
"properties": {
"drug": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"tradeNames": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
},
"maximumClinicalStage": {
"type": "string"
},
"drugType": {
"type": "string"
},
"mechanismsOfAction": {
"type": "object",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"actionType": {
"type": "string"
},
"mechanismOfAction": {
"type": "string"
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"approvedSymbol": {
"type": "string"
}
}
}
}
}
}
}
}
},
"indications": {
"type": "object",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"disease": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"maxClinicalStage": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
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 opentargets pack
{
"mcpServers": {
"opentargets": {
"url": "https://gateway.pipeworx.io/opentargets/mcp"
}
}
}
See Getting Started for client-specific install steps.