target_associations
Pack: opentargets · Endpoint: https://gateway.pipeworx.io/opentargets/mcp
“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 |
|---|---|---|
data | object |
Full JSON Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"target": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Target ID"
},
"approvedSymbol": {
"type": "string",
"description": "Target symbol"
},
"associatedDiseases": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Total disease associations"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"score": {
"type": "number",
"description": "Association score"
},
"disease": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Disease ID"
},
"name": {
"type": "string",
"description": "Disease name"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"opentargets": {
"url": "https://gateway.pipeworx.io/opentargets/mcp"
}
}
}
See Getting Started for client-specific install steps.