A Model Context Protocol (MCP) server that provides comprehensive access to the KEGG (Kyoto Encyclopedia of Genes and Genomes) database through its REST API.
Developed by Augmented Nature
This MCP server enables seamless integration with KEGG's extensive biological databases, providing tools for pathway analysis, gene research, compound investigation, and cross-database linking. It's designed for researchers in bioinformatics, systems biology, drug discovery, and related fields.
- Pathways: KEGG pathway maps and organism-specific pathways
- Genes: Gene information across 5000+ organisms
- Compounds: Chemical compounds and their properties
- Reactions: Biochemical reactions and enzymes
- Diseases: Human diseases and associated genes
- Drugs: Drug information and interactions
- Cross-references: Links between KEGG and external databases
get_database_info: Get release information and statisticslist_organisms: Get all KEGG organisms with codes and names
search_pathways: Search pathways by keywords or namesget_pathway_info: Get detailed pathway informationget_pathway_genes: Get genes involved in specific pathways
search_genes: Search genes by name, symbol, or keywordsget_gene_info: Get detailed gene information with optional sequences
search_compounds: Search compounds by name, formula, or structureget_compound_info: Get detailed compound information
search_reactions: Search biochemical reactions by keywordsget_reaction_info: Get detailed reaction informationsearch_enzymes: Search enzymes by EC number or nameget_enzyme_info: Get detailed enzyme information
search_diseases: Search human diseases by name or keywordsget_disease_info: Get detailed disease informationsearch_drugs: Search drugs by name, target, or indicationget_drug_info: Get detailed drug informationget_drug_interactions: Find adverse drug-drug interactions
search_modules: Search KEGG modules by name or functionget_module_info: Get detailed module informationsearch_ko_entries: Search KEGG Orthology entriesget_ko_info: Get detailed KO information
search_glycans: Search glycan structures by name or compositionget_glycan_info: Get detailed glycan information
search_brite: Search BRITE functional hierarchiesget_brite_info: Get detailed BRITE entry information
get_pathway_compounds: Get all compounds in a pathwayget_pathway_reactions: Get all reactions in a pathwayget_compound_reactions: Get all reactions involving a compoundget_gene_orthologs: Find orthologous genes across organismsbatch_entry_lookup: Process multiple KEGG entries efficiently
convert_identifiers: Convert between KEGG and external database IDsfind_related_entries: Find related entries across databases
kegg://pathway/{pathway_id}: Pathway informationkegg://gene/{org}:{gene_id}: Gene detailskegg://compound/{compound_id}: Compound informationkegg://reaction/{reaction_id}: Reaction detailskegg://disease/{disease_id}: Disease informationkegg://drug/{drug_id}: Drug informationkegg://organism/{org_code}: Organism detailskegg://search/{database}/{query}: Search results
- Clone or download this server to your local machine
- Install dependencies:
cd kegg-server npm install - Build the server:
npm run build
# Search for glycolysis pathways
search_pathways(query="glycolysis")
# Get human glycolysis pathway
get_pathway_info(pathway_id="hsa00010")
# Get genes in human glycolysis pathway
get_pathway_genes(pathway_id="hsa00010")
# Search for insulin genes
search_genes(query="insulin", organism_code="hsa")
# Get detailed information for human insulin gene
get_gene_info(gene_id="hsa:3630", include_sequences=true)
# Search for glucose compounds
search_compounds(query="glucose")
# Get glucose compound information
get_compound_info(compound_id="C00031")
# Search by molecular formula
search_compounds(query="C6H12O6", search_type="formula")
# Convert KEGG gene IDs to NCBI Gene IDs
convert_identifiers(source_db="hsa", target_db="ncbi-geneid")
# Find pathways related to specific genes
find_related_entries(source_db="genes", target_db="pathway", source_entries=["hsa:3630"])
This server implements the core KEGG REST API operations:
- INFO: Database release information
- LIST: Entry lists and organism catalogs
- FIND: Keyword and structure-based searching
- GET: Detailed entry retrieval
- CONV: Identifier conversion between databases
- LINK: Cross-reference discovery
The server supports all organisms in KEGG, including:
- Human (hsa): Homo sapiens
- Mouse (mmu): Mus musculus
- Rat (rno): Rattus norvegicus
- E. coli (eco): Escherichia coli
- Yeast (sce): Saccharomyces cerevisiae
- 5000+ other organisms
- Reference pathways (map)
- Organism-specific pathways
- KEGG Orthology pathways (ko)
- Enzyme classification pathways (ec)
- Protein-coding genes
- RNA genes
- Pseudogenes
- Gene sequences (amino acid and nucleotide)
- Small molecules
- Metabolites
- Chemical structures
- Molecular properties
The server includes comprehensive error handling:
- Input validation for all parameters
- Graceful handling of API timeouts
- Detailed error messages for debugging
- Fallback mechanisms for optional data
- Rate Limiting: Respectful API usage with appropriate delays
- Batch Processing: Efficient handling of multiple entries
- Caching: Optional caching for frequently accessed data
- Timeouts: 30-second timeout for API requests
- Systems Biology: Pathway analysis and network reconstruction
- Drug Discovery: Target identification and compound screening
- Comparative Genomics: Cross-species gene analysis
- Metabolomics: Metabolic pathway investigation
- Disease Research: Gene-disease association studies
- Biochemistry Teaching: Pathway visualization and exploration
- Bioinformatics Training: Database integration exercises
- Molecular Biology: Gene function and regulation studies
This server is built using the Model Context Protocol SDK. To contribute:
- Fork the repository
- Make your changes
- Test thoroughly with various KEGG queries
- Submit a pull request
MIT License - see LICENSE file for details.
For issues related to:
- Server functionality: Check the error logs and validate input parameters
- KEGG API: Refer to the official KEGG REST API documentation
- MCP Protocol: Consult the Model Context Protocol documentation
- v1.0.0: Initial release with comprehensive KEGG API coverage
- 30 tools covering all major KEGG databases
- 8 resource templates for dynamic data access
- Full support for pathways, genes, compounds, reactions, enzymes, diseases, drugs, modules, glycans, and BRITE hierarchies
- Advanced analysis tools for cross-database integration
- Batch processing capabilities
- Robust error handling and input validation
- KEGG Database: Kanehisa Laboratories
- Model Context Protocol: Anthropic
- TypeScript and Node.js communities
