Skip to main content
Glama
SBN2 Closing Volume MCP Server

SBN2 Closing Volume MCP Server

Pulmonary Closing Volume & Nitrogen Washout (SBN2) Skill

License: Apache-2.0 Python 3.10+ Zero Dependencies MCP Protocol Ready OpenClaw Certified

Zero-dependency sovereign personal agent skill for non-invasive evaluation of Single-Breath Nitrogen Washout (SBN2) Closing Volume (CV), Closing Capacity (CC), and early peripheral small airway closure.

flowchart TD
    InhaleO2["100% O2 Vital Capacity Inhalation from RV"] --> ExhaleWashout["Slow Exhalation Flow Rate (0.5 L/s)"]
    ExhaleWashout --> AnthonisenPhases["Continuous N2 Concentration & Volume Tracing"]
    AnthonisenPhases --> Phase3["Phase III Alveolar Slope (%N2/L)"]
    AnthonisenPhases --> Phase4["Phase IV Inflection Point (Closing Volume CV)"]
    Phase3 & Phase4 --> SmallAirwayEngine["Small Airway Patency & Ventilation Heterogeneity Score"]
    SmallAirwayEngine --> Agent["OpenClaw / Hermes Personal Agent Interventions"]

Features

  • Deterministic Math: Pure Python standard library implementation with zero external dependencies.

  • Pulmonary Physiology Standards: Implements validated equations for Closing Volume percentage, Closing Capacity, and age-predicted reference intervals.

  • Small Airway Disease Detection: Highly sensitive detection of bronchiolar collapse before changes in $FEV_1$ or $FVC$.

  • Model Context Protocol (MCP): Native JSON-RPC tool integration for LLMs and autonomous agents.

Related MCP server: Retinal Vascular Box-Counting Fractal Dimension (Df) Skill

Quickstart

from client import PulmonaryClosingVolumeClient

client = PulmonaryClosingVolumeClient()
result = client.evaluate_closing_volume(
    vital_capacity_l=4.8,
    closing_volume_l=0.62,
    residual_volume_l=1.35,
    phase3_slope_pct_n2_per_l=1.1,
    age_years=28
)
print("Closing Volume %:", result["cv_vc_pct"], "%")
print("Small Airway Score:", result["small_airway_score"])
print("Classification:", result["classification"])

License

Apache-2.0

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables personal agents to deterministically compute respiratory chemoreflex sensitivity from end-tidal CO2 and ventilation changes, classify CO2 tolerance, and assess loop-gain stability through native JSON-RPC tools.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables deterministic calculation of retinal microvascular box-counting fractal dimension, arborization complexity, and vascular rarefaction from box-size and box-count data through JSON-RPC tools for LLM and autonomous agent workflows.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables deterministic calculation and classification of respiratory impedance, peripheral airway resistance (R5–R20), and reactance from oscillometry measurements through JSON-RPC tools for LLM and agent workflows.
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables non-invasive deterministic evaluation of respiratory inertance, dynamic compliance, resonant frequency, and mechanical work of breathing through an MCP JSON-RPC tool for LLM and autonomous-agent use.
    7
    MIT