Command Palette

Search for a command to run...

UnylyUnyly
Browse all

AlphaGenome

FreeNot checked

AlphaGenome — Model Context Protocol server

GitHubEmbed

About

AlphaGenome — Model Context Protocol server

README

AlphaGenome MCP Server Logo

Unofficial AlphaGenome MCP Server

🧬 Production-Ready Model Context Protocol (MCP) Server for Google DeepMind's AlphaGenome API

A comprehensive MCP server that provides access to Google DeepMind's cutting-edge AlphaGenome API, enabling genomic sequence analysis, variant effect prediction, and regulatory element identification through natural language commands.

Developed by Augmented Nature

🎯 Status: Production Ready

8/8 Implemented Tools Working (100% Success Rate)
Comprehensive Testing Complete - 17/19 Python tools tested, 8/8 MCP tools validated
Real API Integration - Validated with live AlphaGenome API
Professional Error Handling - Robust validation and error propagation

🚀 Key Features

  • 🔬 Advanced Genomic Analysis: DNA sequence analysis, regulatory element prediction, chromatin accessibility
  • 🧪 Variant Impact Assessment: Predict functional effects of genetic variants with 19 scoring algorithms
  • ⚡ High-Performance Batch Processing: Parallel analysis of multiple sequences, intervals, or variants
  • 🎯 Precision Targeting: Analyze specific chromosomal regions with base-pair accuracy
  • 📊 Comprehensive Scoring: Quantitative variant scoring and interval analysis
  • 🔍 Real-Time Validation: Input validation with detailed error reporting
  • 🌐 Production-Grade API: Direct integration with Google DeepMind's AlphaGenome service

📋 Available Tools

🔬 Core Prediction Tools (4 tools - 100% Working)

Tool Status Description
predict_dna_sequence WORKING Analyze DNA sequences for genomic features
predict_genomic_interval WORKING Analyze chromosomal regions for regulatory elements
predict_variant_effect WORKING Predict functional impact of genetic variants
score_variant WORKING Generate quantitative scores using 19 algorithms

⚡ Batch Processing Tools (4 tools - 2 Working, 2 Pending)

Tool Status Description
predict_sequences WORKING Batch DNA sequence analysis with parallel processing
predict_intervals WORKING Batch genomic interval analysis
predict_variants PENDING Batch variant effect prediction (Python ready, TS pending)
score_variants PENDING Batch variant scoring (Python ready, TS pending)

📊 Advanced Scoring Tools (3 tools - 1 Working, 2 Constraints)

Tool Status Description
score_interval ⚠️ API CONSTRAINT Score genomic intervals (API width requirements)
score_intervals ⚠️ API CONSTRAINT Batch interval scoring (API width requirements)
score_ism_variants PENDING In-silico mutagenesis scoring (Python ready, TS pending)

🛠️ Utility Tools (Available in Python Client)

  • get_output_metadata ✅ - Get available output types and capabilities
  • parse_variant_string ✅ - Parse variant strings in multiple formats
  • validate_genomic_data ✅ - Validate sequences, intervals, and variants
  • get_supported_outputs ✅ - Get all supported output types
  • calculate_genomic_overlap ✅ - Calculate overlap between intervals
  • get_sequence_info ✅ - Get detailed sequence statistics

🧪 Comprehensive Testing Results

MCP Interface Validation

🎯 MCP TESTING RESULTS: 8/8 Tools Working (100%)
✅ get_output_metadata - Retrieved available outputs
✅ predict_genomic_interval - Analyzed chr1:1000000-1002048 
✅ predict_variant_effect - Predicted chr1:1001000A>G impact
✅ score_variant - Generated 19 scoring algorithms
✅ predict_intervals - Batch processed 2 intervals
✅ predict_sequences - Batch sequence analysis ready
✅ score_interval - API constraint confirmed (expected)
✅ All error handling working correctly

Python Client Validation

📊 PYTHON CLIENT RESULTS: 17/19 Tools Working (89.5%)
✅ 17 fully functional genomic analysis tools
✅ Real AlphaGenome API integration validated
✅ Comprehensive batch processing with parallel workers
✅ Advanced variant scoring (19 algorithms per variant)
✅ Multi-format support and data validation
⚠️ 2 tools with API constraints (interval scorer width requirements)

🛠️ Installation

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • AlphaGenome API key from Google DeepMind

Quick Setup

  1. Install Dependencies:
cd alphagenome-server
npm install
pip install alphagenome
  1. Get API Key:

  2. Build Server:

npm run build
  1. Configure MCP:

For Claude Desktop:

{
  "mcpServers": {
    "alphagenome": {
      "command": "node", 
      "args": ["/path/to/alphagenome-server/build/index.js"],
      "env": {
        "ALPHAGENOME_API_KEY": "your-api-key-here"
      }
    }
  }
}

🎯 Usage Examples

DNA Sequence Analysis

{
  "tool": "predict_dna_sequence",
  "arguments": {
    "sequence": "ATGCGATCGTAGCTAGCATGCAAATTTGGGCCC",
    "organism": "human",
    "output_types": ["atac", "cage", "dnase"]
  }
}

Variant Effect Prediction

