Unofficial NCBI Datasets FastMCP Server
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.
Unofficial NCBI Datasets FastMCP Server
A FastMCP (Python) MCP server that exposes the NCBI Datasets v2 REST API as tools and resources — genomes, genes, taxonomy, and assemblies. Suitable for local use (stdio) or hosted deployment (HTTP).
This project is a modification and import of the previous TypeScript NCBI Datasets MCP server, reimplemented in Python with FastMCP and the stable NCBI Datasets v2 API. Original implementation: Augmented-Nature/NCBI-Datasets-MCP-Server (developed by Augmented Nature).
Features
FastMCP 2.x — Python MCP server with tools and URI resources
NCBI Datasets v2 — Uses the stable v2 API (not v2alpha)
Hostable — Run over stdio (e.g. Claude Desktop) or HTTP for remote clients
Configurable — Base URL, API key, and timeouts via environment variables
Related MCP server: ncbi-datasets-mcp
Installation
cd /path/to/NCBI-Datasets-MCP-Server
pip install -e .
# or: pip install .Configuration
Copy .env.example to .env and set as needed:
Variable | Description |
| Optional. NCBI API key for higher rate limits. |
| Optional. Default: |
| Optional. Request timeout in seconds (default: 30). |
| Set to |
| When using HTTP, bind address (default: |
| When using HTTP, port (default: |
Running the server
Stdio (default) — for Cursor, Claude Desktop, or other MCP clients
ncbi-datasets-mcp
# or (from project dir after pip install -e .)
python -m unofficial_ncbi_mcpConfigure your MCP client to run this command; use optional env.NCBI_API_KEY for higher NCBI rate limits.
HTTP — for remote hosting
MCP_TRANSPORT=http MCP_HOST=0.0.0.0 MCP_PORT=8000 ncbi-datasets-mcpOr with the FastMCP CLI (if you use fastmcp run):
fastmcp run src/ncbi_datasets_mcp/server.py:mcp --transport http --host 0.0.0.0 --port 8000The MCP endpoint is at http://<host>:<port>/mcp. Point your MCP client at this URL when using HTTP transport.
Tools
Tool | Description |
Genomes | |
| Search genome assemblies by taxonomy ID and filters (assembly level/source). |
| Get detailed info for a genome assembly by accession. |
| Get summary statistics for a genome assembly. |
| Get download URLs and metadata for genome data. |
Genes | |
| Search genes by symbol, organism, tax_id, or chromosome. |
| Get gene details by Gene ID or symbol + organism. |
| Get sequences for a gene (genomic/transcript/protein). |
Taxonomy | |
| Search taxonomy by organism name or keywords. |
| Get taxon details by taxonomy ID. |
| Get full taxonomic lineage. |
| Get organism info and available genome datasets. |
Assemblies | |
| Search assemblies by query/tax_id and filters. |
| Get assembly metadata and statistics. |
| Get info for multiple assemblies (max 100). |
Resources (URI templates)
URI | Description |
| Genome assembly information. |
| Gene information. |
| Taxonomic classification and lineage. |
| Assembly metadata and statistics. |
| Search genome assemblies by query. |
Incorporate into your agent workflow
You don’t run the server yourself for normal agent use — your MCP client starts it when needed.
Cursor
Install once (in this project):
cd /path/to/NCBI-Datasets-MCP-Server && pip install -e .Add to MCP config — in Cursor: Settings → MCP (or edit
~/.cursor/mcp.json):
{
"mcpServers": {
"ncbi-datasets": {
"command": "ncbi-datasets-mcp",
"args": [],
"cwd": "/path/to/NCBI-Datasets-MCP-Server",
"env": { "NCBI_API_KEY": "your_key_here" }
}
}
}Restart Cursor (or reload the window). Your agent can then use tools like
search_genomes,get_gene_info,search_taxonomy, etc.
Other MCP clients (Claude Desktop, etc.)
Use the same idea: add an MCP server entry that runs ncbi-datasets-mcp (or python -m unofficial_ncbi_mcp with cwd set). Optional: set env.NCBI_API_KEY for higher NCBI rate limits.
HTTP (optional)
To run the server as a long-lived HTTP process (e.g. for remote clients):MCP_TRANSPORT=http MCP_HOST=0.0.0.0 MCP_PORT=8000 ncbi-datasets-mcp
Then point your client at http://<host>:8000/mcp.
API rate limits
Without API key: 3 requests per second (NCBI default).
With API key: 10 requests per second (see NCBI API key).
Data sources
NCBI Datasets v2 REST API — genomes, assemblies, genome reports
NCBI Gene and Taxonomy services via the same Datasets API surface
License
MIT — see LICENSE.
Hosting
Yes — the server can be hosted over HTTP.
Option 1: Direct run (VPS, cloud VM, or local)
MCP_TRANSPORT=http MCP_HOST=0.0.0.0 MCP_PORT=8000 ncbi-datasets-mcpMCP endpoint: http://<your-host>:8000/mcp. Point your MCP client at this URL.
Option 2: Docker
A Dockerfile is included. Build and run:
docker build -t ncbi-datasets-mcp .
docker run -p 8000:8000 -e NCBI_API_KEY=your_key ncbi-datasets-mcpMCP endpoint: http://localhost:8000/mcp (or your server’s host/port). Optional: pass NCBI_API_KEY for higher NCBI rate limits.
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
MCP server for the GovContractScout US government contracts API: search, NAICS, match scoring.
NCBI E-utilities MCP — federated Entrez search/fetch.
MCP server for Riveter's enrichment, scraping, and monitoring API
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to the NCBI Datasets API, enabling genomic, taxonomic, and biological data operations through 31 specialized tools.15MIT
- FlicenseAqualityCmaintenanceAn MCP server that gives Claude access to NCBI Datasets v2 — search genome assembly metadata, retrieve taxonomy records, and download data packages without leaving your conversation.10-
- AlicenseNot gradedqualityBmaintenanceFederates 13 gene-related MCP backends (gnomAD, GTEx, etc.) behind a single Streamable HTTP endpoint with collision-free namespacing and search-based tool discovery.7MIT
- AlicenseBqualityAmaintenanceMCP server that exposes the Open Targets Platform GraphQL API as a set of tools for querying biomedical data such as targets, diseases, drugs, and genetic evidence.6857 PyPI19MIT