SuperAPI AI Directory

synergy-age-mcp

🎖️ 🐍 🏠 ☁️ - Query the SynergyAge database of synergistic and antagonistic genetic interactions in longevity.

Open website Compare
PricingOpen sourceGitHub 开源项目 · 10 Stars
GitHub stars10GitHub

Sources: GitHub

About this tool

synergy-age-mcp is an MCP (Model Context Protocol) server implemented for the SynergyAge database, providing a standardized interface for accessing synergistic genetic intervention and aging research data. MCP enables AI assistants and agents to query comprehensive longevity datasets through a structured interface.

Purpose The server is aimed at aging and longevity research scenarios, helping researchers and developers query the SynergyAge database through AI assistants using natural language or SQL. It can be used both for research questions in chat interfaces and in AI development tools (such as Cursor, Windsurf, VS Code with Copilot) to directly access synergistic intervention data while coding, improving research efficiency.

Data Sources and Updates The server automatically downloads the latest SynergyAge database and documentation from the longevity-genie/bio-mcp-data repository on Hugging Face Hub (specifically the synergy-age subfolder), ensuring access to the latest data at all times without the need for manual file management. The data files include synergy-age.sqlite (the complete database) and synergyage_prompt.txt (database schema documentation and usage guide). Downloaded files are cached locally to reduce network requests, and local fallback files are supported for development and offline use.

Database Contents The SynergyAge database contains:

  • models: experimentally validated genetic interventions and their effects on the lifespan of various model organisms, with 12 columns in total, including id, tax_id, name, genes, temp, lifespan, effect, details, etc.
  • model_interactions: synergistic, antagonistic, and epistatic interactions between genetic interventions, with 3 columns in total, including interaction_type, phenotype_comparison, etc.
  • Coverage of multiple model organisms: Caenorhabditis elegans (C. elegans), Drosophila melanogaster, mice, and other aging research models.
  • Quantitative lifespan effects: precise measurements of intervention effects.

Types of Genetic Interactions The database focuses on different genetic interactions that affect lifespan:

  • Synergistic interactions: the effect produced by combined interventions is greater than the individual effectssum.
  • Antagonistic interaction: the effect produced by the combined intervention is less than expected, with one intervention suppressing the other.
  • Additive interaction: the effect produced by the combined intervention is equal to the sum of the individual effects.

Data Validation and Quality SynergyAge data undergoes three layers of rigorous validation:

  • Curation level: only papers with experimentally validated results are selected.
  • Import validation: automated checks ensure there are no missing values or incorrect data formats.
  • Post-deployment: outliers and random entries are manually investigated, and lifespan distributions are plotted for each mutant at different temperatures. The survival curves of all included papers are manually verified to ensure data accuracy.

Main Capabilities

  • Comprehensive search: supports multi-gene text search (comma- or semicolon-separated).
  • Categorized results: search results are divided into four categories: mutants with interventions in all searched genes, single-gene mutants (1-mutants), multi-gene mutants with subset interventions (n-mutants), and extended combinations containing additional genes.
  • Interactive network visualization: nodes represent lifespan models and edges represent genetic intervention relationships, enabling visual exploration of mutant relationships.
  • Epistasis analysis: evaluates genetic interactions between regulated genes.
  • External integration: links to KEGG pathways and model-specific databases to enhance context.

Available Tools The server provides three main tools:

  • synergyage_db_query(sql: str): executes read-only SQL queries against the SynergyAge database.
  • synergyage_get_schema_info(): retrieves detailed schema information, including tables, columns, and data descriptions.
  • synergyage_example_queries(): retrieves a list of example SQL queries with descriptions.

Available Resources

  • resource://db-prompt: complete database schema documentation and usage guide.
  • resource://schema-summary: formatted summary of tables and their purposes.

Usage It can be run directly via uvx without cloning the repository. Run modes include:

  • HTTP mode: starts a web server, accessible at http://localhost:3002/mcp,文档位于 http://localhost:3002/docs。
  • STDIO mode: suitable for MCP clients that communicate via standard input/output (recommended).
  • SSE mode: uses server-sent events for real-time communication.

Configuring AI Clients The repository provides preconfigured JSON files:

  • STDIO mode (recommended): use mcp-config-stdio.json.
  • HTTP mode: use mcp-config.json.
  • Local development: use mcp-config-stdio-debug.json. Point the AI client (such as Cursor, Windsurf, ClaudeDesktop, VS Code with Copilot, etc.) to the corresponding configuration file to integrate.

Inspecting the Server You can use npx to run MCP Inspector to inspect the methods provided by the server, supporting STDIO, HTTP, and local development modes. After running, you can http://127.0.0.1:6274 Explore tools and resources (ports may change across multiple runs).

Security features

  • Read-only access: only SELECT queries are allowed.
  • Input validation: blocks INSERT, UPDATE, DELETE, DROP, CREATE, ALTER, TRUNCATE operations.
  • Error handling: comprehensive error handling with informative messages.

Testing and validation The server provides comprehensive tests, including LLM-as-a-judge tests to evaluate the response quality of complex queries. LLM tests are disabled by default in CI. Running LLM agent tests (using the Gemini model) requires setting a Gemini API key in the .env file; other tests and basic functionality do not require an API key.

Use cases Examples of questions MCP can help answer:

  • What synergistic interactions involving daf-2 mutations exist in Caenorhabditis elegans?
  • Which genetic interventions show the largest positive effects on Caenorhabditis elegans lifespan?
  • What types of synergistic interactions have been found between longevity interventions?
  • How do insulin signaling pathway interventions compare across different model organisms?
  • Which interventions show negative effects on lifespan, and why?
  • Which genetic combinations show antagonistic interactions that reduce lifespan gains?
  • What is the relationship between daf-2 and daf-16 mutations in Caenorhabditis elegans longevity?
  • Which model organisms achieve the highest average lifespan extension from genetic interventions?
  • How do single mutants compare with double or triple mutants in terms of lifespan effects?
  • Which genes have received the most experimental validation across different studies?

Limitations

  • There is currently no Swagger/OpenAPI interface, and accessing the server directly in a browser will not display useful information; you need to use MCP Inspector or connect through an MCP client to view the available tools.
  • The database only contains experimentally validated genetic intervention data and does not cover unvalidated or non-genetic interventions.
  • The server only supports read-only queries and cannot modify data.
  • Using MCP Inspector requires installing Node.js and npm.
  • LLM agent tests require a Gemini API key, but it is not required for basic functionality.

Contributions Community contributions are welcome, including bug reports, feature requests, documentation improvements, tests, data quality, performance optimization, integration examples, tutorial videos, and user stories, etc.