Research-data acquisition MCP โ find and fetch datasets across archives, omics registries, and literature
Project description
๐ data-aggregator-mcp
One MCP server to find and fetch research data across archives, omics registries, and literature โ behind a single normalized model.
search one query across Zenodo, DataCite (Dryad / Figshare / Dataverse /
OSF / Mendeley), NCBI omics (GEO / SRA / BioProject), DataONE (eco /
environmental), literature (PubMed / OpenAIRE), OmicsDI (proteomics /
metabolomics), and HuggingFace datasets โ deduplicated, normalized, and
cross-linked. resolve any hit to its file manifest, citation, trust signals,
and the data it points at. fetch it to disk with checksum verification.
mcp-name: io.github.musharna/data-aggregator-mcp
โจ Why this
Most data MCPs wrap a single source. This one unifies them behind five tools
and one DataResource model, so an agent searches once and gets back comparable
records:
- Multi-domain, one model โ generalist archives + raw omics + literature, deduplicated by DOI (the fetchable record wins over bare metadata).
- Taxonomy synonym expansion โ
organism="Orobanche aegyptiaca"also matchesPhelipanche aegyptiaca(NCBI Taxonomy), so a species rename doesn't cost you results. - Paper โ data bridge โ resolve a paper and get links to the GEO / SRA / BioProject / DataCite records it produced.
- Verified fetch โ streams to disk with md5 verification where the source exposes a checksum, optional archive unpacking, and a fail-loud integrity sniff that rejects an HTML paywall page served as a "PDF".
- Citations, access & full text โ render a citation in any CSL style, get
normalized access/license, and pull open-access full text โ all in one
resolve. - Trust signals โ usage
metrics(citations / views / downloads / likes), version status (is_latest/superseded_by), andlast_updatedfreshness, surfaced wherever the source exposes them. - Interop exports โ
resolve(format="croissant")or"ro-crate"hands a dataset to an ML or research-packaging pipeline as standard JSON-LD. - Operate on data in place โ
operatereads the schema, previews rows, or runs a read-only SQLSELECTagainst a remote Parquet/CSV/TSV without downloading it (Parquet footer + DuckDB httpfs range reads). Optional[operate]extra; base install is unchanged.
โ Full rationale and a comparison vs. single-source servers, breadth gateways, and ML-dataset tools: docs/POSITIONING.md.
โก Quickstart
Run with no install:
uvx data-aggregator-mcp
Register with Claude Code:
claude mcp add data-aggregator -- uvx data-aggregator-mcp
A typical agent flow:
search("drought stress RNA-seq", organism="Sorghum bicolor")
โ [ geo:GSE..., sra:SRX..., zenodo:..., pubmed:... ] # deduped, taxa-normalized
resolve("sra:SRX079566")
โ DataResource{ files: [ENA FASTQ urlsโฆ], access: "open", taxa: [...] }
fetch("sra:SRX079566", dest="./data")
โ ["./data/SRX079566_1.fastq.gz", โฆ] # md5-verified
Other ways to run (pip, python -m, raw client config)
pip install data-aggregator-mcp
data-aggregator-mcp # or: python -m data_aggregator_mcp
To use the operate tool (query remote tabular files in place), install the
optional extra:
pip install "data-aggregator-mcp[operate]"
Add to a client's MCP config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"data-aggregator": {
"command": "uvx",
"args": ["data-aggregator-mcp"],
"env": { "NCBI_API_KEY": "your-optional-key" }
}
}
}
๐๏ธ Sources
| Source | Discover | Fetch | Checksum |
|---|---|---|---|
| Zenodo | โ | โ | md5 |
| DataCite โ Figshare | โ | โ | md5 |
| DataCite โ Dataverse | โ | โ | md5 |
| DataCite โ OSF | โ | โ | md5 |
| DataCite โ Dryad | โ | manifest onlyยน | sha-256 (listed) |
| DataCite โ Mendeley & others | โ | โ | โ |
| NCBI SRA | โ | โ (ENA FASTQ) | md5 |
| NCBI GEO | โ | โ
(suppl/) |
noneยฒ |
| NCBI BioProject | โ | โ SRA links | โ |
| PubMed / OpenAIRE | โ | โ (OA full text) | noneยฒ |
| HuggingFace datasets | โ | โ (resolve URL) | none |
| DataONE (eco/env) | โ | โ (Member Node) | md5 / sha-256 |
| OmicsDI โ PRIDE | โ | โ (HTTPS FTP) | size only |
| OmicsDI โ MetaboLights | โ | โ (HTTPS FTP) | none |
| OmicsDI โ other MS repos | โ | โ | โ |
ยน Dryad downloads are token / bot-challenge gated, so fetch fails loud;
resolve still lists the files.
ยฒ No upstream checksum โ fetch verifies content-type instead (rejects an HTML
page served in place of a binary).
๐ ๏ธ Tools
search(query?, size?, sources?, organism?, kind?, published_after?, published_before?, rank?, cursor?)
Fan out across all wired sources in parallel and return compact DataResource
records, deduped by DOI. Per-source failures land in errors{} โ never silently
dropped.
organismโ expand the query with NCBI-Taxonomy synonyms; the expansion is echoed intaxon_expansion, and results carry normalizedtaxa[]({taxid, name}) plus adescribed_inlink to plant-genomics-mcp for plant taxa.sourcesโ restrict the fan-out, e.g.["omics"].sizeโ max results (1โ50).kindโ keep onlydataset/sequencing_run/study/publication/software.published_after/published_beforeโ filter by publication year.rankโrelevance(default) orsemantic(re-rank the fetched page by embedding similarity to the query; needsEMBEDDING_API_BASE, degrades to relevance order otherwise).cursorโ opaque token from a prior result'snext_cursor; pages forward across every source. Incursormode the other params are read from the token, soqueryis optional.
resolve(id, cite?, format?)
Full record + files manifest. Routes by id shape โ zenodo:7654321, a bare DOI,
datacite:10.5061/dryad.x, an omics id (sra:SRX079566, geo:GSE332789,
bioproject:PRJNA1468572), a literature id (pubmed:34320281, openaire:<id>),
a HuggingFace id (hf:owner/name), a DataONE id (dataone:doi:10.5063/F1HT2M7Q),
or an OmicsDI id (omicsdi:pride:PXD000001). Attaches, where available:
files[]โ ENA FASTQ manifest (SRA), GEOsuppl/, or the host repo's native manifest (Figshare / Dataverse / OSF / Dryad).links[]โ paper โ data:pubmed:โsra:/geo:/bioproject:(NCBI elink);openaire:โdatacite:(ScholeXplorer Scholix).access/licenseโ normalized status (open/embargoed/restricted/closed/unknown) and license where the source exposes it.identifiersโ normalized{pmid, pmcid, doi}, plus an open-access full-textFileEntry(EuropePMC XML, or an Unpaywall PDF fallback) for papers.citationโ passcite=<format>:bibtex,ris,csl-json, or any CSL style name (apa,mla,vancouver, โฆ). DOI records use content negotiation; others render CSL-JSON from metadata. Off by default; failures degrade quietly.- trust signals โ
metrics(citations / views / downloads / likes),is_latest/superseded_by(derived from version links), andlast_updatedfreshness, where the source provides them. formatโ passformat="croissant"(file-level Croissant JSON-LD) or"ro-crate"(minimal RO-Crate 1.1) to attach a standard manifest under the matching field, for ML or research-packaging pipelines.
fetch(id, dest?, files?, max_bytes?, force?, extract?)
Download files to disk and return their paths. Streams under a max_bytes guard
(force to override) with md5 verification wherever a checksum exists.
filesโ restrict to a subset of the resolved manifest.extractโ unpack downloaded zip / tar archives in place, guarded against path traversal and runaway extracted size. Off by default.- Unverified fetches (GEO
suppl/, literature full text) get a content-type sniff that fails loud if a declared binary is actually an HTML page. - Fetchable: Zenodo, SRA, GEO, DataONE (Member-Node objects,
md5/sha-256 verified), DataCite-hosted Figshare / Dataverse / OSF,
HuggingFace datasets, PRIDE / MetaboLights (via OmicsDI, unverified),
and literature open-access full text. Dryad, other DataCite repos, and
other OmicsDI repos (MassIVE / GNPS / ...) are discovery-only and raise
FetchNotSupportedError.
list_sources()
Wired sources with their capabilities โ layer, kinds, supported filters,
fetchability, operable flag, id examples, auth, and rate limits.
operate(op, id, file?, query?, n?, columns?)
Inspect or query a remote tabular file (Parquet / CSV / TSV) without
downloading it. Addresses a file by catalog id + file name (defaults to the
first tabular file on the resolved record). Ops:
schemaโ column names + types (reads the Parquet footer / sniffs the CSV header; no full load).previewโ a small sample of rows.headโ the firstnrows (default 20), optionally restricted tocolumns.sqlโ a read-onlySELECT(the file is the viewdata), e.g.SELECT col, count(*) FROM data GROUP BY 1.
Backed by the Parquet footer reader + DuckDB httpfs range reads. sql runs in
a locked-down DuckDB (read-only, local filesystem disabled, single-SELECT
validation, row / wall-clock caps). Requires the optional [operate] extra
(pip install data-aggregator-mcp[operate]); without it, operate returns a
clear install-the-extra message and the other four tools are unaffected.
Any HuggingFace dataset with a datasets-server converted view is operable
(schema / preview / head / sql): resolve surfaces the auto-converted
Parquet files (source="hf-datasets-server") even for datasets stored as
JSON/JSONL/arrow, so pass file=<config>/<split>/...parquet to pick a split when
there are several.
Prompts
Three workflow prompts surface in clients (e.g. /mcp__data_aggregator__* in
Claude Code):
find_dataโ find datasets for a topic, optionally scoped to an organism.data_behind_paperโ find the datasets / accessions behind a paper.search_resolve_fetchโ walk the end-to-end search โ resolve โ fetch flow.
โ๏ธ Configuration
Both optional, set via environment variables:
NCBI_API_KEYโ raises the NCBI E-utilities rate limit (3 โ 10 req/s) used by the omics, literature, and taxonomy lookups.UNPAYWALL_EMAILโ enables the Unpaywall fallback leg of literature full-text retrieval (the EuropePMC leg works without it).
๐งช Develop
uv venv && uv pip install -e ".[dev]"
uv run pytest -q
uv run ruff check src tests
DATA_AGGREGATOR_MCP_LIVE=1 uv run pytest -k live -q # real-API probes
The README demo (examples/assets/demo.svg) is recorded network-free from
examples/_demo_stdio.py โ see the header of that file to re-record.
License
MIT โ see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_aggregator_mcp-0.34.0.tar.gz.
File metadata
- Download URL: data_aggregator_mcp-0.34.0.tar.gz
- Upload date:
- Size: 578.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f694e59c68941ecadb9781ef61c10cb4dde7460d03e033aecd29b56af4014d02
|
|
| MD5 |
9beb08493a248e311bfd28dc8fd89c39
|
|
| BLAKE2b-256 |
2884790f0fd69a88276aff20cf2b3e16fa3c90eccf3d84741c698e96cb269d46
|
Provenance
The following attestation bundles were made for data_aggregator_mcp-0.34.0.tar.gz:
Publisher:
publish.yml on musharna/data-aggregator-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
data_aggregator_mcp-0.34.0.tar.gz -
Subject digest:
f694e59c68941ecadb9781ef61c10cb4dde7460d03e033aecd29b56af4014d02 - Sigstore transparency entry: 1785268108
- Sigstore integration time:
-
Permalink:
musharna/data-aggregator-mcp@b5bad6b4e27a2ed04be22a09f838cc530458d8aa -
Branch / Tag:
refs/tags/v0.34.0 - Owner: https://github.com/musharna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b5bad6b4e27a2ed04be22a09f838cc530458d8aa -
Trigger Event:
release
-
Statement type:
File details
Details for the file data_aggregator_mcp-0.34.0-py3-none-any.whl.
File metadata
- Download URL: data_aggregator_mcp-0.34.0-py3-none-any.whl
- Upload date:
- Size: 134.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63311c1b8eb5d202351dc77f71854803a8c18e9c96b93af30bd1874b484eea09
|
|
| MD5 |
460c16c5da9dd55e8d73f966dfe73fb2
|
|
| BLAKE2b-256 |
7c89eb674d59de42380b674d258cb90e40d72e6e58ff1c5a3d9307d917ca9a3e
|
Provenance
The following attestation bundles were made for data_aggregator_mcp-0.34.0-py3-none-any.whl:
Publisher:
publish.yml on musharna/data-aggregator-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
data_aggregator_mcp-0.34.0-py3-none-any.whl -
Subject digest:
63311c1b8eb5d202351dc77f71854803a8c18e9c96b93af30bd1874b484eea09 - Sigstore transparency entry: 1785268663
- Sigstore integration time:
-
Permalink:
musharna/data-aggregator-mcp@b5bad6b4e27a2ed04be22a09f838cc530458d8aa -
Branch / Tag:
refs/tags/v0.34.0 - Owner: https://github.com/musharna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b5bad6b4e27a2ed04be22a09f838cc530458d8aa -
Trigger Event:
release
-
Statement type: