# opentargets

Query Open Targets for targets, diseases, drugs, and supporting evidence from an AI coding client. Useful for investigating gene-disease links or possible drug repurposing.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: nickzren
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nickzren/opentargets-mcp
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/mcp/opentargets

## What it does

opentargets connects an MCP client to Open Targets data. Ask about an entity by its name or identifier, then retrieve details on targets, diseases, drugs, variants, and evidence. It can also surface candidates for repurposing a drug. Results are returned as structured data.

The server provides 68 tools, including entity search, ID mapping, evidence lookup, and GraphQL queries. When a name matches multiple records, it presents candidates to choose from. Access is read-only, so the server cannot change Open Targets records. Setup requires `uv` and Python 3.10 or later; an Open Targets API key is not needed.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add opentargets -- uvx opentargets-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from opentargets-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add opentargets -- uvx opentargets-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from opentargets-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opentargets": {
            "command": "uvx",
            "args": [
                "opentargets-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from opentargets-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opentargets": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "opentargets-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from opentargets-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add opentargets uvx opentargets-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from opentargets-mcp <command>

## When to use it
- look up drug targets by name or identifier
- trace evidence connecting a gene to a disease
- retrieve adverse-event information for a drug
- find possible candidates for drug repurposing

## Example prompts
- Find drugs that target `EGFR` and report their development stages.
- Which genes have the strongest association with asthma?
- Show the evidence connecting `BRAF` with melanoma.

## Similar
- [Zotero MCP](https://affpapa.org/en/nevibecode/mcp/zotero-mcp.md) — MCP server · ★ 5548
- [arxiv-mcp-server](https://affpapa.org/en/nevibecode/mcp/arxiv-mcp-server.md) — MCP server · ★ 3231
- [PaperBanana](https://affpapa.org/en/nevibecode/mcp/paperbanana.md) — MCP server · ★ 2417
- [MATLAB MCP Server](https://affpapa.org/en/nevibecode/mcp/matlab-mcp-server.md) — MCP server · ★ 1716
- [Hex Research](https://affpapa.org/en/nevibecode/mcp/hex-research.md) — MCP server · ★ 583
- [DocsAgent — Zotero, Obsidian & Apple Notes MCP Server](https://affpapa.org/en/nevibecode/mcp/docsagent-zotero-obsidian-apple-notes-mcp-server.md) — MCP server · ★ 578

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
