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 分