AMR (antimicrobial resistance)

io.github.pabloestepaa由 GitHub 帳號 pabloestepaa 發布v0.1.4更新於 Nov 7, 2026

Antimicrobial resistance genes, sequences and literature from NCBI and UniProt

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

讓助理查詢 NCBI 與 UniProt 的抗藥性基因、序列、宿主物種與文獻,並可選擇呼叫本機 AMRFinderPlus 篩檢基因體。

可以做什麼
  • 依文字、藥物類別、次分類、物種或元件類型搜尋並檢視 NCBI 參考基因目錄,支援依基因家族分組及查看目錄版本資訊。
  • 依登錄號取得蛋白質或核酸 FASTA 序列,並列出 NCBI 已定序到該完全相同蛋白質的物種。
  • 查詢 PubMed 文獻的標題、期刊、作者與 DOI。
  • 搜尋 UniProtKB 並讀取條目詳情,例如功能、關鍵字與交互參照。
  • 對 FASTA 檔案執行本機安裝的 AMRFinderPlus,並依藥物類別說明命中結果。
適用情境
適合微生物學與基因體研究問題:辨識抗藥性基因及其變異型、查出哪些物種帶有該基因、取得序列與原始論文,或用 AMRFinderPlus 註解基因體。
執行需求
以 Python 套件形式在本機透過 stdio 執行(uvx 或 pip install amr-mcp),僅支援桌面 MCP 用戶端。需要連線至 NCBI 與 UniProt。可選用 NCBI_API_KEY、NCBI_EMAIL,以及用於目錄快取的 AMR_MCP_CACHE_DIR。基因體篩檢需另外在本機安裝 AMRFinderPlus。
安裝前請注意
查詢會送往 NCBI 與 UniProt,搜尋詞與登錄號會離開本機;NCBI_EMAIL 會隨每次請求傳送。基因體篩檢工具會在你指定的檔案上執行本機程式,請確認所用路徑。結果屬參考資料,發表前應核對所引用的原始來源。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AMR (antimicrobial resistance),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

amr-mcp

[CI] [PyPI]

An MCP server that lets AI assistants (Claude, Codex, Cursor…) query antimicrobial resistance (AMR) data from public, free sources:

  • NCBI Reference Gene Catalog, the curated database behind AMRFinderPlus: ~11,500 AMR genes, point mutations, stress and virulence genes
  • NCBI E-utilities: protein and nucleotide sequences, PubMed references
  • UniProtKB: protein function, keywords and cross-references
  • AMRFinderPlus (optional, if installed locally): screen your own genomes

All data sources are public domain or freely accessible; no API keys are required.

Demo

Claude Code answering the first example question below: the server looks up blaKPC-2 in the catalog, counts the species NCBI has found it in, pulls the protein sequence and resolves the original paper.

[amr-mcp answering a question about the KPC-2 carbapenemase]

Example questions

Which species carry the KPC-2 carbapenemase, what is the original paper describing it, and what does its protein sequence look like?

Summarise the carbapenemase gene families in the catalog and how many variants each has.

Give me the protein sequence of mcr-1.1 and its UniProt function annotation.

Run AMRFinderPlus on ~/data/isolate_17.fasta as Escherichia and explain the hits by drug class.

Tools

ToolWhat it does
search_amr_genesSearch by text, drug class, subclass, organism or element type; group_by_family for broad searches
get_amr_geneExact record for an allele (blaKPC-2) or summary of a family (blaKPC)
list_drug_classesDrug classes and how many catalog entries each has
catalog_infoCatalog version and size
fetch_sequenceProtein or nucleotide FASTA from NCBI by accession
get_protein_hostsSpecies in which NCBI has sequenced an exact protein (Identical Protein Groups)
get_pubmed_referencesTitle, journal, authors and DOI for PubMed IDs
search_uniprot / get_uniprot_entryUniProtKB search and entry details
run_amrfinderRun a local AMRFinderPlus install on a FASTA file

Installation

Run it with uv (no install step needed), or pip install amr-mcp.

Claude Code

bash
claude mcp add amr -- uvx amr-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "amr": { "command": "uvx", "args": ["amr-mcp"] }  }}

Without uv: pipx

bash
pipx install amr-mcpwhich amr-mcp   # e.g. /Users/you/.local/bin/amr-mcp

Then use that absolute path as the command, for example in claude_desktop_config.json:

json
{  "mcpServers": {    "amr": { "command": "/Users/you/.local/bin/amr-mcp" }  }}

Desktop apps don't inherit your shell's PATH, so if Claude Desktop can't start the server, use the absolute path for the command (this applies to uvx too: run which uvx to get it).

Agent skill (optional)

skills/amr-research/SKILL.md tells the agent when to reach for these tools and how to chain them (gene → hosts → sequence → paper, family overviews, genome screening), plus the pitfalls to avoid. It works with any agent that reads SKILL.md files (Claude Code, Cursor, Codex, Copilot…):

bash
npx skills add pabloestepaa/amr-mcp

Or copy the folder by hand, e.g. to ~/.claude/skills/amr-research/ for Claude Code. The skill uses the MCP server above, so install that too.

Configuration

VariablePurpose
NCBI_API_KEYOptional, free. Raises the NCBI rate limit from 3 to 10 requests/s
NCBI_EMAILOptional. Contact e-mail NCBI asks tools to send
AMR_MCP_CACHE_DIRWhere the catalog is cached (default ~/.cache/amr-mcp, refreshed every 30 days)

To enable run_amrfinder: conda install -c bioconda ncbi-amrfinderplus && amrfinder -u.

Development

bash
python -m venv .venv && .venv/bin/pip install -e ".[dev]".venv/bin/pytest -m "not network"   # offline tests.venv/bin/pytest                    # also hits the live NCBI/UniProt APIs

Data licensing

The NCBI Reference Gene Catalog and NCBI sequence data are US government works in the public domain. UniProt data is available under CC BY 4.0. Please cite the original sources when you publish results:

  • Feldgarden M, et al. AMRFinderPlus and the Reference Gene Catalog facilitate examination of the genomic links among antimicrobial resistance, stress response, and virulence. Sci Rep. 2021.
  • The UniProt Consortium. UniProt: the Universal Protein Knowledgebase. Nucleic Acids Res.

License

MIT


Developed with AI assistance (Claude Code); all code reviewed and tested by the author.

來源:README.md,提交 61773f6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.1.4最新Nov 7, 2026
  2. v0.1.3Nov 4, 2026
  3. v0.1.2Nov 3, 2026
  4. v0.1.0Nov 3, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分