mcp-space-life-sciences
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Space Life Science KGs
A unified Model Context Protocol (MCP) server integrating three major biomedical knowledge graphs for space life sciences research.
Overview
This MCP server creates a comprehensive integration layer connecting three complementary knowledge graphs:
GeneLab-SPOKE - NASA space biology experiments with differential gene expression
PrimeKG - Precision medicine knowledge graph with 129K biomedical entities
SPOKE-OKN - Open Knowledge Network with social determinants of health and environmental factors
By bridging these graphs through common node types (genes, diseases, anatomy, pathways, drugs, GO terms), researchers can perform powerful cross-graph queries to understand the biological impacts of spaceflight and discover therapeutic interventions.
Related MCP server: BioBTree
Key Features
š Multi-Graph Integration: Seamlessly query across 3 knowledge graphs
𧬠8 Common Node Types: Genes, Diseases, Anatomy, Pathways, Drugs, and 3 GO categories
š 30+ Analysis Tools: From gene enrichment to drug-disease mechanisms
š 7+ Visualizations: Networks, heatmaps, pathway enrichment plots
š Geospatial Context: Link biological findings to geographic locations via SPOKE-OKN
š Therapeutic Discovery: Find drug candidates for space-induced changes
Knowledge Graph Sources
GeneLab-SPOKE
Purpose: NASA space biology experiments
Content: Differential gene expression from spaceflight conditions
GitHub: sbl-sdsc/mcp-genelab
Source: BaranziniLab/spoke_genelab
PrimeKG
Purpose: Precision medicine knowledge graph
Content: 129,375 biomedical entities, 8.1M relationships
SPOKE-OKN
Purpose: Open Knowledge Network with social & environmental determinants
Content: Disease prevalence, chemical exposures, SDoH by location
GitHub: sbl-sdsc/mcp-proto-okn
Overview: SPOKE-OKN Docs
Website: proto-okn.net
Endpoint: frink.renci.org/registry/kgs/spoke-okn
Integration Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā GeneLab-SPOKE (Neo4j) ā
ā Space Biology | Differential Expression ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Gene ā Assay ā Study ā Tissue ā Cell Type ā Protein ā
āāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāā
ā ā
ā Common Identifiers: ā
ā ⢠Genes: gene_symbol ā
ā ⢠Diseases: mondo_id ā
ā ⢠Anatomy: uberon_id ā
ā ⢠GO Terms: go_id ā
ā¼ ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Space Life Sciences Integration Server ā
ā (This Repository) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā ⢠Cross-graph queries ⢠Enrichment analysis ā
ā ⢠Mechanism discovery ⢠Therapeutic identification ā
ā ⢠Visualization generation ⢠Geospatial contextualization ā
āāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāā
ā ā
ā¼ ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā PrimeKG (Neo4j/DataFrame) ā ā SPOKE-OKN (SPARQL) ā
ā Precision Medicine KG ā ā Open Knowledge Network ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā⤠āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā gene/protein ā disease ā ā ChemicalEntity ā Disease ā
ā anatomy ā pathway ā ā AdministrativeArea ā SDoH ā
ā drug ā 3 GO types ā ā Gene ā OrganismTaxon ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāInstallation
Prerequisites
Python 3.10 or higher
Access to knowledge graph endpoints (GeneLab Neo4j, PrimeKG, SPOKE-OKN SPARQL)
Install via pip
pip install mcp-space-life-sciencesInstall from source
git clone https://github.com/asaravia-butler/MCP_Space_Life_Science_KGs.git
cd MCP_Space_Life_Science_KGs
pip install -e .Configuration
Set environment variables for knowledge graph access:
# GeneLab-SPOKE
export GENELAB_NEO4J_URI="bolt://localhost:7687"
export GENELAB_NEO4J_USER="neo4j"
export GENELAB_NEO4J_PASSWORD="your_password"
# PrimeKG (if using Neo4j backend)
export PRIMEKG_NEO4J_URI="bolt://localhost:7688"
export PRIMEKG_NEO4J_USER="neo4j"
export PRIMEKG_NEO4J_PASSWORD="your_password"
# Or use PrimeKG data path for DataFrame backend
export PRIMEKG_DATA_PATH="/path/to/primekg/data"
# SPOKE-OKN uses public SPARQL endpoint (no credentials needed)Configuration for Claude Desktop
ā ļø Important: To use this MCP server with Claude Desktop, you must configure it in your claude_desktop_config.json file.
See the complete guide: Claude Desktop Configuration
Quick Config (Development Mode):
{
"mcpServers": {
"mcp-space-life-sciences": {
"command": "python",
"args": ["-m", "mcp_space_life_sciences.server"],
"env": {
"GENELAB_NEO4J_URI": "bolt://localhost:7687",
"GENELAB_NEO4J_USER": "neo4j",
"GENELAB_NEO4J_PASSWORD": "your_password",
"PRIMEKG_DATA_PATH": "/path/to/primekg/data"
}
}
}
}Quick Start
Start the MCP Server
mcp-space-life-sciencesExample 1: Space Biology to Drug Discovery
from mcp_space_life_sciences import IntegratedKGClient
client = IntegratedKGClient()
# 1. Get differentially expressed genes from space experiment
de_genes = client.get_genelab_de_genes(
assay_id="OSD-253-6c5f9f37b9cb2ebeb2743875af4bdc86",
log2fc_threshold=1.0
)
# 2. Enrich with PrimeKG annotations
enrichment = client.enrich_with_primekg(
gene_names=de_genes['upregulated'][:50],
include_drugs=True,
include_diseases=True,
include_pathways=True
)
# 3. Find therapeutic candidates
drug_targets = client.find_drug_targets_for_genes(
gene_names=de_genes['upregulated'][:50]
)
# 4. Add geospatial context from SPOKE-OKN
diseases_by_location = client.get_disease_prevalence_by_location(
disease_names=enrichment['diseases'][:10],
location="United States"
)
print(f"Found {len(drug_targets)} potential therapeutic targets")
print(f"Disease prevalence data for {len(diseases_by_location)} diseases")Example 2: Complete Mechanism Analysis
# Analyze mechanism from genes through pathways to drugs and diseases
mechanism = client.analyze_complete_mechanism(
gene_list=["TP53", "BRCA1", "EGFR"],
include_anatomy=True,
include_geospatial=True
)
# Creates visualization showing:
# - Gene interactions
# - Pathway memberships
# - Disease associations
# - Drug targets
# - Tissue expression
# - Geographic disease prevalenceCommon Node Types & Mappings
Node Type | GeneLab | PrimeKG | SPOKE-OKN | Identifier |
Genes | Gene | gene/protein | Gene | gene_symbol |
Diseases | Disease | disease | Disease | mondo_id |
Anatomy | Anatomy | anatomy | (related) | uberon_id |
Pathways | Pathway | pathway | - | reactome_id |
Drugs | Compound | drug | ChemicalEntity | drugbank_id |
GO BP | BiologicalProcess | biological_process | - | go_id |
GO MF | MolecularFunction | molecular_function | - | go_id |
GO CC | CellularComponent | cellular_component | - | go_id |
Locations | - | - | AdministrativeArea | geonames_code |
Total Integration: 8 node types Ć 3 KGs = Comprehensive biomedical coverage
Available Tools
Gene-Focused Analysis
get_genelab_de_genes- Get differentially expressed genes from space experimentsenrich_genes_with_primekg- Add PrimeKG annotationsfind_drug_targets_for_genes- Identify therapeutic candidatesfind_genes_in_anatomy- Tissue-specific expression patternsfind_genes_by_location- Genes relevant to geographic diseases (via SPOKE-OKN)
Disease-Focused Analysis
find_disease_genes- Genes associated with diseasesfind_disease_pathways- Mechanisms underlying diseasesfind_drugs_for_disease- Therapeutic optionsget_disease_prevalence_by_location- Geographic distribution (SPOKE-OKN)find_sdoh_disease_associations- Social determinants impact (SPOKE-OKN)
Pathway Analysis
find_shared_pathways- Pathways enriched in gene listsfind_drugs_for_pathway- Target specific biological pathwayscompare_pathway_enrichment- Cross-condition analysis
Drug Discovery
find_drug_disease_mechanisms- Complete mechanistic understandingfind_drug_targets- Gene targets for drugsfind_drug_interactions- Drug-drug interactions (SPOKE-OKN)find_drug_environmental_interactions- Drug-environment factors (SPOKE-OKN)
Geospatial Analysis (SPOKE-OKN)
get_disease_prevalence_by_location- Disease rates by state/countyget_chemical_exposures_by_location- Environmental contaminantsget_sdoh_by_location- Social determinants of healthfind_organism_antimicrobial_resistance- AMR patterns by location
Multi-Graph Integration
find_common_nodes- Nodes present in multiple KGsenrich_across_all_kgs- Complete annotation from all sourcesanalyze_complete_mechanism- End-to-end mechanistic analysiscompare_gene_sets_multi_kg- Cross-graph gene set comparison
Visualization
create_multi_kg_network- Network across all 3 KGscreate_gene_network- Gene interaction networkscreate_drug_target_heatmap- Drug-gene targeting matrixcreate_pathway_enrichment_plot- Enriched pathwayscreate_disease_gene_network- Disease-gene associationscreate_anatomical_heatmap- Tissue expression patternscreate_geospatial_disease_map- Geographic disease distribution (SPOKE-OKN)
Use Cases
1. Space Biology Research
Question: What are the biological consequences of microgravity exposure?
Workflow:
Query GeneLab for differentially expressed genes from microgravity experiments
Enrich genes with PrimeKG pathways, diseases, and drug targets
Check SPOKE-OKN for terrestrial disease prevalence of identified conditions
Identify drug countermeasures
2. Countermeasure Development
Question: What drugs could mitigate space-induced bone loss?
Workflow:
Get bone loss-related genes from GeneLab experiments
Find diseases associated with these genes in PrimeKG
Identify drugs targeting these genes/pathways in PrimeKG
Check drug-drug interactions and contraindications via SPOKE-OKN
3. Risk Assessment
Question: Which diseases show increased risk in space environments?
Workflow:
Analyze GeneLab gene expression changes
Map to diseases in PrimeKG
Compare with terrestrial disease prevalence in SPOKE-OKN
Identify geographic populations at higher baseline risk
4. Environmental Health
Question: Do chemical exposures on Earth mirror biological effects seen in space?
Workflow:
Get GeneLab differential expression signatures
Find chemicals that cause similar gene expression in PrimeKG
Check SPOKE-OKN for geographic distribution of those chemicals
Correlate with disease prevalence patterns
5. Systems Medicine
Question: How do genes, pathways, diseases, drugs, and environment interact?
Workflow:
Start with any entity (gene, disease, drug, location)
Trace connections across all three knowledge graphs
Build comprehensive multi-entity network
Visualize and analyze system-level patterns
Documentation
Examples
See the examples/ directory for Jupyter notebooks:
01_space_biology_to_therapeutics.ipynb- From GeneLab to drug discovery02_disease_mechanism_discovery.ipynb- Multi-KG disease analysis03_geospatial_disease_patterns.ipynb- Geographic health patterns04_environmental_health_connections.ipynb- Chemical exposures and biology05_complete_mechanism_analysis.ipynb- End-to-end systems analysis
Citation
If you use this integration in your research, please cite:
This Work
@software{mcp_space_life_sciences2025,
author = {[Amanda Saravia-Butler]},
title = {MCP Space Life Sciences KGs: Integrated Knowledge Graph Server},
year = {2026},
url = {https://github.com/asaravia-butler/MCP_Space_Life_Science_KGs}
}Constituent Knowledge Graphs
PrimeKG:
@article{chandak2023building,
title={Building a knowledge graph to enable precision medicine},
author={Chandak, Payal and Huang, Kexin and Zitnik, Marinka},
journal={Scientific Data},
volume={10},
number={1},
pages={67},
year={2023},
publisher={Nature Publishing Group}
}GeneLab:
@article{gebre2025osdr,
title={NASA open science data repository: open science for life in space},
author={Gebre SG, Scott RT, Saravia-Butler AM, Lopez DK, Sanders LM, Costes SV},
journal={Nucleic Acids Res.},
volume={53},
number={D1},
pages={D1697-D1710},
year={2025}
}SPOKE:
@article{nelson2022spoke,
title={The SPOKE knowledge graph},
author={Nelson, Charlotte A and Butte, Atul J and Baranzini, Sergio E},
journal={Bioinformatics},
volume={38},
number={15},
pages={3749--3756},
year={2022}
}Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Setup
git clone https://github.com/asaravia-butler/MCP_Space_Life_Science_KGs.git
cd MCP_Space_Life_Science_KGs
pip install -e ".[dev]"
pytest tests/License
Apache 2.0 License - see LICENSE file for details.
Acknowledgments
This work integrates three exceptional knowledge graph resources:
GeneLab Team at NASA Ames Research Center
Zitnik Lab at Harvard Medical School (PrimeKG)
Baranzini Lab at UCSF (SPOKE/SPOKE-OKN)
RENCI (Renaissance Computing Institute) for SPOKE-OKN infrastructure
Special thanks to the open science community for making these resources available.
Contact
Issues: GitHub Issues
Discussions: GitHub Discussions
Related Projects
mcp-genelab - GeneLab MCP server
MCP_Harvard_PrimeKG - PrimeKG MCP server
mcp-proto-okn - SPOKE-OKN MCP server
spoke_genelab - GeneLab knowledge graph
Built with ā¤ļø for space life sciences research
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Knowledge graph ingestion, entity search, ontology analysis, and CoSync scoring.
Knowledge graph ingestion, entity search, ontology analysis, and CoPass scoring.
Open Targets MCP ā disease/target/drug knowledge graph.
Monarch Initiative MCP ā biomedical knowledge graph.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered medical information retrieval through FHIR clinical document search and GraphRAG-based exploration of medical entities and relationships. Combines vector search with knowledge graph queries for comprehensive healthcare data analysis.MIT
- AlicenseNot gradedqualityBmaintenanceA unified biomedical graph database that integrates 50+ primary data sources ā genes, proteins, compounds, diseases, pathways, and clinical data ā into a single queryable graph with billions of cross-reference edges. Its native MCP server gives LLMs direct access to structured, authoritative biomedical data, complementing their reasoning with reliable identifiers and up-to-date database content.20AGPL 3.0

SPOKEAgentofficial
AlicenseAqualityBmaintenanceA structure-aware MCP server for querying the SPOKE biomedical knowledge graph, enabling entity resolution, schema introspection, path finding, and safe Cypher queries for biomedical knowledge inference.5Apache 2.0- FlicenseNot gradedqualityCmaintenanceEnables LLMs and AI agents to search a biomedical knowledge graph for concepts and study variables, traverse semantic relationships, and look up BioData Catalyst PIC-SURE paths for cohort building.-