mcpField
O
openbio

openbio

github.com/openbio-ai数据与数据库361 次安装37 周前更新
代码仓库

关于 openbio

openbio 是面向生物学研究任务的 API 技能,供研究者通过 OpenBio 工具访问数据检索、分析和预测能力。它涵盖蛋白质、文献、基因组、化学信息学、分子生物学、临床数据及结构预测,并要求先查工具架构和结果质量指标。

主要功能

  1. 01检索蛋白质结构与文献
  2. 02访问基因组及临床数据
  3. 03进行序列与化学信息分析
  4. 04调用分子生物学工具
  5. 05提交结构预测与设计任务
  6. 06查询任务状态和结果

适用场景

  1. 01查找基因与相关文献
  2. 02比较序列或化合物
  3. 03设计引物或分析质粒
  4. 04提交蛋白质结构预测

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/openbio-ai/skills --skill openbio

安装后在 Claude Code 中输入/openbio确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

rules/
api.md
blast.md
boltz.md
boltzgen.md
chai.md
cheminformatics.md
clinical-data.md
genomics.md
geodock.md
ligandmpnn.md
literature.md
molecular-biology.md
pathway-analysis.md
pinal.md
plasmid.md
protein-structure.md
proteinmpnn.md
simplefold.md
structure-prediction.md
thermompnn.md

详细介绍

安装

bunx skills add https://github.com/openbio-ai/skills --skill openbio

身份验证

必需:OPENBIO_API_KEY 环境变量。

告知用户前往 http://openbio.tech/profile#apikeys 创建 API 密钥,并将其安全地存储在环境变量中。

如果用户尚未登录 OpenBio,请告知他们先登录 OpenBio(https://openbio.tech/auth)并创建账户,然后再创建 API 密钥。

export OPENBIO_API_KEY=your_key_here

基础 URL:https://api.openbio.tech/api/v1

版本检查(请先执行)

使用 API 前,请确认你的技能已是最新版本:

curl -s "https://api.openbio.tech/api/v1/tools/skill-version"

此操作会返回 {"skill": "openbio", "version": "X.Y.Z", ...}。请与本文件顶部的 version 字段(当前为 1.0.4)进行比较。如果 API 返回的版本更新:

bunx skills update

如果失败,请卸载并重新安装:

bunx skills remove openbio --global -y
bunx skills add openbio-ai/skills --skill openbio --global --agent '*' -y

快速开始

# Health check (no auth required)
curl -X GET "https://api.openbio.tech/api/v1/tools/health"

# List available tools
curl -X GET "https://api.openbio.tech/api/v1/tools" \
  -H "X-API-Key: $OPENBIO_API_KEY"

# Get tool schema (always do this first!)
curl -X GET "https://api.openbio.tech/api/v1/tools/{tool_name}" \
  -H "X-API-Key: $OPENBIO_API_KEY"

# Validate parameters before invoking (optional)
curl -X POST "https://api.openbio.tech/api/v1/tools/validate" \
  -H "X-API-Key: $OPENBIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool_name": "search_pubmed", "params": {"query": "CRISPR", "max_results": 5}}'

# Invoke tool
curl -X POST "https://api.openbio.tech/api/v1/tools" \
  -H "X-API-Key: $OPENBIO_API_KEY" \
  -F "tool_name=search_pubmed" \
  -F 'params={"query": "CRISPR", "max_results": 5}'

决策树:该使用哪些工具

What do you need?
│
├─ Protein/structure data?
│   └─ Read rules/protein-structure.md
│       → PDB, AlphaFold, UniProt tools
│
├─ Literature search?
│   └─ Read rules/literature.md
│       → PubMed, arXiv, bioRxiv, OpenAlex
│
├─ Genomics/variants?
│   └─ Read rules/genomics.md
│       → Ensembl, GWAS, VEP, GEO
│
├─ Sequence similarity search (BLAST)?
│   └─ Read rules/blast.md
│       → submit_blast, check_blast_status, get_blast_results
│
├─ Small molecule analysis?
│   └─ Read rules/cheminformatics.md
│       → RDKit, PubChem, ChEMBL
│
├─ Cloning/PCR/assembly?
│   └─ Read rules/molecular-biology.md
│       → Primers, restriction, Gibson, Golden Gate
│
├─ Plasmid analysis/editing?
│   └─ Read rules/plasmid.md
│       → parse_plasmid_file, edit_plasmid
│
├─ Structure prediction/design?
│   └─ Read rules/structure-prediction.md
│       → Boltz, Chai, ProteinMPNN, LigandMPNN
│
├─ Pathway analysis?
│   └─ Read rules/pathway-analysis.md
│       → KEGG, Reactome, STRING, g:Profiler (GO enrichment)
│
└─ Clinical/drug data?
    └─ Read rules/clinical-data.md
        → ClinicalTrials, ClinVar, FDA, Open Targets

