ligand_interactions
Pack: guidetopharmacology · 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/ligand_interactions for the schema, then POST the same URL with its arguments for the data.
What proteins a drug acts on — the curated target interactions for a ligand in the Guide to PHARMACOLOGY (IUPHAR/BPS), each with the target PROTEIN NAME, interaction type (Agonist/Antagonist/Inhibitor), action and binding affinity (pKi/pIC50). Pass the drug by name (“imatinib”) and it is resolved for you; a GtoPdb ligand id also works. The response always names the ligand it actually read, so an id that turns out to be a different compound is visible rather than silent. Requires a GtoPdb API key — register free at guidetopharmacology.org/login.jsp and pass your own via _apiKey.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ligand | string | no | Drug/ligand name, e.g. “imatinib”. Resolved against the GtoPdb ligand list. |
ligand_id | number,string | no | GtoPdb ligand id, e.g. 4139 for aspirin. Optional — give this OR ligand. |
limit | number | no | Max interactions to return (default 25). |
Example call
Arguments
{
"ligand": "imatinib",
"_apiKey": "your-guidetopharmacology-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/guidetopharmacology/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ligand_interactions","arguments":{"ligand":"imatinib","_apiKey":"your-guidetopharmacology-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ligand_interactions', {
"ligand": "imatinib",
"_apiKey": "your-guidetopharmacology-api-key"
});
More examples
{
"ligand_id": 4139,
"_apiKey": "your-guidetopharmacology-api-key"
}
{
"ligand_id": "4139",
"limit": 40,
"_apiKey": "your-guidetopharmacology-api-key"
}
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 guidetopharmacology pack
{
"mcpServers": {
"guidetopharmacology": {
"url": "https://gateway.pipeworx.io/guidetopharmacology/mcp"
}
}
}
See Getting Started for client-specific install steps.