PrimeKG Precision Medicine Knowledge Graph
Lets Claude query PrimeKG to explore links between genes, drugs, diseases and phenotypes.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 6/10Last updated: Aug 9, 2026
What it does
Wires Claude Code into PrimeKG, Harvard's precision-medicine knowledge graph (~129K nodes, 4M edges, 29 relation types), through a small Python query layer.
search_nodes: resolve gene, protein, drug, disease or phenotype names to graph IDsget_neighbors: pull direct associations (drug-target, disease-gene, GWAS, contraindications...)get_disease_context: one-call summary of genes, drugs and phenotypes tied to a diseaserelation_typefiltering to isolate a single evidence type
Who it's for
- Drug discovery researchers hunting for targets or repurposing hypotheses
- Bioinformatics and translational scientists mapping symptoms to diseases and genes
- Grad students and analysts doing network pharmacology or multiscale biology work
Example uses
- "Summarize genes and approved drugs linked to Alzheimer's disease in PrimeKG" → runs
get_disease_contextand tabulates the result - "List metformin's protein targets, then find other diseases tied to those proteins" →
drug_proteinfilter plus a 2-hop expansion to surface repurposing candidates - "Given this phenotype list, rank the best-matching rare diseases" → overlap analysis over
disease_phenotypeedges
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/primekg folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/primekg/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git && mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/primekg ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Copy the skill into Claude's skills folder:
mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/primekg ~/.claude/skills/ - Install the Python dependency:
pip install pandas - Download
kg.csvfrom the PrimeKG Harvard Dataverse — it is a large file, so allow disk space and time - Point the scripts at your copy:
export PRIMEKG_DATA=/path/to/kg.csv(ignore the leftover Windows path in the skill docs) - Restart Claude Code and try a prompt such as "Find Alzheimer-associated genes in PrimeKG".
View source on GitHub ↗License: MIT