Skip to main content
Glama

🧬 GWAS-MCP: Bioinformatics MCP Server

PyPI version License: MIT MCP

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-mcp

Claude 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.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.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

Search UniProt by protein name, gene, or ID

get_protein_details

Get detailed protein info (function, domains, GO terms)

search_ncbi_gene

Search NCBI Gene database

search_ensembl_gene

Get gene location and details from Ensembl

get_variant_info

Get SNP/variant info by rsID

get_interpro_domains

Get protein domain information

Clinical & Variant Tools

Tool

Description

search_clinvar

Search ClinVar for clinical variants

get_clinvar_variant

Get clinical interpretation for a variant

annotate_snps

Annotate SNPs with functional consequences

query_gwas_catalog

Query GWAS Catalog for associations

get_eqtl_data

Get eQTL data from GTEx

Protein Interaction Tools

Tool

Description

get_protein_interactions

Find interacting proteins (STRING)

get_interaction_network

Get network between multiple proteins

get_functional_enrichment

Pathway/GO enrichment analysis

Structure & Pathway Tools

Tool

Description

get_alphafold_structure

Get AI-predicted structure

search_alphafold

Search AlphaFold database

search_pdb_structures

Search PDB for 3D structures

get_pdb_structure

Get PDB structure details

search_kegg_pathway

Search KEGG pathways

get_kegg_pathway

Get pathway genes and details

get_gene_pathways

Find pathways for a gene

Drug Discovery Tools

Tool

Description

get_drug_targets

Find drugs targeting a gene (Open Targets)

get_disease_associations

Get disease associations with scores

search_open_targets

Search genes, diseases, or drugs

search_pharmgkb

Search PharmGKB database

get_drug_gene_interactions

Get drug-gene interactions

Genetic Disease Tools

Tool

Description

search_omim

Search OMIM for genetic diseases

get_gene_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.server

Project 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

UniProt

Protein

Protein sequences and annotations

Ensembl

Gene/Variant

Genome browser and variant data

NCBI Gene

Gene

Gene information database

ClinVar

Clinical

Clinical variant interpretations

GWAS Catalog

GWAS

Genome-wide association studies

GTEx

Expression

Expression QTL data

STRING

Interactions

Protein-protein interactions

InterPro

Domains

Protein families and domains

AlphaFold

Structure

AI-predicted structures

PDB

Structure

Experimental 3D structures

KEGG

Pathways

Metabolic and signaling pathways

Open Targets

Drug Discovery

Drug targets and disease associations

PharmGKB

Pharmacogenomics

Drug-gene interactions

OMIM

Diseases

Genetic disease database


🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments


πŸ“¬ Contact


Available Tools

44 tools
annotate_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

    C2.9/5.0

    Scored across 44 tools

    Disambiguation2/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query clinical genomics databases, retrieve supporting literature, analyze population genetics, and visualize biological pathways.
      16
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      16
      13
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP 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 npm
      MIT