# @cyanheads/pharmacogenomics-guidelines-mcp-server [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/cyanheads/pharmacogenomics-guidelines-mcp-server  
**GitHub Stars:** 1  
**npm Downloads (last month):** 726  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cyanheads-pharmacogenomics-guidelines-mcp-server

## Description
Find pharmacogenomics guidelines, translate diplotypes, and retrieve prescribing recommendations via MCP. STDIO or Streamable HTTP.

## Tools
Capabilities this server exposes over MCP:

- **pgx_search_pairs** — Search evaluated gene–drug pairs by gene, drug, RxNorm/ATC identifier, CPIC level or testing label
- **pgx_get_guideline** — Retrieve guideline coverage by ID, gene or drug, with related drugs and pairs
- **pgx_lookup_diplotype** — Translate a diplotype or HLA allele status into its gene result, activity score and lookup key
- **pgx_get_recommendations** — Browse or match source prescribing recommendations and opt-in example CDS test alerts
- **pgx_search_alleles** — Inspect allele function, evidence, definition metadata and population frequencies
- **pgx_list_reference** — List genes, gene-specific results, controlled vocabulary and input formats

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

```json
"mcpServers": {
  "pharmacogenomics-guidelines-mcp-server": {
    "command": "npx",
    "args": ["-y","@cyanheads/pharmacogenomics-guidelines-mcp-server"]
  }
}
```

## Documentation

## What @cyanheads/pharmacogenomics-guidelines-mcp-server does

@cyanheads/pharmacogenomics-guidelines-mcp-server exposes public CPIC Database API data through MCP. Its six read-only tools cover evaluated gene–drug pairs, guideline coverage, allele annotations, diplotype interpretation, prescribing recommendations, and reference data. Results can include ClinPGx testing labels, guideline links, allele evidence, population frequencies, gene-specific results, activity scores, and lookup keys.

The server is suited to agents working with pharmacogenomics evidence rather than to systems that need to write clinical data or modify source records. It can help discover whether a gene–drug pair has been evaluated, identify the guideline associated with a drug, interpret a laboratory result, and find recommendations that satisfy explicitly supplied genetic prerequisites.

## How it works

The tools query the public CPIC Database API and return paged, structured results. `pgx_search_pairs` supports filters such as gene, drug, RxNorm or ATC identifier, CPIC level, provisional status, testing label, and recommendation use. `pgx_get_guideline` looks up coverage by guideline ID, gene, or drug and can return related drugs or pairs.

`pgx_lookup_diplotype` accepts star-allele notation, copy-number notation, HLA allele status, and supported non-star forms. It returns matching source records with the gene result, activity score, EHR priority, and lookup key. Ambiguous matches remain unresolved instead of being reduced to a single interpretation.

`pgx_get_recommendations` supports exploratory browsing and matching. Inputs can be a drug, genotype, or gene results, with optional phenotype, activity score, allele status, population, and drug selectors. Matching requires every gene in a recommendation lookup key to have an explicit compatible result. The tool reports statuses such as `matched`, `no_match`, `incomplete`, and `unresolved`, and identifies missing genes for incomplete matches.

## Setup and configuration

The package can be launched as an MCP process with `npx`, including the package command used by the Claude Desktop, Cursor, and VS Code installation links. It also supports a local Streamable HTTP mode and has a public hosted endpoint at `https://pharmacogenomics-guidelines.caseyjhand.com/mcp`.

No API key is required. The server is also distributed as a Docker image and as an installable MCP bundle. The published agent skill explains identifier sources, diplotype notation, and the steps between a laboratory result and a recommendation; plugin installations and the bundle load it directly, while MCP clients can read it as an MCP resource.

## Tools and capabilities

- `pgx_search_pairs`: Find evaluated gene–drug pairs with combined filters and pagination.
- `pgx_get_guideline`: Retrieve guideline summaries, associated drugs, or associated pairs.
- `pgx_lookup_diplotype`: Convert supported diplotype or HLA status input into source gene results.
- `pgx_get_recommendations`: Browse recommendations, match gene results, or retrieve example CDS test alerts.
- `pgx_search_alleles`: Inspect allele function, evidence, definitions, and population frequencies.
- `pgx_list_reference`: Discover genes, gene-specific result types, controlled vocabulary, and accepted input formats.

Pagination uses offsets returned by the tools. Pair and guideline pages default to 25 items, while recommendation queries default to 10. Oversized requests are capped and reported in notices. Reference data is especially useful before recommendation matching because source lookup methods determine whether phenotype, activity-score, or allele-status inputs are valid.

## Limitations and notes

The tools are read-only and operate on CPIC source coverage. They do not calculate phenotypes from arbitrary data; diplotype interpretation depends on a matching source record, and ambiguous matches are not resolved automatically. Recommendation matching also distinguishes incomplete inputs from non-matches and does not include prescribing text for rows that still require genes.

Drug and results matching requires overlap with at least one supplied gene, rejects conflicts on overlapping prerequisites, and ignores unrelated validated panel genes. Exact population values and source-supported result values are required where applicable. Retired gene–drug pairs are excluded unless explicitly requested.

_Full upstream README: https://allmcps.com/mcp/cyanheads-pharmacogenomics-guidelines-mcp-server/readme_

