Back to Browse

Opentargets MCP Server

Developer Tools4.8Elevated riskMCP RegistryLocal
Free

Server data from the Official MCP Registry

Read-only Open Targets: targets, diseases, drugs and evidence by name or ID. No API key needed.

About

Read-only Open Targets: targets, diseases, drugs and evidence by name or ID. No API key needed.

At a glance

Runs
On your computer, from the PyPI package opentargets-mcp, which we verified belongs to this listing.
Works with
Claude Desktop, Claude Code, Grok Build (formerly Cursor), Windsurf, VS Code, Codex, Antigravity CLI, Gemini CLI, ChatGPT.
Can access
  • Connects to services on the internet

Security report

How we score
4.8out of 10Elevated riskMCP Marketplace security score

Critical: Uses an outdated component (fastmcp) with a known security hole

This is a read-only MCP client for the public Open Targets GraphQL API with no hardcoded secrets, no shell execution, and no data exfiltration patterns. The main concern is that the HTTP/SSE transports default to binding 0.0.0.0 with no authentication and rate limiting is off by default, so anyone who can reach the port can invoke the tools. The resolver module was truncated, so it was not fully reviewed. Supply chain analysis found 11 known vulnerabilities in dependencies (1 critical, 6 high severity). Package verification found 1 issue.

Claude reviewed an earlier version of this code on Dec 3, 2026. The code has changed since then.

5 files analyzed · 17 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

network_listen

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "opentargets-mcp": {
      "command": "uvx",
      "args": [
        "opentargets-mcp==0.8.0"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Open Targets MCP Server

CI PyPI Python MCP Registry License: MIT

A read-only MCP server for exploring targets, diseases, drugs and genetic evidence through the Open Targets Platform. Use names or IDs, retrieve supporting evidence, and explore drug-repurposing candidates. No Open Targets API key required.

Install

Requires uv.

Claude Code

claude mcp add opentargets -- uvx opentargets-mcp

Claude Desktop and Cursor: add this to claude_desktop_config.json (Settings → Developer → Edit Config) or ~/.cursor/mcp.json, then restart:

{
  "mcpServers": {
    "opentargets": {
      "command": "uvx",
      "args": ["opentargets-mcp"]
    }
  }
}

VS Code

code --add-mcp '{"name":"opentargets","command":"uvx","args":["opentargets-mcp"]}'

Codex

codex mcp add opentargets -- uvx opentargets-mcp

Any other stdio MCP client works the same way: command uvx, argument opentargets-mcp.

Tips:

  • If the client reports spawn uvx ENOENT, use the full path from which uvx.
  • Use opentargets-mcp@latest as the argument to pick up new releases.
  • On Apple Silicon, a cryptography build error can indicate uv picked an Intel (Rosetta) Python. uv python find is a first clue; cached tool environments and desktop clients may use a different interpreter.

What you can ask

  • "Which drugs target EGFR, and how far along are they?"
  • "Which genes are most strongly associated with asthma?"
  • "Show the evidence linking BRAF to melanoma."
  • "Suggest drug repurposing candidates for type 2 diabetes."

Use names or IDs: gene symbols, disease and drug names, rsIDs, or Ensembl, MONDO and ChEMBL IDs. If a name matches several entities, the tool lists the candidates so you can pick one.

Tools

65 tools. Run uvx opentargets-mcp --list-tools for the full list.

AreaExamples
Targetsget_target_info, get_target_known_drugs
Diseasesget_disease_info, get_disease_associated_targets
Drugsget_drug_info, get_drug_adverse_events
Evidenceget_target_disease_evidence
Variants and studiesget_variant_info, get_credible_sets
Search and lookupsearch_entities, map_ids
Workflowget_drug_repurposing_candidates
Raw GraphQLgraphql_query, graphql_schema

Every data tool except search_suggestions accepts fields (dot-paths such as ["target.approvedSymbol"]) to return only what you need; a path the tool cannot return is rejected with the valid ones. For anything the curated tools don't cover, use graphql_query; graphql_schema lists the schema's types, and returns the definitions of the ones you name.

Evidence results include datasource IDs and PubMed references where available. Use get_api_metadata to record the Open Targets API and data release with your analysis. clinicalReportCount counts report records, not unique trials; use graphql_query for full reports.

Paged results come back as {count, rows}; count is the total, so check it before concluding something is absent. Target–disease evidence includes rows annotated on descendant diseases, and each row names the disease it was annotated on. Credible set IDs change between Open Targets releases.

Three tools can return more than an agent can read for a well-studied entity: get_target_known_drugs, get_drug_info and get_target_pathways_and_go_terms. Pass compact=True for totals, with a count or one page in place of each long list.

How it works

flowchart LR
    A(["AI agent<br/>Claude · Codex · VS Code · Cursor"])

    subgraph S["opentargets-mcp"]
        direction TB
        S1["1. Resolve names to IDs"]
        S2["2. Run read-only queries"]
        S3["3. Return structured JSON"]
        S1 --> S2 --> S3
    end

    subgraph O["Open Targets Platform"]
        direction TB
        API["GraphQL API"]
        DB[("ChEMBL · GWAS Catalog<br/>ClinVar · Europe PMC · more")]
        API --- DB
    end

    A <-->|MCP| S
    S <-->|GraphQL| O

    classDef client fill:#e8f0fe,stroke:#4285f4,color:#1f2328
    classDef step fill:#ffffff,stroke:#34a853,color:#1f2328
    classDef data fill:#ffffff,stroke:#f9ab00,color:#1f2328
    class A client
    class S1,S2,S3 step
    class API,DB data
    style S fill:#e6f4ea,stroke:#34a853,color:#1f2328
    style O fill:#fef7e0,stroke:#f9ab00,color:#1f2328

Ask in plain language; the server turns names into Open Targets IDs, runs read-only queries and returns structured results. No API key needed.

Configuration

The defaults work for local use. To change them, set environment variables or pass flags (uvx opentargets-mcp --help):

VariableFlagDefault
MCP_TRANSPORT--transportstdio (also http, sse)
FASTMCP_SERVER_HOST--host127.0.0.1; the Docker image sets 0.0.0.0
FASTMCP_SERVER_PORT--port8000
OPEN_TARGETS_API_URL--apihttps://api.platform.opentargets.org/graphql
OPEN_TARGETS_RATE_LIMIT_RPS--rate-limit-rps0 (off); limits incoming MCP requests
OPEN_TARGETS_RATE_LIMIT_BURST--rate-limit-burst20

Proxies are read from HTTPS_PROXY, HTTP_PROXY and NO_PROXY.

Self-host

From source:

git clone https://github.com/nickzren/opentargets-mcp
cd opentargets-mcp
uv run opentargets-mcp

With Docker (HTTP on port 8000), from the clone:

docker compose up -d --build

Connect your MCP client to http://localhost:8000/mcp.

Development

uv sync --extra dev
uv run ruff check src tests
uv run pytest -m "not live"   # offline
uv run pytest -m live         # calls the Open Targets API

Example scripts are in examples/.

License

MIT

Reviews

No reviews yet

Be the first to review this server!