Biosamples
БесплатноНе проверенValidates biological sample metadata against ENA checklists, recommends appropriate checklists, and retrieves checklist field definitions via MCP tools.
Описание
Validates biological sample metadata against ENA checklists, recommends appropriate checklists, and retrieves checklist field definitions via MCP tools.
README
A Model Context Protocol (MCP) server for biological sample checklist validation and recommendation.
Built as part of GSoC 2026 proposal preparation for EMBL-EBI (Project: Expose BioSamples Submission and Search Capabilities as MCP Tools for AI-Assisted Metadata Interaction).
What it does
Exposes 3 MCP tools that an LLM (e.g. Claude) can call:
| Tool | Description |
|---|---|
validate_sample |
Validates sample metadata against a specific ENA checklist via BioValidator API |
get_checklist_info |
Returns all mandatory and optional fields for a given checklist ID |
recommend_checklist |
Scores sample metadata against 15 checklists and returns ranked recommendations with confidence scores |
Architecture
Key findings from API research
- BioValidator (
/biosamples/validate) validates JSON structure but does not enforce checklist mandatory fields — the MCP server's scoring engine fills this gap independently - ENA Browser XML API (
/ena/browser/api/xml/{id}) is the reliable public source for checklist field definitions - BioSamples JSON Schema Store (internal MongoDB) is not publicly accessible — flagged as a risk in the GSoC proposal with ENA XML as a confirmed working alternative
- Validation errors return as structured
{dataPath, errors}arrays — machine-parseable and LLM-friendly
Setup
git clone https://github.com/rithvik318/biosamples-mcp
cd biosamples-mcp
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Mac/Linux
pip install -r requirements.txt
Run
python server.py
Test with MCP Inspector
npx @modelcontextprotocol/inspector python D:\biosamples-mcp\server.py
Open http://localhost:6274 and connect using:
- Command:
D:\biosamples-mcp\venv\Scripts\python.exe - Arguments:
D:\biosamples-mcp\server.py
Example tool calls
validate_sample
{
"sample_name": "soil sample from Delhi",
"characteristics": "{\"organism\": [{\"text\": \"soil metagenome\"}], \"collection_date\": [{\"text\": \"2024-01-01\"}], \"geographic_location_country_andor_sea\": [{\"text\": \"India\"}]}",
"checklist_id": "ERC000011"
}
recommend_checklist
{
"sample_name": "soil metagenome sample",
"characteristics": "{\"organism\": [{\"text\": \"soil metagenome\"}], \"collection_date\": [{\"text\": \"2024-01-01\"}]}",
"top_n": 3
}
Technologies
- Python 3.10+
- MCP Python SDK
- httpx (async HTTP)
- xml.etree.ElementTree (XML parsing)
- Tested with MCP Inspector v0.21.1
Установка Biosamples
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/rithvik318/biosamples-mcpFAQ
Biosamples MCP бесплатный?
Да, Biosamples MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Biosamples?
Нет, Biosamples работает без API-ключей и переменных окружения.
Biosamples — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Biosamples в Claude Desktop, Claude Code или Cursor?
Открой Biosamples на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Biosamples with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
