Open Targets

liveBiologyHealth

Open Targets disease/target/drug knowledge graph (GraphQL). Keyless.

7tools
0msauth
free tier50 calls/day

Tools

targetrequired: ensembl_id

Target profile by Ensembl id.

Parameters
NameTypeDescription
ensembl_idreqstring
Try it
diseaserequired: efo_id

Disease profile by EFO id.

Parameters
NameTypeDescription
efo_idreqstring
Try it
drugrequired: chembl_id

Drug profile by ChEMBL id.

Parameters
NameTypeDescription
chembl_idreqstring
Try it
target_associationsrequired: ensembl_id

Top diseases for a target.

Parameters
NameTypeDescription
ensembl_idreqstring
sizeoptnumber
Try it
disease_associationsrequired: efo_id

Top targets for a disease.

Parameters
NameTypeDescription
efo_idreqstring
sizeoptnumber
Try it
target_known_drugsrequired: ensembl_id

Clinically tested drugs for a target.

Parameters
NameTypeDescription
ensembl_idreqstring
sizeoptnumber
Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/opentargets/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/opentargets/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"target","arguments":{"ensembl_id": "example"}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("target", {"ensembl_id":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("open targets disease/target/drug knowledge graph (graphql)");