Skip to main content
Glama

NMDC-MCP

MCP (Model Context Protocol) Server for the National Microbiology Data Center (NMDC) of China.

Python 3.10+ MCP License: MIT Version

Overview

NMDC-MCP is a Model Context Protocol (MCP) server that provides AI applications with access to the data and services of the National Microbiology Data Center (NMDC) — China's national-level data center for microbiology research. The server exposes NMDC's rich data resources through a standardized MCP interface, enabling AI assistants like Claude, ChatGPT, and others to search, query, and explore microbiology data.

What is NMDC?

The National Microbiology Data Center (国家微生物科学数据中心) is hosted by the Institute of Microbiology, Chinese Academy of Sciences. It provides comprehensive microbiology data services including:

  • Microbiome Data — BioProjects, BioSamples, Nucleotides, Metagenomes, Genomes, Proteins, SRA, and more

  • Microbial Resources — Global Catalogue of Microorganisms (GCM), biological parts

  • Virus Data — Virus pathogen sequences, SARS-CoV-2 genome and variation data

  • Pathogen Data — Pathogen catalogues, plasmids, phage, tuberculosis data

  • Fungi Data — Fungal names, genomes, type specimens

  • Microbial Dictionary — Biological terms, DNA barcodes

  • Microbial Catalog — Global microbial names, Chinese fungal specimens

What is MCP?

The Model Context Protocol is an open standard for connecting AI applications to external systems. It provides a unified way for AI assistants to access data sources, tools, and workflows.

Related MCP server: datamgr

Features

  • 🔬 19 MCP Tools covering all major NMDC data categories

  • 📚 5 MCP Resources for structured data access

  • 🔄 Resource Templates for dynamic URI-based access

  • 🌐 Async HTTP Client for efficient NMDC API communication

  • ⚙️ Configurable via environment variables

  • 📦 Easy Installation via pip or uv

Quick Start

Installation

# Using pip
pip install nmdc-mcp

# Or using uv
uv pip install nmdc-mcp

# Or from source
git clone https://github.com/zengzichao/NMDC-MCP.git
cd NMDC-MCP
pip install -e .

Configuration

Add the NMDC-MCP server to your MCP client configuration:

Claude Desktop / Claude Code

{
  "mcpServers": {
    "nmdc": {
      "command": "nmdc-mcp",
      "env": {
        "NMDC_BASE_URL": "https://nmdc.cn"
      }
    }
  }
}

Cursor / VS Code

{
  "mcp.servers": {
    "nmdc": {
      "command": "nmdc-mcp"
    }
  }
}

Usage

Once configured, you can ask your AI assistant to interact with NMDC data:

Search NMDC for E. coli genome data
What analysis tools are available on NMDC?
Look up the BioProject PRJCA000001 on NMDC
Search the microbial dictionary for "bacteriophage"

Available Tools

Tool

Description

search_nmdc_data

Search across all NMDC databases by keyword

get_nmdc_data_overview

Get overview of all available data resources

get_bioproject

Get BioProject details by accession ID

get_biosample

Get BioSample details by accession ID

get_sequence

Get sequence information by accession ID

search_genome

Search genome records

search_sra

Search Sequence Read Archive data

search_metagenome

Search metagenome data

search_virus

Search virus pathogen data

search_ncov_variation

Search SARS-CoV-2 variation data

search_fungi

Search fungi microorganism data

search_pathogen

Search pathogen microorganism data

search_tuberculosis

Search tuberculosis data

search_gcm

Search Global Catalogue of Microorganisms

search_microbial_dictionary

Search microbial dictionary for terms

search_microbial_catalog

Search microbial catalog

get_analysis_tools

Get available analysis tools

get_metadata_standards

Get metadata standards information

get_download_list

Get downloadable dataset list

Configuration Options

Environment Variable

Default

Description

NMDC_BASE_URL

https://nmdc.cn

NMDC website base URL

NMDC_API_BASE_URL

https://nmdc.cn/api

NMDC API base URL

NMDC_TIMEOUT

30.0

HTTP request timeout (seconds)

NMDC_MAX_RESULTS

50

Maximum results per query

NMDC_PAGE_SIZE

20

Default page size for pagination

Development

Setup Development Environment

git clone https://github.com/zengzichao/NMDC-MCP.git
cd NMDC-MCP
pip install -e ".[dev]"

Run Tests

pytest

Lint and Type Check

ruff check src/
mypy src/

Documentation

License

This project is licensed under the MIT License.

Acknowledgments

Available Tools

19 tools
get_analysis_toolsA

Get a list of analysis tools available on the NMDC platform. These tools can be used for bioinformatics analysis of microbiology data.

Inputs: no named parameters.

get_bioprojectB

Get detailed information about a specific BioProject from NMDC. BioProjects are collections of biological data related to a single initiative.

Inputs: accession (required).

get_biosampleC

