Pharmacogenomics Guidelines MCP Server logo

Pharmacogenomics Guidelines MCP Server

by @cyanheads

Search CPIC pharmacogenomics data, translate diplotypes, and retrieve prescribing recommendations through six read-only MCP tools.

Install Pharmacogenomics Guidelines MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cyanheads-pharmacogenomics-guidelines-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/pharmacogenomics-guidelines-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @cyanheads/pharmacogenomics-guidelines-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@cyanheads/pharmacogenomics-guidelines-mcp-server connects MCP clients to public CPIC pharmacogenomics data through six read-only tools. It searches gene–drug pairs and guidelines, examines allele evidence, translates diplotypes or HLA status, and retrieves prescribing recommendations or example CDS alerts. Run it over STDIO, a local Streamable HTTP server, or the public hosted MCP endpoint without an API key. Reach for it when an agent needs structured CPIC evidence or must match supplied gene results against recommendation prerequisites.

Use cases

  • Search evaluated gene–drug pairs by CPIC level or identifier
  • Translate a patient diplotype into a source gene result
  • Match supplied gene results against prescribing recommendations
  • Inspect allele evidence and population frequencies
  • Discover accepted genes, phenotypes, and input formats

Key features

  • CPIC gene–drug pair and guideline search
  • Diplotype and HLA allele-status lookup
  • Recommendation browsing and genotype matching
  • Allele function, evidence, and frequency queries
  • Example CDS test-alert retrieval
  • STDIO and Streamable HTTP operation

Tools6

What Pharmacogenomics Guidelines MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~155 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 12d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @cyanheads/pharmacogenomics-guidelines-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads726Package downloads in the last 30 days.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed6Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Pharmacogenomics Guidelines MCP Server works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pharmacogenomics Guidelines MCP Server

@cyanheads/pharmacogenomics-guidelines-mcp-server is an MCP server that connects AI clients to public CPIC pharmacogenomics data. Its main tools search gene–drug pairs and guidelines, translate diplotypes, inspect alleles, retrieve prescribing recommendations, and list reference values. All six tools are read-only and require no API key.

Install it through an MCP client using the package's npx command or the provided client installation links. Claude Desktop, Cursor, and VS Code have dedicated installation links, and the package is also available as an MCP bundle and Docker image.

Yes, Cursor has a dedicated installation link for the server. Cursor can launch the package with npx, and the server also exposes a public Streamable HTTP endpoint for MCP connections.

No, it does not require an API key. The tools read public CPIC Database API data and can run through STDIO, a local Streamable HTTP server, or the public hosted MCP endpoint.

Use `pgx_get_recommendations` with a drug, genotype, or gene-results mode and provide source-supported phenotype, activity-score, or allele-status values. Use `pgx_list_reference` first to inspect valid result types, then review statuses and any missing-gene diagnostics.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPharmacogenomics Guidelines MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cyanheads-pharmacogenomics-guidelines-mcp-server?style=directory)](https://allmcps.com/mcp/cyanheads-pharmacogenomics-guidelines-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/cyanheads-pharmacogenomics-guidelines-mcp-server"><img src="https://allmcps.com/api/badge/cyanheads-pharmacogenomics-guidelines-mcp-server?style=directory" alt="Pharmacogenomics Guidelines MCP Server on AllMCPs" /></a>