eggnog-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eggnog-mcp annotate protein P12345 with KEGG KO and GO terms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
eggNOG-MCP
中文文档 | English
⚠️ Disclaimer: This is a community-maintained, unofficial MCP server for the eggNOG database. It is not affiliated with, endorsed by, or maintained by the eggNOG team or EMBL. The official eggNOG database is available at https://eggnogdb.org/.
A Model Context Protocol (MCP) server that provides AI assistants with access to the eggNOG 7 database — a comprehensive resource for orthology assignments and functional predictions for comparative genomics.
Table of Contents
Related MCP server: Bio-MCP BLAST
Overview
eggNOG (evolutionary genealogy of genes: Non-supervised Orthologous Groups) is a database of orthology relationships, functional annotations, and phylogenetic trees covering 12,000+ annotated species, 59 million+ protein sequences, and 3.1 million+ orthologous groups.
eggNOG-MCP bridges the eggNOG database and Large Language Models (LLMs) by implementing the Model Context Protocol. Once configured, any MCP-compatible AI assistant (such as Claude Desktop, Cursor, or custom agents) can query eggNOG directly through natural language.
The server communicates with eggNOG's native JSON API (/e7api/) for reliable, structured data access — no HTML scraping required.
What can you do with eggNOG-MCP?
🔬 Look up a protein by its eggNOG ID and retrieve its functional annotation
🧬 Query an orthologous group (OG) to understand evolutionary relationships
📋 List all proteins within an OG, grouped by species
🔗 Retrieve pairwise orthologs for a protein across species
🔍 Search the eggNOG database by protein name, UniProt ID, or family name
📊 Get database statistics (species, proteins, trees, OGs counts)
📥 List all downloadable bulk data files
🏷️ Annotate a protein with KEGG KO terms and GO terms with confidence scores
🧫 Browse all members of a protein family
Features
Feature | Description |
Protein Lookup | Retrieve protein family, predicted functions, and OGs for any eggNOG protein ID |
OG Query | Look up orthologous group details including evolutionary origin, member counts, and functional annotation |
OG Content | List all proteins within an OG, grouped by species |
Orthologs | Retrieve pairwise orthologs for a protein across all species |
Protein Family | Browse all species and proteins within a protein family cluster |
Database Search | Search by protein name, UniProt ID, or family name |
Functional Annotation | Get structured KEGG KO and GO term annotations with confidence scores |
Database Statistics | Access current eggNOG 7 release statistics |
Downloads Index | List all bulk-downloadable data files with URLs and descriptions |
Taxon Lookup | Look up taxonomic information by NCBI taxonomy ID |
MCP Resources | Expose version info, stats, and downloads as MCP resources |
JSON API | Uses eggNOG's native |
Async HTTP | Built on |
Error Resilient | All tools return structured error messages instead of crashing |
Quick Start
# Install
pip install eggnog-mcp
# Run (stdio transport — for use with MCP clients)
eggnog-mcpOr run directly with Python:
python -m eggnog_mcp.serverInstallation
Option 1: Install from source (recommended for development)
git clone https://github.com/ZengZichao/eggNOG-MCP.git
cd eggNOG-MCP
pip install -e .Option 2: Install dependencies only
pip install -r requirements.txtRequirements
Python ≥ 3.10
mcp≥ 2.0.0 (Model Context Protocol SDK)httpx≥ 0.27.0 (async HTTP client)
Configuration
Claude Desktop
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"eggnog-mcp": {
"command": "eggnog-mcp",
"args": []
}
}
}If you installed from source without adding to PATH, use the full path:
{
"mcpServers": {
"eggnog-mcp": {
"command": "python",
"args": ["-m", "eggnog_mcp.server"],
"env": {
"PYTHONPATH": "/path/to/eggNOG-MCP/src"
}
}
}
}Cursor IDE
Add to your Cursor MCP settings:
{
"mcpServers": {
"eggnog-mcp": {
"command": "eggnog-mcp"
}
}
}Generic MCP Client
The server uses stdio transport by default. Start it with:
eggnog-mcpThe server communicates via stdin/stdout using the MCP protocol.
TLS / Network Issues
If you encounter TLS connection errors when connecting to https://eggnogdb.org, you can modify the client initialization in src/eggnog_mcp/client.py to use HTTP or disable SSL verification:
# Option 1: Use HTTP
_global_client = eggNOGClient(base_url="http://eggnogdb.org")
# Option 2: Disable SSL verification (HTTPS)
_global_client = eggNOGClient(verify_ssl=False)Available Tools
1. get_protein
Look up detailed information for a protein in the eggNOG database.
Parameter | Type | Required | Description |
|
| Yes | eggNOG protein ID in |
Example:
protein_id = "9606.ENSP00000269305"Returns: Protein name, species, taxid, UniProt ID, Pfam domains, KEGG KO terms, orthologous groups list, predicted functions (KEGG KO + GO terms with confidence), selected OG details.
2. get_orthologous_group
Look up information for an orthologous group (OG).
Parameter | Type | Required | Description |
|
| Yes | OG ID in |
Example:
og_id = "P53@33154|A-1"Returns: OG ID, protein family, evolutionary origin, taxonomic lineage, protein count, species count, functional annotation (KEGG KO + GO slim), all OGs in the same family.
3. get_og_content
Retrieve the list of proteins within an orthologous group.
Parameter | Type | Required | Description |
|
| Yes | OG ID in |
|
| No | Maximum number of species to include (default: 50) |
Example:
og_id = "P53@33154|A-1", max_species = 10Returns: Total species count, total protein count, species list with protein IDs.
4. get_orthologs
Retrieve pairwise orthologs for a protein.
Parameter | Type | Required | Description |
|
| Yes | eggNOG protein ID in |
|
| No | Maximum number of species to include (default: 50) |
Example:
protein_id = "9606.ENSP00000269305", max_species = 10Returns: Total ortholog species count, orthologs grouped by species with protein IDs.
5. search_eggnog
Search the eggNOG database for proteins or orthologous groups.
Parameter | Type | Required | Description |
|
| Yes | Search query (≥ 3 characters) |
Example:
query = "P53"
query = "P04637"
query = "TP53"Returns: List of matching proteins and OGs with type, ID, label, and URL.
6. annotate_protein
Annotate a protein with functional information (KEGG KO + GO terms).
Parameter | Type | Required | Description |
|
| Yes | eggNOG protein ID in |
Example:
protein_id = "9606.ENSP00000269305"Returns: Structured annotation with KEGG KO terms, GO slim terms, KEGG gene symbols, protein family, Pfam domains, orthologous groups, and selected OG details.
7. get_protein_family
Retrieve protein family (cluster) content from eggNOG.
Parameter | Type | Required | Description |
|
| Yes | Protein family / cluster name |
|
| No | Maximum number of species to include (default: 50) |
Example:
family_name = "P53", max_species = 10Returns: Total species count, total protein count, species list with protein IDs, species summary.
8. get_database_stats
Retrieve summary statistics of the eggNOG 7 database.
Parameters: None
Returns: Annotated species count, protein sequences count, phylogenetic trees count, orthologous groups count.
9. list_downloads
List all downloadable bulk data files.
Parameters: None
Returns: List of files with filenames, URLs, and descriptions (protein sequences, OG info, trees, taxonomic info, etc.).
10. get_taxid_info
Look up taxonomic information for an NCBI taxonomy ID.
Parameter | Type | Required | Description |
|
| Yes | NCBI taxonomy ID |
Example:
taxid = 9606Returns: Taxonomic lookup guidance, download URL for the taxid info TSV file, and column format description.
Available Resources
Resource URI | Description |
| Server version and database info |
| Cached database statistics |
| List of downloadable files |
Usage Examples
Example 1: Annotate Human P53
User: "What is the functional annotation of human P53 in eggNOG?"
Assistant: [calls annotate_protein with protein_id="9606.ENSP00000269305"]Result includes:
Protein family:
P53KEGG KO terms:
K04451(TP53, 11.47%),K10148(TP73, 14.34%),K10149(TP63, 19.80%)GO terms:
GO:0006355(regulation of transcription, 68.83%),GO:0006351(transcription, 68.83%)Pfam domains:
P53_TAD,TAD2,P53,P53_tetramer35 orthologous groups spanning 438 species
Example 2: Search for P53
User: "Search eggNOG for P53"
Assistant: [calls search_eggnog with query="P53"]Result: 10 matches including proteins (e.g. PPP5_HUMAN) and OGs (e.g. P53@33154|A-1).
Example 3: Query an Orthologous Group
User: "Tell me about the P53 orthologous group at the Opisthokonta level"
Assistant: [calls get_orthologous_group with og_id="P53@33154|A-1"]Result: Evolutionary origin (Opisthokonta), 1,081 proteins, 438 species, KEGG KO and GO annotations, full family OG list.
Example 4: List Proteins in an OG
User: "Show me the proteins in the P53 OG at the Opisthokonta level"
Assistant: [calls get_og_content with og_id="P53@33154|A-1", max_species=5]Example 5: Get Orthologs
User: "What are the orthologs of human P53?"
Assistant: [calls get_orthologs with protein_id="9606.ENSP00000269305"]Example 6: Database Statistics
User: "How many species are in eggNOG?"
Assistant: [calls get_database_stats]Result: 12k+ annotated species, 59M+ protein sequences, 1.1M+ phylogenetic trees, 3.1M+ orthologous groups.
Project Structure
eggNOG-MCP/
├── pyproject.toml # Project configuration & dependencies
├── requirements.txt # pip requirements
├── LICENSE # MIT License
├── .gitignore # Git ignore rules
├── README.md # English documentation (this file)
├── README_zh.md # Chinese documentation
├── src/
│ └── eggnog_mcp/
│ ├── __init__.py # Package initialization
│ ├── version.py # Version info
│ ├── client.py # eggNOG API client (async HTTP, JSON API)
│ └── server.py # MCP server & tool definitions (10 tools)
└── tests/
└── test_client.py # Unit tests for the API clientDevelopment
Setup
# Clone and install in development mode
git clone https://github.com/ZengZichao/eggNOG-MCP.git
cd eggNOG-MCP
pip install -e ".[dev]"Linting
ruff check src/
ruff format src/Running Tests
# Run the full test suite
pytest tests/ -vTesting the Server
# Run the server and verify it starts
eggnog-mcp
# Or test with the MCP inspector
npx @modelcontextprotocol/inspector eggnog-mcpAPI Endpoints Used
The client communicates with eggNOG's native JSON API:
Endpoint | Description |
| Protein details + OGs + functions |
| Orthologous group details |
| Proteins within an OG |
| Proteins within a family cluster |
| Pairwise orthologs for a protein |
| Search / autocomplete |
| Database statistics (HTML) |
License
This project is licensed under the MIT License.
The eggNOG database itself is maintained by the eggNOG Team at EMBL. Please refer to https://eggnogdb.org/ for database usage terms and citation requirements.
Note: This is an unofficial, community-maintained project. It is not affiliated with or endorsed by the eggNOG team or EMBL.
Acknowledgements
eggNOG Team — For creating and maintaining the eggNOG database. Visit https://eggnogdb.org/ for more information.
Anthropic — For the Model Context Protocol specification and SDK.
Huerta-Cepas J, et al. — eggNOG 7.0: comparative genomics at the scale of 12,000+ genomes. Please cite the original eggNOG publications when using this tool in research.
Key References
Huerta-Cepas, J., et al. (2023). eggNOG 7.0: comparative genomics at the scale of 12,000+ genomes. Briefings in Bioinformatics, 24(1), bbac483.
The Model Context Protocol specification: https://modelcontextprotocol.io/
Available Tools
10 toolsannotate_proteinA
Annotate a protein with functional information from eggNOG.
Returns a structured functional annotation for the given protein,
including KEGG KO terms, GO slim terms, protein family, Pfam domains,
and orthologous groups. This is a higher-level convenience wrapper
around get_protein that emphasises the annotation results.
Parameters
protein_id : str
The eggNOG protein identifier in the format taxid.seqid.
Examples:
- 9606.ENSP00000269305 (human P53)
- 4932.YJR154W (yeast)
Returns
str JSON string with KEGG KO terms, GO terms, and cross-references.
Inputs: protein_id (required). Returns: result
get_database_statsA
Retrieve summary statistics of the eggNOG 7 database.
Returns the number of annotated species, protein sequences, phylogenetic trees, and orthologous groups in the current eggNOG release.
Returns
str JSON string with database statistics.
Inputs: no named parameters. Returns: result
get_og_contentA
Retrieve the list of proteins within an orthologous group.
Returns the species and their protein members for the specified OG.
The result is capped at max_species to avoid excessively large
responses.
Parameters
og_id : str
The orthologous group identifier in family@taxid|level format.
Example: P53@33154|A-1
max_species : int, optional
Maximum number of species to include (default 50).
Returns
str JSON string with species list, protein counts, and protein IDs.
Inputs: og_id (required), max_species. Returns: result
get_orthologous_groupA
Look up information for an orthologous group (OG) in eggNOG.
Retrieves the evolutionary origin, protein count, species count, functional annotation (KEGG KO and GO slim terms), and the list of all OGs in the same protein family.
Parameters
og_id : str
The orthologous group identifier in the format
family@taxid|level.
Examples:
- P53@33154|A-1 (P53 family, Opisthokonta level)
- P53@7742|IM-18 (P53 family, Gnathostomata level)
Returns
str JSON string with OG details including evolutionary origin, counts, and functional annotation.
Inputs: og_id (required). Returns: result
get_orthologsB
Retrieve pairwise orthologs for a protein.
Returns the orthologous proteins grouped by species for the given eggNOG protein ID.
Parameters
protein_id : str
The eggNOG protein identifier in taxid.seqid format.
Example: 9606.ENSP00000269305
max_species : int, optional
Maximum number of species to include (default 50).
Returns
str JSON string with orthologs grouped by species.
Inputs: protein_id (required), max_species. Returns: result
get_proteinB
Look up detailed information for a protein in the eggNOG database.
Retrieves protein family membership, predicted functions (KEGG KO terms and GO terms with confidence scores), and the list of orthologous groups (OGs) associated with the protein.
Parameters
protein_id : str
The eggNOG protein identifier in the format taxid.seqid.
Examples:
- 9606.ENSP00000269305 (human P53 / TP53)
- 9606.ENSP00000330696 (human P2RX7)
- 460265.Mnod_3996 (nitrogen fixation protein)
Returns
str JSON string with protein family, function predictions, and OG list.
Inputs: protein_id (required). Returns: result
get_protein_familyB
Retrieve protein family (cluster) content from eggNOG.
Returns the list of species and proteins grouped under the given protein family name (also called a cluster).
Parameters
family_name : str
The protein family / cluster name.
Examples: P53, P53_tetramer, P53_TAD
max_species : int, optional
Maximum number of species to include (default 50).
Returns
str JSON string with species list, protein counts, and protein IDs.
Inputs: family_name (required), max_species. Returns: result
get_taxid_infoA
Look up taxonomic information for an NCBI taxonomy ID.
Provides guidance on retrieving taxonomic information for a given
NCBI taxonomy ID from the eggNOG database. The full taxonomic
data is available in the downloadable e7.taxid_info.tsv.gz file.
Parameters
taxid : int
NCBI taxonomy ID.
Examples:
- 9606 (Homo sapiens)
- 4932 (Saccharomyces cerevisiae)
- 44689 (Danio rerio)
Returns
str JSON string with taxonomic lookup information and download URL.
Inputs: taxid (required). Returns: result
list_downloadsA
List downloadable data files from the eggNOG 7 database.
Returns a list of all bulk-downloadable files (protein sequences, OG info, phylogenetic trees, taxonomic info, etc.) with their URLs and descriptions.
Returns
str JSON string with download file information.
Inputs: no named parameters. Returns: result
search_eggnogA
Search the eggNOG database for proteins or protein families.
Performs a text search across the eggNOG database. The query must be
at least 3 characters long. The query can be a protein name
(e.g. P53), a UniProt ID (e.g. P04637), or a protein family
name.
Parameters
query : str
Search query string (minimum 3 characters).
Examples:
- P53
- P04637
- TP53
- P2RX7
Returns
str JSON string with a list of search results (type, ID, label, URL).
Inputs: query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target distinct resources (protein, OG, family, taxid, stats, downloads, search), and descriptions give concrete examples. However, annotate_protein is explicitly a 'convenience wrapper around get_protein' returning overlapping data for the same protein_id, and get_og_content vs get_orthologs/get_protein_family all return species/protein lists with similar shapes, creating mild risk of misselection.
Consistent snake_case verb_noun pattern throughout (get_*, list_*, search_*, annotate_*). Minor terminology drift between 'orthologous_group' and 'orthologs' but the convention is clear and predictable.
10 tools is well-scoped for a read-only database API, with each tool covering a distinct lookup or listing need. No bloat and nothing obviously trivial.
Core lifecycle is well covered: search, protein annotation, OG detail, OG content, orthologs, family, stats, and downloads. Minor gaps remain (no sequence/FASTA retrieval), and get_taxid_info is effectively a stub that only points to a downloadable file rather than returning the taxonomy data.
Maintenance
Related MCP Connectors
Federated protein structure & annotation across experimental (PDB) and predicted (AlphaFold) models.
Query, explore, and manage your databases through natural conversation.
Query STRING interactions, enrichment, annotations, homology, and PPI networks.
Knowledge graph ingestion, entity search, ontology analysis, and CoPass scoring.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to access protein information directly from UniProt, allowing retrieval of protein names, functions, sequences, and organism data by accession number.214MIT

Bio-MCP BLASTofficial
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform NCBI BLAST sequence similarity searches through natural language, supporting nucleotide and protein searches, custom database creation, and multiple output formats.11MIT- AlicenseBqualityDmaintenanceProvides access to the STRING protein-protein interaction database for mapping identifiers, retrieving interaction networks, and performing functional enrichment analysis. It enables users to explore protein partners, pathways, and cross-species homology through natural language interactions.91ISC
- AlicenseCqualityBmaintenanceProvides AI-powered access to major biological databases for GWAS and bioinformatics research. Enables natural language queries for protein, gene, variant, pathway, and drug discovery analysis.44176 PyPI1MIT