Get detailed information about a specific BioSample from NMDC. BioSamples are biological source materials used in sequencing.

Inputs: accession (required).

get_download_listB

Get the list of downloadable datasets from NMDC. Provides information about available bulk data downloads.

Inputs: no named parameters.

get_metadata_standardsA

Get metadata standards information from NMDC. Includes information about data submission standards, metadata schemas, and compliance requirements.

Inputs: no named parameters.

get_nmdc_data_overviewA

Get an overview of all data resources available on the NMDC platform. Returns information about each data category, the databases within them, and their record counts. Use this to understand what data is available.

Inputs: no named parameters.

get_sequenceB

Get sequence information (nucleotide or protein) from NMDC by accession ID.

Inputs: accession (required).

search_fungiB

Search fungi microorganism data on NMDC. Includes fungal names, genome data, type specimens, and related information.

Inputs: page, size, keyword.

search_gcmC

Search the Global Catalogue of Microorganisms (GCM) on NMDC. The GCM provides information about microbial strains held in culture collections worldwide.

Inputs: page, size, keyword.

search_genomeC

Search for genome records in the NMDC database. Can filter by organism name.

Inputs: page, size, organism.

search_metagenomeB

Search metagenome data on NMDC. Metagenomic data includes environmental and host-associated microbiome sequences.

Inputs: page, size, keyword.

search_microbial_catalogB

Search the microbial catalog on NMDC. Includes global microbial names, Chinese fungal specimens, and fungal names.

Inputs: page, size, keyword.

search_microbial_dictionaryA

Search the microbial dictionary on NMDC for biological and microbiological terms. Includes English-Chinese biological terms, paleontological vocabulary, and molecular biology terms.

Inputs: keyword (required), page, size.

search_ncov_variationB

Search SARS-CoV-2 (novel coronavirus) variation data on NMDC. Includes genomic variations, mutations, and related epidemiological data.

Inputs: page, size, keyword.

search_nmdc_dataB

Search for data across all NMDC (National Microbiology Data Center) databases. Returns matching records including BioProjects, BioSamples, sequences, genomes, etc. Use this tool when you need to find microbiology data by keyword.

Inputs: keyword (required), page, size, category.

search_pathogenC

Search pathogen microorganism data on NMDC. Includes pathogen catalogues, plasmids, phage, and tuberculosis data.

Inputs: page, size, keyword.

search_sraB

Search the Sequence Read Archive (SRA) data on NMDC. SRA stores raw sequencing data from various platforms.

Inputs: page, size, keyword.

search_tuberculosisC

Search tuberculosis data on NMDC. Includes Mycobacterium tuberculosis genome and clinical data.

Inputs: page, size, keyword.

search_virusC

Search virus pathogen data on NMDC. Includes virus sequences, genome annotations, and related data.

Inputs: page, size, keyword.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 19 tools

    Disambiguation3/5

    The set is split between one generic search_nmdc_data and eleven per-database search_* tools, and the boundaries between them are fuzzy (virus vs ncov_variation vs pathogen, pathogen vs tuberculosis, microbial_dictionary vs microbial_catalog). Descriptions name the underlying NMDC database, which helps an informed agent, but nothing tells the agent when to prefer the umbrella search over a targeted one, and the nested categories invite misselection.

    Naming Consistency5/5

    Every tool is snake_case with a leading verb (search_* or get_*), and the noun that follows consistently identifies the resource. Deviations like search_ncov_variation or get_nmdc_data_overview are still readable and on-pattern.

    Tool Count3/5

    At 19 tools this sits in the heavy range, and much of the bulk is avoidable: the eleven search_* variants are largely the same operation parameterized by database. Consolidating them into one search tool with a database/category filter would have produced a much tighter surface.

    Completeness4/5

    The read-only portal workflow is well covered: overview, cross-DB and per-DB search, detail getters for BioProject/BioSample/sequence, plus analysis tools, metadata standards, and download listings. Gaps are minor-but-real: there is no detail getter for records found via search_genome, search_sra, or search_virus, and no tool to actually retrieve a dataset file, only to list what is downloadable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      An MCP server that gives AI assistants access to biological and biomedical RDF databases via SPARQL at the RDF Portal, as well as selected REST APIs (NCBI E-utilities, UniProt, ChEMBL, PDB, Reactome, Rhea, MeSH, and more).
      2
      33
      21
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to discover and inspect research datasets via a read-only MCP server, offering search, variable listing, and metadata retrieval without reading data files.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables researchers to query public ENA and BioSamples genomics data in plain English through any MCP client, including counting records, searching samples, retrieving sample details, and checking metadata quality against project requirements.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to search, retrieve, and analyze Global Catalogue of Metagenomics data—including BioProjects, BioSamples, Runs, MAGs, biome catalogues, taxonomy abundance, functional annotations, and platform statistics—through natural-language MCP tools.
      13
      1
      MIT