search

Pack: opentargets · Endpoint: https://gateway.pipeworx.io/opentargets/mcp

“Find [disease / drug / gene target]” / “Open Targets lookup for [name]” / “what’s the Open Targets ID for [X]” — text search across diseases, drug targets, and drugs in the Open Targets Platform (the leading drug-discovery knowledge graph). Returns ranked matches with their canonical IDs (ENSG… for targets, EFO_… for diseases, CHEMBL… for drugs). Use first to find IDs, then call target/disease/drug for details.

Parameters

NameTypeRequiredDescription
querystringyes
entitystringnotarget | disease | drug (omit for all)
sizenumberno1-50 (default 10)

Example call

Arguments

{
  "query": "TP53"
}

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":"search","arguments":{"query":"TP53"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search', {
  "query": "TP53"
});

More examples

{
  "query": "cancer",
  "entity": "disease",
  "size": 20
}

Response shape

FieldTypeDescription
dataobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "search": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total hits"
            },
            "hits": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Entity ID"
                  },
                  "entity": {
                    "type": "string",
                    "description": "Entity type (target/disease/drug)"
                  },
                  "name": {
                    "type": "string",
                    "description": "Entity name"
                  },
                  "description": {
                    "type": "string",
                    "description": "Entity description"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

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.

Regenerated from source · build July 6, 2026