Skip to main content
MCP server CX Codex

Open Targets — Claude Code MCP server: what it does, how to install

Remote MCP server that gives your agent Open Targets entity search and GraphQL access to drug-target and disease-gene evidence.

no license 440 installs updated 2026-03-27

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http opentargets https://opentargets.run.tools
Open on GitHub

What Open Targets does

Open Targets is a remote MCP server. Point your agent at https://opentargets.run.tools and it can search targets, diseases, drugs, variants and studies, then run GraphQL queries over drug-target and disease-gene evidence. Nothing runs on your machine.

Five tools ship with it. search_entities looks across entity types and returns up to 3 matches per query string, which is how you get a standard ID. query_open_targets_graphql runs one GraphQL query, while batch_query_open_targets_graphql repeats a query with different variable sets when you have a list of drugs or genes. For schema work there is get_open_targets_graphql_schema with category filtering, and get_type_dependencies returns SDL for named types.

The schema call needs at least one category, such as genetic-associations, or there is nothing to return. Common gene, disease or drug names have to become IDs through search_entities before a query runs, because the query tool works on identifiers.

What it helps with

  • resolve a gene symbol to a standard ID before querying
  • pull disease-gene evidence backed by genetics and literature
  • run the same GraphQL query across a list of drugs
  • check a schema category before writing a query
  • look up which studies a variant appears in

Example prompts for the agent

  • Find the ID for BRCA2 in Open Targets and list the diseases linked to it
  • Run this query for every drug in the list with batch_query_open_targets_graphql
  • Show the genetic-associations part of the Open Targets schema first

How to install Open Targets

Platform CLI: remote server

claude mcp add --transport http opentargets https://opentargets.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Open Targets

How do I install Open Targets in Claude Code?

Run claude mcp add --transport http open-targets https://opentargets.run.tools. It is an HTTP server, so no local process is started.

What does Open Targets do?

It lets the agent search targets, diseases, drugs, variants and studies on the Open Targets platform, and send GraphQL queries against its drug-target and disease-gene data.

Why does a query by gene name fail?

query_open_targets_graphql expects standard identifiers. Get them first with search_entities, which matches across several entity types in one call.

Similar MCP servers

All MCP servers for Science and research →

Project sponsors

Companies that keep this analytics open