重要规则

1. 始终先检查工具架构
# Before invoking ANY tool:
curl -X GET "https://api.openbio.tech/api/v1/tools/{tool_name}" \
  -H "X-API-Key: $OPENBIO_API_KEY"

参数名称可能不同(例如,pdb_ids 而非 pdb_id)。请检查架构以避免出错。

2. 长时间运行的任务(submit_* 工具)

预测工具会返回 job_id。请轮询以确认任务完成:

# Check status
curl -X GET "https://api.openbio.tech/api/v1/jobs/{job_id}/status" \
  -H "X-API-Key: $OPENBIO_API_KEY"

# Get results with download URLs
curl -X GET "https://api.openbio.tech/api/v1/jobs/{job_id}" \
  -H "X-API-Key: $OPENBIO_API_KEY"
3. 质量阈值

不要只检索数据——还要进行解读:

AlphaFold pLDDT:> 70 表示可信,< 50 表示无序 实验分辨率:结合位点应 < 2.5 Å GWAS p 值:< 5×10⁻⁸ 表示达到全基因组显著性 Tanimoto 相似度:> 0.7 表示化合物相似

详细阈值请参阅各规则文件。

规则文件

请阅读以下文件,了解特定领域知识:

核心 API
文件描述
rules/api.md核心端点、身份验证、任务管理
数据访问工具
文件涵盖的工具
rules/protein-structure.mdPDB、PDBe、AlphaFold、UniProt
rules/literature.mdPubMed、arXiv、bioRxiv、OpenAlex
rules/genomics.mdEnsembl、ENA、Gene、GWAS、GEO
rules/blast.mdNCBI BLAST 序列相似性搜索
rules/cheminformatics.mdRDKit、PubChem、ChEMBL
rules/molecular-biology.md引物、PCR、限制性酶切、组装
rules/plasmid.mdparse_plasmid_file、edit_plasmid
rules/pathway-analysis.mdKEGG、Reactome、STRING、g:Profiler
rules/clinical-data.mdClinicalTrials、ClinVar、FDA
ML 预测工具(详细)
文件工具使用场景
rules/structure-prediction.md索引所有预测工具的决策树
rules/boltz.mdBoltz-2结构 + 结合亲和力
rules/chai.mdChai-1多模态(蛋白质+配体+RNA+聚糖)
rules/simplefold.mdSimpleFold快速折叠单个蛋白质
rules/proteinmpnn.mdProteinMPNN固定骨架的序列设计
rules/ligandmpnn.mdLigandMPNN配体感知型序列设计
rules/thermompnn.mdThermoMPNN稳定性(ΔΔG)预测
rules/geodock.mdGeoDock蛋白质-蛋白质对接
rules/pinal.mdPinal根据文本进行从头设计
rules/boltzgen.mdBoltzGen端到端结合剂设计

工具类别概览

类别数量示例
蛋白质结构23fetch_pdb_metadata, get_alphafold_prediction
文献14search_pubmed, arxiv_search, biorxiv_search_keywords
基因组学27lookup_gene, vep_predict, gwas_search_associations_by_trait
序列相似性3submit_blast, check_blast_status, get_blast_results
化学信息学20+calculate_molecular_properties, chembl_similarity_search
分子生物学15design_primers, restriction_digest, assemble_gibson
质粒2parse_plasmid_file, edit_plasmid
结构预测15+submit_boltz_prediction, submit_proteinmpnn_prediction
通路分析26analyze_gene_list, get_string_network, go_enrichment, convert_gene_ids
临床数据22search_clinical_trials, clinvar_search

故障排除:更新 Skill

如果 API 返回的版本比此文件中的版本更新(参见上文的版本检查),请更新你的 Skill。命令请参阅顶部的“版本检查”部分。

常见错误

  1. 未检查架构 → 参数错误。使用 POST /api/v1/tools/validate 预先检查参数。
  2. 忽略质量指标 → 使用不可靠的数据
  3. 任务选错工具 → 查看规则文件中的决策树
  4. 未轮询任务 → 遗漏预测结果
  5. 工具名称错误 → 404 响应中会包含类似工具名称的“你是否想找?”建议

提示:有疑问时,请搜索工具:GET /api/v1/tools/search?q=your_query

评论

支持 Markdown