labqc-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
labqc-cli
日本語版 README はこちら (README_JA.md)
Zero-dependency, offline-first CLI auditor, built-in stdio MCP server, and Agent Skill for wet-lab CSV/TSV datasets, qPCR plates, calibration curves, and Excel gene-name date corruption.
labqc inspects experimental tables locally in milliseconds—using Python standard library only—and provides both an Agent-First CLI (--format json, --quiet, deterministic exit codes 0/1/2), a built-in JSON-RPC 2.0 MCP server (labqc mcp / labqc-mcp), and a single-file HTML report (pure inline SVG charts, zero external CDNs).
Why labqc-cli?
Every wet-lab spreadsheet fails in predictable ways right before manuscript submission or AI pipeline handoff:
Excel gene-name date corruption:
MARCH1becomes1-Mar/March-1/3月1日,SEPT2becomes2-Sep/Sept-2,DEC1becomes1-Dec, and2310009E13becomes2.31E+13.Mixed measurement units: Someone records
0.025 ug/mLin ang/mLcolumn, or enters a1,000xprefix slip.Hidden qPCR & calibration issues: Missing NTC controls (
QPCR_MISSING_NTC), NTC amplification (Ct < 35), Ct outliers (QPCR_CT_OUTLIER), replicateSD > 0.5(MIQE threshold), non-monotonic standard curves, or extrapolated unknowns.Silent encoding & delimiter traps: Japanese Excel
Shift_JIS / CP932, UTF-8/UTF-16 BOMs, jagged unquoted commas, or duplicateSample_IDrows.Data governance blocks: You cannot upload unpublished experimental or clinical cohorts to cloud SaaS validators.
labqc runs 100% offline with zero third-party pip dependencies, launches in under 1 second, and never makes any outbound network request.
Related MCP server: CSV Insight & Cleaner MCP
Quick Start (1-Line Install & Instant Demo)
pip install labqc-cliOr run directly with uv:
uvx --from labqc-cli labqc demo --format jsonTry the synthetic wet-lab demo and generate an HTML report + cleaned CSV:
labqc demo --out demo_report.html --clean-out demo_cleaned.csvAudit your own experimental file (human report or machine-readable agent JSON):
# Human-readable report + cleaned UTF-8 CSV
labqc audit experiment_results.csv --out qc_report.html --clean-out experiment_clean.csv
# Agent-first JSON audit (writes zero extra HTML files unless --out is passed)
labqc audit experiment_results.csv --format json --strictUse as an Offline MCP Server (Claude Desktop / Cursor)
labqc-cli v0.2 includes a zero-dependency JSON-RPC 2.0 stdio MCP server (labqc mcp / labqc-mcp) exposing three offline tools:
audit_lab_table: Audits CSV/TSV files or inlinecsv_textfor gene-date corruption, mixed units, missingness, IQR/MAD outliers, batch shifts, and formula injection.audit_qpcr_plate: Enforces MIQE plate QC (QPCR_MISSING_NTC,QPCR_NTC_CONTAMINATION,QPCR_CT_OUTLIER,QPCR_INVALID_CT,QPCR_HIGH_REPLICATE_SD).generate_qc_html_report: Writes a self-contained zero-CDN HTML report (with optional UTF-8 cleaned CSV).
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"labqc": {
"command": "uvx",
"args": ["--from", "labqc-cli", "labqc-mcp"]
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"labqc": {
"command": "labqc",
"args": ["mcp"]
}
}
}Agent Skill Package (skills/labqc/SKILL.md)
Ready for Claude Code, Cursor, Antigravity, and skills-hub.ai — copy skills/labqc/ into your workspace or global skills directory (.claude/skills/labqc/ or .gemini/skills/labqc/).
Before & After: What labqc Catches Automatically
Raw Spreadsheet Trap | What | Action Taken in |
| CRITICAL | Never silently guessed/overwritten — preserved intact and tagged in |
| CRITICAL | Safely converts |
| Flags non-finite values ( | Normalizes missing placeholders to empty cells ( |
| WARNING | Flags batch shift in terminal, JSON, and SVG batch comparison chart |
Missing NTC, | CRITICAL / WARNING MIQE qPCR alerts ( | Highlighted in dedicated qPCR panel and JSON summary |
| WARNING | Neutralized with leading |
Japanese Excel | Auto-detected encoding ( | Re-encoded safely to portable UTF-8 CSV |
Agent-First CLI Usage & Deterministic Exit Codes
labqc audit INPUT [--out REPORT.html] [--clean-out CLEAN.csv] [--json-out AUDIT.json]
[--mode auto|general|qpcr|curve] [--id-col COL] [--batch-col COL]
[--delimiter DELIM] [--lang en|ja] [--format text|json] [--quiet]
[--neutralize-formulas] [--strict]
labqc demo [--scenario all|qpcr|curve] [--out DEMO.html] [--clean-out CLEAN.csv]
[--json-out AUDIT.json] [--lang en|ja] [--format text|json] [--quiet]
[--neutralize-formulas] [--strict]
labqc mcp # Start JSON-RPC 2.0 stdio MCP server (alias: labqc-mcp)
labqc version # Print version (--format json supported)Exit Code Contract
0: Audit completed cleanly (or withoutCRITICALblockers when--strictis omitted).1: Argument, input file, directory collision, or I/O error (all errors emit cause + copy-pasteFix command).2: One or moreCRITICALfindings detected under--strict.
Python API
from pathlib import Path
from labqc import audit_file
report = audit_file(Path("experiment_results.csv"))
print(report.score, report.grade, report.critical_count)Features Inside Every Single-File HTML Report
Quality Scorecard (0–100, Grade A–F): Transparent deduction across structural, statistical, and biological checks.
Prioritized Action Checklist: Sorted
CRITICAL->WARNING->INFOwith row numbers, examples, and exact remediation guidance.Pure Inline SVG Visualizations: Missingness bar chart, per-column numeric histograms (with median & 1.5x IQR outlier fences), batch median comparison SVG, and calibration curve scatter + OLS fit SVG.
Zero External Requests: Zero JavaScript frameworks, zero Google Fonts, zero external CDNs. Opens cleanly in air-gapped labs and prints cleanly to PDF.
Bilingual UI: Supports
--lang en(default) and--lang ja.
Development & Running Tests
git clone https://github.com/kaneko-ai/labqc-cli.git
cd labqc-cli
uv run --with pytest pytest -v
uv buildResearch Use Only (RUO) & License
License: MIT License
Research Use Only (RUO):
labqc-cliis provided strictly for research data quality auditing and statistical education. It is not intended for clinical diagnosis, treatment decisions, patient management, or regulatory (FDA / IVD / GLP / 21 CFR Part 11) validation.
Need a local desktop GUI for flow cytometry, statistics, and publication-ready figures? AutoTool Lab Complete Lab Suite (https://autotool-lab-showcase.kanekiti1125.workers.dev/)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
Auditable MCP server for PubMed, Europe PMC, ClinicalTrials.gov, and bioRxiv/medRxiv queries
Zero-retention .docx bid, tender & contract compliance auditor with rubric check via MCP HTTP
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for converting between everyday file formats (CSV, Excel, Markdown, Word), including a GxP-compliant Markdown to Word template. Exposes four conversion tools over stdio.Apache 2.0
- AlicenseAqualityDmaintenanceMinimalistic MCP server that lets AI assistants inspect, quality-check, and clean CSV datasets through tools, resources, and prompts, without needing local file access.6MIT
- AlicenseAqualityCmaintenanceOffline MCP server that queries CSV, Parquet, Excel, and JSON files and generates self-contained interactive HTML reports with reproducible provenance. Built and maintained by an AI agent.715 npm4MIT
- AlicenseAqualityBmaintenanceZero-dependency read-only Python offline digital forensics & DFIR triage MCP server for Chromium/Electron LevelDB write-ahead log (.log) carving with masked Castagnoli CRC32C verification, PNG/JPEG container provenance checks, and offline Luhn/IBAN/SWIFT checksum validation (default HMAC-SHA256 redaction).81MIT