gwas-mcp
This server provides GWAS/bioinformatics tools for genomic QC, association analysis, visualization, and biological database lookup.
Perform VCF/PLINK quality control: MAF, missingness, HWE, LD pruning, missingness reports
Run GWAS with linear/logistic regression and calculate genomic inflation, heritability, PRS, clumping
Analyze population structure via PCA and calculate/visualize PCA results
Identify significant SNPs and annotate SNPs with Ensembl VEP/gnomAD frequencies
Query GWAS Catalog and GTEx eQTL data
Create Manhattan, QQ, regional association, and PCA plots
Extract loci and prepare data for fine-mapping
Search protein/gene databases: UniProt, NCBI Gene, Ensembl, InterPro
Look up clinical variants and interpretations via ClinVar
Analyze protein interactions and functional enrichment via STRING
Retrieve structures from AlphaFold and PDB
Explore KEGG pathways and gene-pathway memberships
Investigate drug targets, drug-gene interactions, and disease associations via Open Targets, PharmGKB, and OMIM
Run gene set enrichment analysis using GO/KEGG through Enrichr
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gwas-mcp Get information about the BRCA1 gene"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
𧬠GWAS-MCP: Bioinformatics MCP Server
A powerful Model Context Protocol (MCP) server for GWAS and bioinformatics research. Seamlessly integrates with Claude Desktop and other MCP clients to provide AI-powered access to major biological databases.
β¨ Features
π¬ Protein & Gene Lookup
UniProt - Search proteins by name, gene, or ID
Ensembl - Gene information and variant details
NCBI Gene - Comprehensive gene database
π§ͺ Clinical & Variants
ClinVar - Clinical variant interpretations (pathogenic/benign)
GWAS Catalog - Genome-wide association studies
GTEx - Expression quantitative trait loci (eQTL)
π Protein Interactions & Networks
STRING - Protein-protein interactions
InterPro - Protein domains and families
ποΈ Structures & Pathways
AlphaFold - AI-predicted protein structures
PDB - Experimental 3D structures
KEGG - Metabolic and signaling pathways
π Drug Discovery
Open Targets - Drug target validation & disease associations
PharmGKB - Pharmacogenomics & drug-gene interactions
π₯ Genetic Diseases
OMIM - Online Mendelian Inheritance in Man
Related MCP server: openpgx
π Quick Start
Installation
pip install gwas-mcpClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gwas-bioinformatics": {
"command": "python",
"args": ["-m", "gwas_mcp.server"]
}
}
}Config file location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop
After adding the configuration, restart Claude Desktop to load the MCP server.
π οΈ Available Tools
Protein & Gene Tools
Tool | Description |
| Search UniProt by protein name, gene, or ID |
| Get detailed protein info (function, domains, GO terms) |
| Search NCBI Gene database |
| Get gene location and details from Ensembl |
| Get SNP/variant info by rsID |
| Get protein domain information |
Clinical & Variant Tools
Tool | Description |
| Search ClinVar for clinical variants |
| Get clinical interpretation for a variant |
| Annotate SNPs with functional consequences |
| Query GWAS Catalog for associations |
| Get eQTL data from GTEx |
Protein Interaction Tools
Tool | Description |
| Find interacting proteins (STRING) |
| Get network between multiple proteins |
| Pathway/GO enrichment analysis |
Structure & Pathway Tools
Tool | Description |
| Get AI-predicted structure |
| Search AlphaFold database |
| Search PDB for 3D structures |
| Get PDB structure details |
| Search KEGG pathways |
| Get pathway genes and details |
| Find pathways for a gene |
Drug Discovery Tools
Tool | Description |
| Find drugs targeting a gene (Open Targets) |
| Get disease associations with scores |
| Search genes, diseases, or drugs |
| Search PharmGKB database |
| Get drug-gene interactions |
Genetic Disease Tools
Tool | Description |
| Search OMIM for genetic diseases |
| Get all diseases for a gene |
π¬ Example Prompts
Once configured, ask Claude naturally:
Protein & Gene Queries
"Get information about the BRCA1 gene"
"Search UniProt for hemoglobin"
"What protein has UniProt ID P53_HUMAN?"
Clinical Variants
"Is the BRCA1 variant rs80357906 pathogenic?"
"Search ClinVar for TP53 variants"
Protein Interactions
"What proteins interact with TP53?"
"Find functional enrichment for BRCA1, ATM, and CHEK2"
Structures & Pathways
"Get the AlphaFold structure for TP53"
"What pathways is BRCA1 involved in?"
"Search PDB for insulin structures"
Drug Discovery
"What drugs target EGFR?"
"What diseases is BRAF associated with?"
Genetic Diseases
"Search OMIM for cystic fibrosis"
"What diseases are linked to the CFTR gene?"
β‘ Performance Features
Smart Caching - API responses cached for 1 hour to improve speed
Async Operations - All API calls are non-blocking
Error Handling - Graceful handling of API failures
π§ Development
From Source
# Clone the repository
git clone https://github.com/muslus/gwas-mcp.git
cd gwas-mcp
# Install dependencies
pip install -e .
# Run the server
python -m gwas_mcp.serverProject Structure
gwas-mcp/
βββ src/
β βββ gwas_mcp/
β βββ server.py # Main MCP server
β βββ tools/
β β βββ protein_tools.py # UniProt, NCBI, Ensembl
β β βββ clinical_tools.py # ClinVar, STRING
β β βββ structure_tools.py # PDB, KEGG, PharmGKB
β β βββ advanced_tools.py # AlphaFold, Open Targets, OMIM
β βββ resources/
β βββ db_resources.py # Database resources
βββ pyproject.toml
βββ README.md
βββ LICENSEπ Supported Databases
Database | Type | Description |
Protein | Protein sequences and annotations | |
Gene/Variant | Genome browser and variant data | |
Gene | Gene information database | |
Clinical | Clinical variant interpretations | |
GWAS | Genome-wide association studies | |
Expression | Expression QTL data | |
Interactions | Protein-protein interactions | |
Domains | Protein families and domains | |
Structure | AI-predicted structures | |
Structure | Experimental 3D structures | |
Pathways | Metabolic and signaling pathways | |
Drug Discovery | Drug targets and disease associations | |
Pharmacogenomics | Drug-gene interactions | |
Diseases | Genetic disease database |
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Model Context Protocol - The MCP specification
Anthropic - Claude AI and MCP development
All the amazing bioinformatics databases that make this possible
π¬ Contact
GitHub: @muslus
Available Tools
44 toolsannotate_snpsA
Annotate SNPs with gene names, functional consequences, and allele frequencies from Ensembl VEP and gnomAD.
Inputs: rsids (required), include_frequencies.
calculate_genomic_inflationA
Calculate genomic inflation factor (lambda GC) from GWAS summary statistics. Used to assess population stratification.
Inputs: sumstats_path (required), pvalue_column.
calculate_heritability_ldscB
Estimate SNP-heritability using LD Score regression. Requires GWAS summary statistics and LD scores.
Inputs: sumstats_path (required), ld_scores_path, sample_size.
calculate_missingnessB
Calculate per-individual and per-variant missingness rates from genotype data.
Inputs: plink_prefix (required), output_path.
calculate_pcaA
Perform Principal Component Analysis for population stratification. Uses PLINK files as input.
Inputs: plink_prefix (required), n_components, output_path.
calculate_prsB
Calculate Polygenic Risk Scores (PRS) for individuals using GWAS summary statistics and target genotypes.
Inputs: sumstats_path (required), target_plink_prefix (required), pvalue_threshold, clump_r2, +1 more.
clump_snpsC
Perform LD-based clumping of GWAS results to identify independent significant signals.
Inputs: sumstats_path (required), plink_prefix, p1, p2, +3 more.
create_manhattan_plotB
Create a Manhattan plot from GWAS summary statistics. Shows -log10(p-value) across chromosomes.
Inputs: sumstats_path (required), significance_threshold, suggestive_threshold, output_path, +1 more.
create_pca_plotB
Create a PCA scatter plot showing population structure. Plots PC1 vs PC2.
Inputs: pca_results_path (required), population_labels_path, output_path, title.
create_qq_plotA
Create a Quantile-Quantile (QQ) plot from GWAS p-values. Shows observed vs expected p-values.
Inputs: sumstats_path (required), output_path, title.
create_regional_plotB
Create a regional association plot (LocusZoom-style) for a specific genomic region around a lead SNP.
Inputs: sumstats_path (required), lead_snp (required), window_kb, output_path.
extract_locusB
Extract genotype data for a specific genomic region around a lead SNP for fine-mapping.
Inputs: plink_prefix (required), lead_snp (required), window_kb, output_prefix.
gene_set_enrichmentC
Perform gene set enrichment analysis using GO and KEGG pathways via Enrichr.
Inputs: genes (required), databases.
get_alphafold_structureA
Get AlphaFold AI-predicted protein structure by UniProt ID. Returns structure confidence and download links.
Inputs: uniprot_id (required).
get_clinvar_variantB
Get detailed ClinVar information for a specific variant by rsID or ClinVar ID.
Inputs: variant_id (required).
get_disease_associationsA
Get disease associations for a gene from Open Targets with evidence scores.
Inputs: gene (required), limit.
get_drug_gene_interactionsA
Get drug-gene interaction annotations from PharmGKB for a specific gene.
Inputs: gene (required).
get_drug_targetsA
Get drug target information from Open Targets for a gene. Shows drugs in development and approved drugs targeting this gene.
Inputs: gene (required).
get_eqtl_dataA
Get expression quantitative trait loci (eQTL) data from GTEx for a SNP and tissue.
Inputs: rsid (required), tissue, gene.
get_functional_enrichmentA
Get functional enrichment analysis for a list of proteins using STRING. Returns enriched GO terms, pathways, and domains.
Inputs: proteins (required), species.
get_gene_diseasesA
Get genetic diseases associated with a gene from OMIM and other sources.
Inputs: gene (required).
get_gene_pathwaysA
Find all KEGG pathways that a gene participates in.
Inputs: gene (required).
get_interaction_networkB
Get interaction network between a list of proteins from STRING. Shows how multiple proteins interact with each other.
Inputs: proteins (required), species.
get_interpro_domainsC
Get protein domain information from InterPro for a given UniProt ID or protein sequence.
Inputs: uniprot_id (required).
get_kegg_pathwayA
Get detailed KEGG pathway information including genes and description.
Inputs: pathway_id (required).
get_pdb_structureB
Get detailed information about a PDB structure by PDB ID.
Inputs: pdb_id (required).
get_protein_detailsA
Get detailed protein information from UniProt by UniProt accession ID. Returns full protein details including function, domains, and GO annotations.
Inputs: uniprot_id (required).
get_protein_interactionsB
Get protein-protein interaction network from STRING database. Shows what proteins interact with your protein of interest.
Inputs: protein (required), species, limit, score_threshold.
get_variant_infoA
Get detailed variant/SNP information from Ensembl by rsID. Returns position, alleles, clinical significance, and consequences.
Inputs: rsid (required).
identify_significant_snpsB
Filter GWAS results to identify genome-wide significant SNPs based on p-value threshold.
Inputs: sumstats_path (required), pvalue_threshold, suggestive_threshold, output_path.
ld_pruningA
Prune SNPs based on linkage disequilibrium (LD). Removes variants in high LD to create an independent set.
Inputs: plink_prefix (required), r2_threshold, window_size, step_size.
query_gwas_catalogA
Query the NHGRI-EBI GWAS Catalog for previously reported associations for a SNP or trait.
Inputs: rsid, trait, gene.
run_gwasC
Perform genome-wide association study using linear or logistic regression. Returns summary statistics including p-values, beta coefficients, and standard errors.
Inputs: plink_prefix (required), phenotype_path (required), covariate_path, model, +1 more.
search_alphafoldA
Search AlphaFold database for predicted structures by gene name or protein name.
Inputs: query (required), organism.
search_clinvarB
Search ClinVar for clinical variant interpretations. Find pathogenic/benign classifications for genetic variants.
Inputs: query (required), limit.
search_ensembl_geneA
Search Ensembl for gene information by gene symbol or Ensembl ID. Returns gene location, biotype, and description.
Inputs: gene (required), species.
search_kegg_pathwayA
Search KEGG for metabolic and signaling pathways by name or gene.
Inputs: query (required), organism.
search_ncbi_geneB
Search NCBI Gene database for gene information by gene symbol, name, or ID.
Inputs: query (required), organism.
search_omimB
Search OMIM (Online Mendelian Inheritance in Man) for genetic diseases and phenotypes.
Inputs: query (required), limit.
search_open_targetsB
Search Open Targets Platform for genes, diseases, or drugs.
Inputs: query (required).
search_pdb_structuresB
Search PDB for protein 3D structures by protein name, gene name, or UniProt ID.
Inputs: query (required), limit.
search_pharmgkbB
Search PharmGKB for drug-gene interactions and pharmacogenomics data.
Inputs: query (required), resource_type.
search_uniprotA
Search UniProt for protein information by protein name, gene name, or UniProt ID. Returns protein function, sequence info, and associated genes.
Inputs: query (required), organism, limit.
vcf_quality_checkA
Perform quality control on a VCF file. Filters variants based on MAF, missingness, and Hardy-Weinberg equilibrium.
Inputs: vcf_path (required), maf_threshold, missingness_threshold, hwe_pvalue, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 44 tools
Many tools have overlapping purposes: multiple search tools for genes/proteins (search_ensembl_gene, search_ncbi_gene, search_uniprot) and multiple protein annotation tools (get_protein_details, get_protein_interactions, get_interaction_network). This creates ambiguity for an agent trying to select the right tool.
Tool names follow a verb_noun pattern with underscores (e.g., annotate_snps, create_manhattan_plot). However, verbs are mixed (get_, search_, calculate_, create_), which is mostly consistent but not perfectly uniform. Minor deviations like 'calculate_genomic_inflation' vs 'ld_pruning' (no verb) reduce consistency slightly.
44 tools is high for a GWAS server. Many tools are for searching external databases (10+ search_* tools) that could be consolidated. The server's scope is broad, but the number seems excessive and could overwhelm agents.
The server covers core GWAS analysis (run_gwas, clump_snps, create_manhattan_plot) and post-GWAS annotation (annotate_snps, enrichment, protein interactions). However, missing meta-analysis, imputation, and fine-mapping tools. Many search tools duplicate functionality, so coverage is moderate.
Maintenance
Related MCP Connectors
Query, explore, and manage your databases through natural conversation.
Find open biology and chemistry AI models, bioinformatics tools and databases, and run them online.
Pharmacogenomics for AI agents: cited drugβgene, gene and rsID lookups plus a medication screen.
Connect AI clients to biomedical data and tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query clinical genomics databases, retrieve supporting literature, analyze population genetics, and visualize biological pathways.16MIT
- AlicenseAqualityDmaintenanceEnables AI-driven pharmacogenomic analysis by querying structured genetic variant, drug response, and disease risk data. Supports natural language questions about medications, traits, and health risks based on user genome data, with privacy-first local execution.1613MIT
- AlicenseNot gradedqualityDmaintenanceProvides programmatic access to curated SNP data by trait, enabling LLM-powered applications to search, interpret, and discover genetic variants.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for querying the GWAS Catalog (EBI/NHGRI), a curated catalog of genome-wide association studies. It enables AI agents to search and retrieve study data via natural language or direct tool calls.68 npmMIT