原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

BioMapper

作者:Phenome-Health版本 1.6.3i★ –i在你的电脑上运行
注册名称io.github.trentleslie/biomapper

安装

概览

作者提供的说明(英文原文)

Resolve metabolite, lipid, protein, gene and lab names to knowledge-graph IDs.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:BIOMAPPER_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 0 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: BIOMAPPER_MCP_ROOTS, BIOMAPPER_API_KEY, BIOMAPPER_BASE_URL, BIOMAPPER_MCP_HOME

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "biomapper": {
      "command": "uvx",
      "args": [
        "biomapper"
      ],
      "env": {
        "BIOMAPPER_MCP_ROOTS": "your-value",
        "BIOMAPPER_API_KEY": "your-value",
        "BIOMAPPER_BASE_URL": "your-value",
        "BIOMAPPER_MCP_HOME": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add biomapper --env BIOMAPPER_MCP_ROOTS=your-value --env BIOMAPPER_API_KEY=your-value --env BIOMAPPER_BASE_URL=your-value --env BIOMAPPER_MCP_HOME=your-value -- uvx biomapper

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "biomapper": {
      "command": "uvx",
      "args": [
        "biomapper"
      ],
      "env": {
        "BIOMAPPER_MCP_ROOTS": "your-value",
        "BIOMAPPER_API_KEY": "your-value",
        "BIOMAPPER_BASE_URL": "your-value",
        "BIOMAPPER_MCP_HOME": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "biomapper": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "biomapper"
      ],
      "env": {
        "BIOMAPPER_MCP_ROOTS": "your-value",
        "BIOMAPPER_API_KEY": "your-value",
        "BIOMAPPER_BASE_URL": "your-value",
        "BIOMAPPER_MCP_HOME": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • BIOMAPPER_MCP_ROOTS env
    Folders map_file may read and write, path-separated (needed when the client shares no roots)
  • BIOMAPPER_API_KEY 机密 env
    Optional API key; the hosted deployment is keyless
  • BIOMAPPER_BASE_URL env
    Override the API root (staging or a local engine)
  • BIOMAPPER_MCP_HOME env
    Where job state lives (default ~/.cache/biomapper/mcp)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ! 注意

    作者与仓库一致

    发布者(trentleslie)不是仓库所有者(Phenome-Health);可能是其他人代为上架的

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7283 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7283 个服务器的 99% 更新
  • 基础检查结果等于或优于此分类中其他 7283 个服务器的 29%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

BioMapper 安全吗?

它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:BIOMAPPER_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.6.3)于今天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

biomapper

Python client for the BioMapper2 API — map biological entity names to standardized knowledge-graph identifiers (CHEBI, HMDB, PubChem, RefMet, and more).

from biomapper import map_entity

result = map_entity("L-Histidine") print(result.primary_curie) # RM:0129894 print(result.confidence_tier) # high print(result.ids_for("CHEBI")) # ['15971'] print(result.equivalent_ids_for("HMDB")) # ['HMDB0000177']


Installation

# Core (async HTTP client + Pydantic models)

pip install biomapper

With the external benchmark suite

pip install 'biomapper[benchmarks]'

The core install includes the MCP server for agents (Claude Code, Claude Desktop, other MCP clients); launch it with uvx biomapper (see Use from an agent (MCP)).

Use 1.6.2 or later for `uvx biomapper`. 1.6.0 and 1.6.1 shipped the server behind an mcp extra (uvx --from 'biomapper[mcp]' biomapper-mcp); that line still works on 1.6.2.

Use 1.5.6 or later for `harmonize_cohorts()` and ambiguous-link flags (see Harmonization).

Use 1.5.4 or later to call the hosted deployment without a key (see API keys).

Use 1.5.3 or later for the benchmark suite. Earlier published releases, up to and including 1.4.0, ship neither biomapper.benchmarks nor the benchmarks extra, so pip install 'biomapper[benchmarks]' against them warns that the extra is unknown and installs only the core client. 1.5.2 contains the suite but its extras were published empty, so the same command installs the core client without pandas, requests, rdkit, openpyxl or defusedxml and the suite fails on first import; install those by hand if you are pinned to 1.5.2. 1.5.3 is the first release whose benchmarks extra actually carries its dependencies. The changelog records which versions reached the index; 1.5.0 and 1.5.1 are tagged *(not published)*.


Notebooks

  • notebooks/biomapper_tutorial.ipynb: the harmonization protocol end to end, keyless and build-pinned: resolve two cohort panels, link them by identifier-only CURIE sets, and read a certified and a refused structural certificate.
  • notebooks/monti_overlap_benchmark.ipynb: BioMapper vs Monti et al. 2026 on the NECS cross-cohort overlap, as linked-count coverage for four cohorts plus a structural certification of the NECS to Arivale links, replayed from a pinned run with a small live check.
  • notebooks/ukbb_arivale_harmonization_sop.ipynb: a standard operating procedure for harmonizing two cohorts with this package, worked on UK Biobank × Arivale (metabolites, proteins, clinical labs): inclusion rules, map, match, verify, and results asserted against the Activity 2 milestone, replayed offline from shipped panel metadata.

API keys (optional)

No API key is needed for the hosted deployment (https://biomapper.expertintheloop.io). From 1.5.4 the client is keyless by default: with no key configured it sends no X-API-Key header, and every entry point, including the synchronous wrappers, works as shown below.

A key is only for a self-hosted or authenticated deployment. Pass it as api_key=, or set it in your environment:

export BIOMAPPER_API_KEY=your-key-here

or in a .env file in your project root:

BIOMAPPER_API_KEY=your-key-here

A configured key is sent unless anonymous=True is passed. To force a keyless call while BIOMAPPER_API_KEY is set, use BioMapperClient(anonymous=True). If a deployment does require a key and none was sent, the first request raises BioMapperAuthError saying so.

Releases before 1.5.4 raise BioMapperConfigError when no key is configured, and their synchronous wrappers cannot reach a keyless deployment; upgrade, or use BioMapperClient(anonymous=True) directly.


Quick start

Single lookup (synchronous)
from biomapper import map_entity

result = map_entity("L-Histidine")

print(result.resolved) # True print(result.primary_curie) # RM:0129894 print(result.chosen_kg_id) # CHEBI:15971 print(result.chosen_kg_id_review) # None (or 'divergent_refmet' when a ChEBI conflict is flagged for review) print(result.confidence_score) # 2.489 print(result.confidence_tier) # high (≥2.0) print(result.ids_for("CHEBI")) # ['15971'] print(result.ids_for("refmet_id")) # ['RM0129894']

KG equivalent IDs — all identifiers from the resolved knowledge graph node

print(result.kg_equivalent_ids) # {'CHEBI': ['15971', '44637'], 'HMDB': ['HMDB0000177'], ...} print(result.equivalent_ids_for("HMDB")) # ['HMDB0000177']

Batch mapping (synchronous)
from biomapper import map_entities, summarize

records = [ {"name": "L-Histidine"}, {"name": "Glucose", "identifiers": {"HMDB": "HMDB00122"}}, {"name": "Sphinganine"}, ]

results = map_entities(records, progress=True) # tqdm bar with [notebook] summary = summarize(results)

print(f"{summary.resolved}/{summary.total_queried} resolved") print(f"Resolution rate: {summary.resolution_rate:.1%}") print(summary.vocabulary_coverage)

Inputs are auto-chunked at 1000 entities per request against the native POST /map/batch endpoint, so 10,000 records cost 10 round-trips.

Dataset upload (synchronous)

For larger inputs, hand the server a TSV/CSV file directly and stream results back. The server processes the file row-by-row over the POST /map/dataset/stream endpoint:

from pathlib import Path

from biomapper import map_dataset_file_sync

result = map_dataset_file_sync( Path("compounds.tsv"), name_column="name", provided_id_columns=["hmdb_id"], progress=True, # tqdm bar total_hint=1000, # optional; enables % progress ) result.raise_for_error() # opt-in: raise BioMapperError if the stream truncated print(f"resolved {sum(1 for r in result.results if r.resolved)} of {len(result.results)}")

name_column and provided_id_columns are required — the server uses them to map your file's columns to entity names and identifier hints. For per-result streaming into a UI or custom processing, use the async BioMapperClient.map_dataset_file_iter method (see the tutorial notebook in notebooks/).

Discovering what the API supports
from biomapper import list_annotators, list_vocabularies, list_entity_types

for a in list_annotators(): print(f"{a.slug:30s} {a.name}")

300+ supported vocabularies (CHEBI, HMDB, PubChem, …)

vocabs = list_vocabularies() print(f"{len(vocabs)} vocabularies supported")

Biolink entity types with aliases and default vocabulary prefixes

for et in list_entity_types(): print(f"{et.type}: {', '.join(et.aliases)}") if et.default_prefixes: print(f" prefixes: {', '.join(et.default_prefixes)}")

Tuning resolution

The mapping calls accept the API's resolution options as keyword arguments. An option you do not pass is omitted from the request, so the server's own default applies and the payload is unchanged for callers who ignore them.

Coverage is uneven, so check this before reaching for one. Passing an option to a call that does not accept it raises TypeError locally, before any request:

vocabprefer_humanprefer_canonicalcandidate_limitkestrel_top_narray_delimiters
map_entity, map_entities (sync and async)yesyesyesyesyesyes
BioMapperClient.map_dataset_file_iter (async)yesyesyesyesyesno
map_dataset_file_syncyesnonononono

array_delimiters is absent from the dataset routes because the API does not accept it there. The four missing from map_dataset_file_sync are a gap in that wrapper rather than an API limitation: the async map_dataset_file_iter underneath it does accept them, so use that directly if you need them on a file-based run.

from biomapper import map_entity  # map_entity / map_entities accept all six

result = map_entity( "PC 34:1", vocab="refmet", # restrict to one vocabulary (or a list) prefer_human=False, # gene/protein: allow a non-human ortholog to win prefer_canonical=False, # non-gene: allow a non-canonical-namespace node to win candidate_limit=20, # candidates each Kestrel search annotator retrieves (1..100) array_delimiters=["|"], # how delimited ID strings are split kestrel_top_n=5, # opt in to raw Kestrel passthrough rows (1..100) )

OptionApplies toDefaultNotes
vocaballserverstr or list[str], e.g. "refmet"
prefer_humangene/proteinTrue (server)Prefer the human, HGNC-bearing candidate over a wrong-species ortholog
prefer_canonicalnon-geneTrue (server)Prefer the canonical-namespace node (CHEBI/HMDB/RefMet) over a same-text node from UMLS/ICD/KEGG
candidate_limitallserver1..100. Validated client-side, so an out-of-range value raises ValueError before the request
kestrel_top_nalloff1..100. Passthrough only: it never changes chosen_kg_id, assigned_ids or the certificate
array_delimitersmap_entity, map_entities[",", ";"]Not accepted by the dataset routes

kestrel_top_n populates result.kestrel_results with the raw rows Kestrel returned, exactly as returned, for each search endpoint the pipeline used. Those rows are untrusted external data: treat every field as unescaped and unverified.

Resolution certificates and refusal

A mapping result carries the structural certificate the API computed for chosen_kg_id, which is how you tell "we could not check this" apart from "we checked and disagree".

result = map_entity("cortisone")

cert = result.certificate if cert is not None: print(cert.state) # corroborated | uncorroborated | contradicted |

unavailable | not_applicable

print(cert.independent_source) # registry consulted, e.g. "pubchem" print(cert.independent_of_selection) # False => corroboration would be circular print(cert.refmet_availability) # voted | no_match | unavailable | not_queried

Why the resolver declined, when it did. Distinct from error:

an error means the call failed; a refusal means the pipeline ran and declined to assert.

print(result.refusal_reason)

state="contradicted" means a human should look, not that the resolver is wrong: a name lookup at an external registry can itself return a related-but-different compound. state="unavailable" means there was nothing to check against, which is unverifiable rather than wrong.

Async usage
import asyncio

from biomapper import BioMapperClient

async def main() -> None: async with BioMapperClient() as client:

Verify connectivity

health = await client.health_check() print(health) # {'status': 'healthy', ...}

Single

result = await client.map_entity( "L-Histidine", identifiers={"HMDB": "HMDB00177"}, )

Batch — auto-chunked at 1000 entities per request

results = await client.map_entities( [{"name": "L-Histidine"}, {"name": "Glucose"}], progress=True, )

Stream from a file — per-result as they arrive

from pathlib import Path async for r in client.map_dataset_file_iter( Path("compounds.tsv"), name_column="name", provided_id_columns=["hmdb_id"], ): print(r.query_name, r.primary_curie)

asyncio.run(main())

map_dataset_file_iter is the primitive for UIs and custom processing that want per-result reactivity. Callers needing a

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx