associations
Pack: monarch-initiative · Endpoint: https://gateway.pipeworx.io/monarch-initiative/mcp
Fetch biolink associations (edges) involving a Monarch entity by its CURIE ID (e.g. MONDO:0007947); filter by association category (e.g. biolink:DiseaseToPhenotypicFeatureAssociation), predicate, or direction (subject/object/both).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity_id | string | yes | |
category | string | no | e.g. “biolink:DiseaseToPhenotypicFeatureAssociation” |
predicate | string | no | e.g. “biolink:has_phenotype” |
direction | string | no | subject (default) | object | both |
limit | number | no |
Example call
Arguments
{
"entity_id": "MONDO:0007947",
"category": "biolink:DiseaseToPhenotypicFeatureAssociation"
}
curl
curl -X POST https://gateway.pipeworx.io/monarch-initiative/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"associations","arguments":{"entity_id":"MONDO:0007947","category":"biolink:DiseaseToPhenotypicFeatureAssociation"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('associations', {
"entity_id": "MONDO:0007947",
"category": "biolink:DiseaseToPhenotypicFeatureAssociation"
});
More examples
{
"entity_id": "NCBIGene:207",
"predicate": "biolink:associated_with_increased_likelihood_of",
"direction": "subject",
"limit": 50
}
Response shape
| Field | Type | Description |
|---|---|---|
associations | array | List of associations |
limit | number | Result limit applied |
total | number | Total matching associations |
Full JSON Schema
{
"type": "object",
"description": "Associations involving an entity",
"properties": {
"associations": {
"type": "array",
"description": "List of associations",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Association identifier"
},
"subject": {
"type": "string",
"description": "Subject node curie"
},
"predicate": {
"type": "string",
"description": "Association predicate"
},
"object": {
"type": "string",
"description": "Object node curie"
},
"category": {
"type": "string",
"description": "Association category"
}
}
}
},
"limit": {
"type": "number",
"description": "Result limit applied"
},
"total": {
"type": "number",
"description": "Total matching associations"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"monarch-initiative": {
"url": "https://gateway.pipeworx.io/monarch-initiative/mcp"
}
}
}
See Getting Started for client-specific install steps.