Open Targets
liveBiologyHealthOpen Targets disease/target/drug knowledge graph (GraphQL). Keyless.
7tools
0msauth
free tier50 calls/day
Tools
targetrequired: ensembl_idTarget profile by Ensembl id.
Parameters
NameTypeDescription
ensembl_idreqstring—Try it
Response
diseaserequired: efo_idDisease profile by EFO id.
Parameters
NameTypeDescription
efo_idreqstring—Try it
Response
drugrequired: chembl_idDrug profile by ChEMBL id.
Parameters
NameTypeDescription
chembl_idreqstring—Try it
Response
searchrequired: queryPlatform search.
Parameters
NameTypeDescription
queryreqstring—entityoptstring—sizeoptnumber—Try it
Response
target_associationsrequired: ensembl_idTop diseases for a target.
Parameters
NameTypeDescription
ensembl_idreqstring—sizeoptnumber—Try it
Response
disease_associationsrequired: efo_idTop targets for a disease.
Parameters
NameTypeDescription
efo_idreqstring—sizeoptnumber—Try it
Response
target_known_drugsrequired: ensembl_idClinically tested drugs for a target.
Parameters
NameTypeDescription
ensembl_idreqstring—sizeoptnumber—Try it
Response
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)");