Unofficial GTEx Portal MCP Server
A comprehensive Model Context Protocol (MCP) server providing access to the GTEx (Genotype-Tissue Expression) Portal API. This server enables AI assistants to query and analyze genomics data from the GTEx project through 25 specialized tools across three categories.
Developed by
Overview
The GTEx Portal contains gene expression and regulatory data from 54 non-diseased tissue sites across nearly 1000 individuals. This MCP server provides structured access to:
Expression Analysis: Gene expression patterns and tissue specificity (7 tools)
Association Analysis: eQTL/sQTL analysis and genetic associations (6 tools)
Reference/Dataset: Gene/variant lookups and metadata (12 tools)
𧬠Complete Tool Suite (25/25 Implemented)
Expression Analysis Tools (7 tools)
get_gene_expression
- Get gene expression data across tissues for specific genesget_median_gene_expression
- Get median gene expression levels across tissuesget_top_expressed_genes
- Get top expressed genes in specific tissuesget_tissue_specific_genes
- Get genes with tissue-specific expression patternsget_clustered_expression
- Get clustered gene expression data for visualizationcalculate_expression_correlation
- Calculate Pearson correlation between genes across tissuesget_differential_expression
- Get differential gene expression between tissue groups
Association Analysis Tools (6 tools)
get_eqtl_genes
- Get genes with eQTL associations for genomic regionsget_single_tissue_eqtls
- Get single-tissue eQTL results for genescalculate_dynamic_eqtl
- Calculate dynamic eQTL effects across tissuesget_multi_tissue_eqtls
- Get multi-tissue eQTL meta-analysis resultsget_sqtl_results
- Get splicing QTL (sQTL) results for genesanalyze_ld_structure
- Analyze linkage disequilibrium structure around variants
Reference/Dataset Tools (12 tools)
search_genes
- Search for genes by symbol, name, or descriptionget_gene_info
- Get detailed information about specific genesget_variants
- Get genetic variants in genomic regionsget_tissue_info
- Get information about GTEx tissues and sample countsget_sample_info
- Get GTEx sample metadata and demographicsget_subject_phenotypes
- Get subject phenotype data and demographicsvalidate_gene_id
- Validate and normalize gene identifiersvalidate_variant_id
- Validate variant identifiers and genomic coordinatesget_dataset_info
- Get information about available GTEx datasetssearch_transcripts
- Search for gene transcripts and isoformsget_gene_ontology
- Get Gene Ontology annotations for genesconvert_coordinates
- Convert between genomic coordinate systems (hg19/hg38)
š Installation
Clone or download the server files
Install dependencies:
Build the server:
Usage
Running the Server
Start the server for testing:
Use the MCP inspector for development:
Integrating with Claude Desktop
Add the server to your Claude Desktop configuration file:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Replace /path/to/gtex-server
with the actual path to your server installation.
š Example Usage
Search for Genes
Gene Expression Analysis
Tissue-Specific Analysis
eQTL Analysis
Expression Correlation
Coordinate Conversion
š¬ Scientific Applications
This server enables comprehensive genomics research including:
Tissue Expression Profiling: Identify genes with tissue-specific or tissue-enriched expression
Co-expression Analysis: Find genes with correlated expression patterns
eQTL Mapping: Discover expression quantitative trait loci and regulatory variants
Comparative Genomics: Compare expression across different tissue types
Functional Annotation: Link genes to biological processes via Gene Ontology
Variant Analysis: Explore genetic variation and its impact on gene expression
šļø API Data Source
This server connects to the GTEx Portal API v2:
Base URL: https://gtexportal.org/api/v2/
Documentation: https://gtexportal.org/api/v2/redoc
Data: GTEx v8 dataset (15,201 RNA-Seq samples from 54 tissues, 948 donors)
Genome Build: GRCh38/hg38
š Data Types and Formats
Gene Identifiers
GENCODE IDs: e.g.,
ENSG00000012048.20
(BRCA1)Gene Symbols: e.g.,
BRCA1
,TP53
,INSR
Tissue Identifiers
Tissue Site Detail IDs: e.g.,
Muscle_Skeletal
,Brain_Cortex
,Heart_Left_Ventricle
Use
get_tissue_info
tool to see all 54 available tissues
Genomic Coordinates
Chromosome: e.g.,
chr17
,chrX
,chrY
Positions: 1-based genomic coordinates
Genome Build: GRCh38/hg38 (with hg19 conversion available)
Expression Values
Units: TPM (Transcripts Per Million)
Statistics: Mean, median, standard deviation across samples
Detection: Percentage of samples with detectable expression
ā” Performance & Reliability
Error Handling: Comprehensive validation and graceful error recovery
Rate Limiting: Automatic handling of API rate limits
Timeouts: 30-second timeouts with retry logic
Caching: Intelligent caching to improve response times
Pagination: Automatic handling of large result sets
Validation: Input parameter validation and normalization
š ļø Development
Project Structure
Development Commands
Technical Implementation
Language: TypeScript with ES modules
Framework: Model Context Protocol SDK v0.6.0
Architecture: Modular design with separate handler classes
API Client: Axios with comprehensive error handling
Data Processing: Statistical analysis and data formatting
Type Safety: Complete type definitions for all GTEx API responses
š References
GTEx Portal - Main GTEx data portal
GTEx API Documentation - Complete API reference
Model Context Protocol - MCP specification
GTEx Consortium Nature Paper - Primary publication
GTEx Analysis Methods - Statistical methods
šÆ Status: Production Ready
ā
All 25 tools implemented and tested
ā
Complete TypeScript implementation
ā
Comprehensive error handling
ā
Live GTEx Portal API integration
ā
MCP 1.0 compliant
ā
Ready for genomics research
š License
MIT License - Feel free to use, modify, and distribute for research and commercial applications.
This server bridges the GTEx Portal's extensive genomics database with the Model Context Protocol, enabling powerful genomics analysis through AI assistants.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Enables AI assistants to query and analyze genomics data from the GTEx Portal through 25 specialized tools for gene expression analysis, eQTL/sQTL associations, and genetic variant lookups across 54 human tissue types.