
Genomics MCP
io.github.rewire-bio由 GitHub 帳號 rewire-bio 發布v0.1.0更新於 Oct 24, 2026
Bounded genomic data from archives and indexed files, with versioned reference evidence.
概覽
本機 MCP 伺服器,讓助理尋找公開基因體資料集並讀取限定區域、變異與基因,同時附上資料來源。
- 可以做什麼
- 在 EGA、ENA、ENCODE、GEO 與 NCBI Datasets 中搜尋研究、資料集、樣本與檔案
- 以有預算、可續傳、含校驗的方式傳輸檔案,並查詢或取消傳輸
- 從 BAM/CRAM、VCF、FASTA、BED/GFF 與 bigWig/bigBed 檔案讀取 reads、覆蓋度、pileup、變異、序列、特徵與訊號
- 檢視位點並在多個檔案間比較樣本
- 解析識別碼,並在 HGNC、Ensembl、ClinVar、gnomAD、UniProt 與 Open Targets 中查詢變異、基因與蛋白質
- 適用情境
- 適合希望讓 AI 助理不必自行撰寫整合程式碼,就能從公開檔案庫或自有索引檔取得真實基因體資料的計算生物學家與研究人員,也適合需要可追溯來源的代理程式開發者。它只負責擷取與回報資料,不進行變異偵測,也不提供臨床判讀。
- 執行需求
- 以 stdio 在本機執行(或在 127.0.0.1 上以 bearer token 使用 Streamable HTTP)。可使用 linux/amd64 Docker 映像並掛載唯讀資料目錄,或從原始碼安裝,需要 Python 3.12、uv、C 編譯器以及 libcurl 與 zlib。存取檔案庫與參考資料庫需要網路;私有 S3 與 EGA 需明確設定,EGA 範例需要 GENOMICS_MCP_EGA_PUBLIC_TEST_ACCOUNT=1。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Genomics MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Genomics MCP
[Release] [MCP Registry] [Python 3.12] [License: MIT]
Let your AI assistant retrieve real genomic data and reference evidence, with the sources it came from.
Genomics MCP is a local Model Context Protocol server. An agent can use it to find public datasets and read a bounded region from archive, remote or local files. It can also look up variants and genes in public reference databases. Region queries use an explicit assembly and 0-based half-open coordinates. Where the format and server support range reads, a region is read without downloading the whole file. Whole-file downloads are a separate, budgeted step. Results report which sources were consulted (provenance and per-source status), with accessions, versions and retrieval times where the source provides them.
It is a research tool. It retrieves and reports data. It does not give clinical interpretation, call variants or draw biological conclusions.
Read the blog article: Genomics MCP: genomic data access for AI agents, including an agent case study at the BCL11A enhancer.
Who it is for
Computational biologists and researchers who want an agent to pull data from EGA, ENA, ENCODE, GEO, NCBI or their own indexed files without writing integration code. It also suits people building agents or evaluations who need real data with traceable sources. It does not generate benchmarks itself.
Example requests
Illustrative prompts; results depend on your client and model. Intervals are 0-based half-open (start included, end excluded); VCF-style variant positions are 1-based.
- "Show the reads from EGA file EGAF00007243773 (dataset EGAD00001003338) overlapping GRCh38 chr10:[10000, 10050)." Needs
GENOMICS_MCP_EGA_PUBLIC_TEST_ACCOUNT=1, EGA's documented public test account. - "What is the mean signal of ENCODE file ENCFF792QDS over GRCh38 chr1:[1000000, 1001000)?"
- "Check the reference base of GRCh38 variant 7-140753336-A-T against NCBI, then list its ClinVar records with germline, somatic and oncogenicity classifications kept separate."
- "Download the ENA FASTA for DQ285577.1 and show its first 30 bases."
- "Compare genotypes in chr1:[100000, 200000) across the two VCFs in my data folder."
Measured example
The ENCODE request above, run through a clean install on 2026-09-25 with live data:
- File: ENCODE ENCFF792QDS, GRCh38 bigWig, 1,413,106,336 bytes
- Interval: chr1:[1000000, 1001000)
- Result: exact mean 26.361254017233847, from HTTP range reads. The workspace held 0 bytes afterwards (nothing written to disk; network reads still happened).
Four other live demonstrations ran with the same install: an EGA test BAM region, an ENA sequence download, a reference check with ClinVar, and local MinIO. Commands and machine-readable results: docs/demos.md.
Agent case study: a Claude Code agent, limited to this server's tools, compares ENCODE DNase-seq signal at the BCL11A erythroid enhancer across 26 files, with a transcript and a model-free replay: examples/agent-case-study/.
Quickstart
Container (Linux x86_64 with Docker)
The image is linux/amd64. It is tested on Linux x86_64; Docker on macOS is untested. Create the data folder first; it is mounted read-only.
From source (macOS arm64, Linux x86_64)
Needs Python 3.12, uv, a C compiler, and libcurl and zlib development files (pyBigWig is built from source for remote-file support).
There is no PyPI package yet. Wheel, Linux MCPB bundle, pinned uvx command, Windows (WSL2) and platform notes: docs/install.md.
Coverage
All 24 tools and the resources
Resources: genomics://capabilities, genomics://status, genomics://schemas, genomics://schemas/{name}.
Defaults and safety
-
Limits: 1 Mb regions, 10,000 records, 1 MiB responses and a 30 s deadline; calls may lower these. Transfers are capped at 100 MiB unless a call sets a larger budget. Truncation is reported. Nothing is lifted over between assemblies.
-
Local only: stdio, or Streamable HTTP with a bearer token on 127.0.0.1. There is no hosted service. Local reads are limited to the folders you allow, and source files are never modified.
-
Credentials and egress: ambient AWS credentials are never used; private S3 and EGA need explicit configuration. Values from files not marked
publicgo to external APIs only when a call setsallow_external_annotation. -
Cache (unreleased; development checkout only, not in v0.1.0): a bounded in-memory cache reuses byte ranges of public HTTPS files marked
public(revalidated by ETag on every call) and public API responses. It is never used for private, signed or authenticated requests. Turn it off with[cache] enabled = false; restarting clears it. Details and measurements: performance. -
SRA Toolkit (unreleased; optional):
convert_sra_runturns a public SRR/ERR/DRR run into local FASTQ files with NCBI'sprefetchandfasterq-dump, as a budgeted, cancellable job. It is never started by discovery. ENA FASTQ files need no toolkit. Installation, container variant, limits and current verification status: SRA Toolkit.
Configuration: config.example.toml. Scope and known limits: PRD.md. Directory and PyPI status: publication ledger. Technical details: data access, archives, references, composition. Security: SECURITY.md.
Development
Licence
MIT. See LICENSE. Data from each source is subject to that source's own terms.
來源:README.md,提交 c419069
工具
0版本歷史
1- v0.1.0最新Sep 25, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分