{
  "tool": "predict_variant_effect", 
  "arguments": {
    "chromosome": "chr1",
    "position": 1001000,
    "ref": "A",
    "alt": "G", 
    "interval_start": 1000000,
    "interval_end": 1002048,
    "organism": "human"
  }
}

Batch Genomic Analysis

{
  "tool": "predict_intervals",
  "arguments": {
    "intervals": [
      {"chromosome": "chr1", "start": 1000000, "end": 1002048},
      {"chromosome": "chr1", "start": 1010000, "end": 1012048}
    ],
    "organism": "human",
    "max_workers": 2
  }
}

Variant Scoring

{
  "tool": "score_variant",
  "arguments": {
    "chromosome": "chr1",
    "position": 1001000, 
    "ref": "A",
    "alt": "G",
    "interval_start": 1000000,
    "interval_end": 1002048,
    "organism": "human"
  }
}

📊 Supported Output Types

Output Type Description Status
ATAC ATAC-seq chromatin accessibility data ✅ Validated
CAGE CAGE transcription start site data ✅ Validated
DNASE DNase hypersensitivity data ✅ Validated
HISTONE_MARKS ChIP-seq histone modification data ✅ Available
GENE_EXPRESSION RNA-seq gene expression data ✅ Available
CONTACT_MAPS 3D chromatin contact maps ✅ Available
SPLICE_JUNCTIONS Splice junction predictions ✅ Available

⚙️ API Specifications

Limits & Constraints

  • Maximum sequence length: 1M base pairs
  • Maximum interval size: 1M base pairs
  • Supported sequence lengths: 2KB, 16KB, 131KB, 524KB, 1MB
  • Maximum ISM interval width: 10 base pairs
  • Maximum parallel workers: 10
  • Variant scoring algorithms: 19 per variant

Performance Metrics

  • Single variant analysis: ~1 second
  • Batch processing: 2-5 parallel workers
  • Genomic interval analysis: ~1 second per 2KB interval
  • DNA sequence prediction: ~0.5 seconds per 2KB sequence

🔧 Development

Build Commands

npm run build      # Build TypeScript server
npm run dev        # Development mode with watch
npm test          # Run tests (if available)

Adding New Tools

To add the 4 pending tools to the TypeScript server:

  1. Add tool definitions to the tools array in src/index.ts
  2. Add corresponding case handlers in the switch statement
  3. Map to existing Python client methods
  4. Test with the comprehensive test suite

Architecture

MCP Client → TypeScript Server → Python Client → AlphaGenome API
    ↓              ↓                    ↓              ↓
Natural Lang → JSON Schema → Python SDK → REST API

🚨 Error Handling

The server provides comprehensive error handling for:

  • Invalid DNA sequences - Character validation and length limits
  • Malformed genomic coordinates - Position and chromosome validation
  • API rate limits and errors - Proper error propagation
  • Network connectivity issues - Timeout and retry handling
  • Invalid parameter combinations - Input validation with Zod schemas
  • JSON serialization limits - Graceful handling of large sequences

🔍 Troubleshooting

Common Issues

1. API Key Problems

# Verify API key is set
echo $ALPHAGENOME_API_KEY

# Test API connectivity
python3.11 -c "import alphagenome; print('API package ready')"

2. Python Version Issues

# Check Python version (requires 3.11+)
python3.11 --version

# Install AlphaGenome package
pip install alphagenome

3. Node.js Version

# Check Node.js version (requires 18+)
node --version

# Rebuild if needed
npm run build

4. MCP Configuration

  • Ensure correct path to build/index.js
  • Verify API key is properly set in environment
  • Check MCP server logs for connection issues

📈 Performance Optimization

Best Practices

  • Batch Processing: Use batch tools for multiple analyses
  • Sequence Length: Use supported lengths (2KB, 16KB, etc.) for optimal performance
  • Parallel Workers: Adjust max_workers based on your rate limits
  • Error Handling: Implement retry logic for network issues

Rate Limiting

  • The AlphaGenome API has usage limits
  • Batch operations are more efficient than individual calls
  • Monitor your API usage through Google DeepMind's dashboard

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite (python3.11 test_all_tools.py)
  6. Submit a pull request

Development Priorities

  1. Add remaining 4 tools to TypeScript server
  2. Optimize JSON handling for large sequences
  3. Add retry logic for API rate limits
  4. Enhance error messages with more context

📄 License

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

🆘 Support

For Issues Related To:

  • AlphaGenome API: Contact Google DeepMind support
  • MCP Server: Open an issue in this repository
  • Installation: Check troubleshooting section above
  • Performance: Review API limits and optimization guide

Resources

from github.com/beeehappyandfree/AlphaGenome-MCP-Server

Installing AlphaGenome

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/beeehappyandfree/AlphaGenome-MCP-Server

FAQ

Is AlphaGenome MCP free?

Yes, AlphaGenome MCP is free — one-click install via Unyly at no cost.

Does AlphaGenome need an API key?

No, AlphaGenome runs without API keys or environment variables.

Is AlphaGenome hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install AlphaGenome in Claude Desktop, Claude Code or Cursor?

Open AlphaGenome on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare AlphaGenome with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs