target_associations
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/target_associations for the schema, then POST the same URL with its arguments for the data.
“What diseases is [gene] involved in” / “diseases associated with [target]” / “what does [gene] cause” — top disease associations for a drug target (Ensembl gene ID), scored by integrated Open Targets evidence (genetics, expression, animal models, drugs, literature, pathways). Use to triage what diseases a candidate target might address.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ensembl_id | string | yes | |
size | number | no | 1-50 (default 10) |
Example call
Arguments
{
"ensembl_id": "ENSG00000141510"
}
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":"target_associations","arguments":{"ensembl_id":"ENSG00000141510"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('target_associations', {
"ensembl_id": "ENSG00000141510"
});
More examples
{
"ensembl_id": "ENSG00000141510",
"size": 25
}
Response shape
| Field | Type | Description |
|---|---|---|
target | object |
Full JSON Schema
{
"type": "object",
"properties": {
"target": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"approvedSymbol": {
"type": "string"
},
"associatedDiseases": {
"type": "object",
"properties": {
"count": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"score": {
"type": "number"
},
"disease": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"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.