# Opentargets [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/pipeworx-io/mcp-opentargets  
**GitHub Stars:** 0  
**npm Downloads (last month):** 573  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/opentargets-2

## Description
Open Targets disease/target/drug knowledge graph (GraphQL)

## Tools
Capabilities this server exposes over MCP:

- **target** — "Drug target profile for [gene]" / "is [gene] a druggable target" / "[gene] target info" / "target ID [ENSG...]" — fetch a drug-target profile (Open Targets uses Ensembl gene IDs as target identifiers). Returns approved symbol, name, biotype, protein IDs, pathways, synonyms. Use for target characterization in drug discovery.
- **disease** — "Disease profile for [EFO_N]" / "look up disease [ID]" — fetch a disease profile from Open Targets by EFO (Experimental Factor Ontology) ID. Returns name, description, therapeutic areas, ontology cross-refs. Pair with `disease_associations` to find drug targets for the disease.
- **drug** — "Drug info for [ChEMBL ID]" / "look up [drug] target info" / "[CHEMBL...] mechanism" — fetch a drug profile from Open Targets by ChEMBL ID. Returns name, mechanisms of action, indications, target genes, trade names, clinical-trial phase. Use for drug research, mechanism queries.
- **search** — "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.
- **target_associations** — "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.
- **disease_associations** — "Best drug targets for [disease]" / "what genes are linked to [condition]" / "druggable targets in [disease]" — top drug-target candidates for a disease (EFO ID), scored by integrated evidence. Use for target discovery in a therapeutic area.
- **target_known_drugs** — "What drugs target [gene]" / "approved drugs against [target]" / "clinical-trial drugs for [gene]" — drugs that have been clinically tested or approved against a drug target (Ensembl gene ID). Returns drug names, mechanisms, indications, clinical trial phases. Use for competitive landscape / drug-repositioning queries.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "opentargets": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-opentargets"]
  }
}
```

## Documentation

## What Opentargets does

Opentargets exposes the Open Targets Platform as MCP tools for exploring relationships among genes, diseases, and drugs. The underlying knowledge graph combines genetic, genomic, transcriptomic, and chemistry evidence. It is suited to research workflows that begin with a name or identifier and continue into target profiles, disease links, drug mechanisms, or candidate prioritization.

The integration is an independent, unofficial connection to Open Targets. It is not affiliated with, endorsed by, or published by the upstream provider.

## How it works

The hosted MCP endpoint is available at `https://gateway.pipeworx.io/opentargets/mcp`. It uses the Pipeworx gateway to forward requests to Open Targets and does not require an API key for initial anonymous calls. A local npm package, `@pipeworx/mcp-opentargets`, provides a stdio bridge that forwards MCP requests to the same hosted endpoint, so the local process still needs network access.

A typical workflow starts with `search`, which returns ranked matches and canonical identifiers. Target records use Ensembl gene IDs such as `ENSG...`; diseases use EFO identifiers such as `EFO_...`; and drugs use ChEMBL identifiers such as `CHEMBL...`. Those identifiers can then be passed to the profile and association tools.

The pack endpoint also exposes shared Pipeworx gateway tools, including routing and discovery tools. The npm bridge lists only the Open Targets pack by default, with `PIPEWORX_META_TOOLS=1` available when the shared tools should also be listed. The full gateway endpoint is available separately when direct access to all packs is preferred.

## Setup and configuration

Add the hosted endpoint to an MCP client with this configuration:

```json
{
  "mcpServers": {
    "opentargets": {
      "url": "https://gateway.pipeworx.io/opentargets/mcp"
    }
  }
}
```

For a local stdio connection, use:

```json
{
  "mcpServers": {
    "opentargets": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-opentargets"]
    }
  }
}
```

Anonymous use is capped at 50 calls per day. A free Pipeworx account raises the limit to 200 calls per day; provide its key as `PIPEWORX_API_KEY` in the MCP server environment. Requests require network access, and the package has no offline mode. For HTTPS proxy setups, newer Node.js releases can use proxy environment settings when `NODE_USE_ENV_PROXY=1` is enabled.

## Tools and capabilities

- `search` finds diseases, targets, and drugs by text, with optional entity filtering and result limits.
- `target` returns a gene target profile, including symbol, name, biotype, protein identifiers, pathways, and synonyms.
- `disease` retrieves an EFO disease profile with description, therapeutic areas, and ontology cross-references.
- `drug` returns drug names, mechanisms, indications, target genes, trade names, and clinical-trial phase.
- `target_associations` ranks diseases associated with an Ensembl target using integrated Open Targets evidence.
- `disease_associations` ranks potential drug targets for an EFO disease using integrated evidence.
- `target_known_drugs` lists clinically tested or approved drugs associated with a target, including mechanisms, indications, and trial phases.

The same operations can be called over HTTP through the gateway's tool endpoints when an MCP client is not available.

## Limitations and notes

Results depend on the Open Targets knowledge graph and its evidence scoring. Queries requiring detailed records should use the relevant canonical identifier rather than relying only on a free-text name. The hosted and npm connections reach the same gateway, while the main difference is which tools are listed directly. The package is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/opentargets-2/readme_

