Skip to main content
Glama

pgx-mcp

CI PyPI Python License: MIT

An open-source MCP server that gives Claude real-time access to pharmacogenomics databases — turning genetic variant lookups and drug interaction checks from a 45-minute manual workflow into a single conversation.

Features

  • ClinVar: Variant clinical significance and pathogenicity

  • PharmGKB: Drug-gene interactions, clinical annotations, CPIC/DPWG dosing guidelines

  • gnomAD: Population allele frequencies across ancestries

  • Open Targets: Drug-target-disease associations, pharmacogenomics evidence

  • ClinicalTrials.gov: Clinical trial search (US and international)

Related MCP server: gwas-mcp

Installation

pip install pgx-mcp

Or with uvx:

uvx pgx-mcp

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

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

For local development:

{
  "mcpServers": {
    "pgx-mcp": {
      "command": "uv",
      "args": ["--directory", "/path/to/mcp-pharmacogenomics", "run", "pgx-mcp"]
    }
  }
}

Available Tools

Tool

Source

Description

lookup_variant_clinvar

ClinVar

Variant clinical significance

search_gene_variants_clinvar

ClinVar

List variants in a gene

get_drug_gene_interactions

PharmGKB

Clinical annotations for drug-gene pairs

get_drug_info

PharmGKB

Drug details and cross-references

get_dosing_guideline

PharmGKB

CPIC/DPWG dosing recommendations

search_drug_targets

Open Targets

Drug mechanisms, indications, PGx evidence

get_variant_frequency

gnomAD

Population allele frequencies

search_clinical_trials

ClinicalTrials.gov

Trial search with filters

get_trial_details

ClinicalTrials.gov

Full trial details

pgx_consultation

All

Comprehensive PGx consultation report

Example Usage

Ask Claude:

"My patient is a CYP2D6 poor metabolizer (*4/*4) and needs pain management. What should I prescribe?"

"What are the CPIC guidelines for clopidogrel and CYP2C19?"

"Are there any recruiting pharmacogenomics clinical trials in Germany?"

Configuration

All settings are optional and configured via environment variables (or a .env file):

Variable

Default

Description

PGX_MCP_NCBI_API_KEY

None

NCBI API key for higher ClinVar rate limits (3/s → 9/s)

PGX_MCP_CACHE_TTL_SECONDS

3600

Cache duration in seconds

Development

git clone https://github.com/Julius-Schmidt/mcp-pharmacogenomics.git
cd mcp-pharmacogenomics
pip install -e ".[dev]"
pytest

Roadmap

  • Demo video/GIF in README

  • EU Clinical Trials Register integration (currently no public API — European trials are covered through ClinicalTrials.gov registrations)

  • PharmVar star-allele nomenclature lookups

  • FDA Pharmacogenomic Biomarkers table integration

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Provides real-time access to medical data including drug interactions, ICD-10 codes, FDA adverse event reports, and clinical guidelines. It enables LLMs to query databases like openFDA, PubMed, and CMS for pharmaceutical and clinical information.
    Last updated
    1
    MIT
  • A
    license
    C
    quality
    F
    maintenance
    Provides AI-powered access to major biological databases for GWAS and bioinformatics research. Enables natural language queries for protein, gene, variant, pathway, and drug discovery analysis.
    Last updated
    44
    1
    MIT
  • A
    license
    -
    quality
    F
    maintenance
    Enables AI agents to query clinical genomics databases, retrieve supporting literature, analyze population genetics, and visualize biological pathways.
    Last updated
    23
    MIT

View all related MCP servers

Related MCP Connectors

  • Analyze biomarker panels with an MD-led clinical engine. Guideline-cited. Synthetic data only.

  • MCP gateway federating 21 biomedical MCP servers behind one endpoint: gnomAD, ClinVar, HPO, VEP.

  • Drug-drug interaction checker for clinical LLMs using RxNorm and DailyMed.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Julius-Schmidt/mcp-pharmacogenomics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server