Stdio MCP server for MCHS schemas, validation, support status, and evidence.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Contributing | Security | Code of Conduct | Citation
This project provides Python translations of the IHACPA SAS funding
calculators. Modules cover acute, emergency department, mental health,
subacute and outpatient activity along with HAC and AHR adjustment
logic. The implementation is being brought into explicit parity with the
official SAS calculators, but validation is tracked per calculator and year
rather than claimed as complete across the whole repository. The current
implementation still uses pandas-based paths, while the longer-term data
stack is moving toward Arrow-backed interchange and Polars where parity work
allows it. A lightweight command line interface is available via the
funding-calculator script.
The public documentation site is published from the Starlight scaffold in
docs-site/ and serves as the canonical docs front door.
The GitHub Pages deployment path is wired through
.github/workflows/docs-site.yml.
Open the docs at https://edithatogo.github.io/mchs/.
Releases are tag-driven and start from v0.2.0-style tags.
The repo uses release drafts for notes and a release workflow to build
distributions and publish GitHub Releases from tagged commits.
Tagged releases also trigger Python package publishing to PyPI through
trusted publishing.
The Rust GA workflow also publishes Rust artifacts to GitHub Releases,
but crates.io submission is not wired in this repository yet.
The conda-forge recipe draft is maintained under conda/recipe/; new conda
packages are currently recipe-only until a staged-recipes PR is accepted and
the package appears on the public channel; users should treat conda-forge as
unpublished until that registry record exists.
All release claims still depend on the CI and validation gates passing for the
tagged source.
The JVM binding has repo-side Maven publishing metadata and a manual GitHub Actions workflow. Maven Central publication is still not claimed because the external Central Portal account gates remain open:
CENTRAL_PORTAL_DEPLOY_URL, CENTRAL_PORTAL_USERNAME, and
CENTRAL_PORTAL_PASSWORD provisioned in the release secret store;MAVEN_SIGNING_KEY and MAVEN_SIGNING_PASSWORD provisioned in the release
secret store.gradle -p bindings/jvm tasks --allgradle -p bindings/jvm publishAllPublicationsToCentralPortalRepository --dry-run --console=plainAs of 2026-05-26:
| Surface | Distribution evidence | Registry state |
|---|---|---|
Python package (nwau-py) | pyproject.toml, release workflow, and PyPI badge links | Published on PyPI at nwau-py 0.2.2 |
Conda package (nwau-py) | conda/recipe/meta.yaml | Recipe-only (not yet conda-forge published) |
MCP stdio server (mchs-mcp) | nwau_py/mcp_server.py, contracts/mcp/registry/server.json, .github/workflows/publish-mcp-registry.yml | Published to the official MCP Registry as io.github.edithatogo/mchs version 0.2.2; Rust formula execution is opt-in for MCP acute 2025 only |
Rust crates (nwau-core, nwau-c-abi, nwau-py) | rust/crates/*/Cargo.toml | nwau-core Published on crates.io at 0.1.0; nwau-c-abi and nwau-py remain local/private scaffolds |
@edithatogo/mchs-wasm-binding package manifest | wasm-binding/package.json | Published on npm at 0.1.0 |
| R / Julia / Scala / Spark / Swift / Stata / MATLAB / Kotlin-Native / Power Platform | Track specs in conductor/tracks/* | Private / roadmap-only; no registry artifacts claimed |
Do not state registry submission success (including crates.io, npm, CRAN, NuGet, etc.) unless a registry page exists and is linked in evidence.
The repository also contains a Rust workspace scaffold for calculator-core migration. Python remains the current validated runtime path until Rust parity is proven calculator by calculator. The intended architecture is a polyglot library: a shared Rust calculator core with thin bindings or adapters for Python, Rust, R, Julia, C#/.NET, Go, TypeScript/WASM, Java/JVM, C ABI, SQL/DuckDB, SAS interoperability, CLI/file workflows, web demos, and Power Platform orchestration. Those surfaces must consume shared contracts and validation fixtures rather than duplicating formula logic.
The CLI exposes an explicit runtime selector for calculation commands:
--runtime python|rust|auto, with NWAU_RUNTIME available for CI or automation
overrides. Python remains the default. The only Rust-backed CLI slice currently
promoted is opt-in acute 2025 CSV execution; unsupported Rust requests fail
closed rather than falling back silently. See
docs/roadmaps/rust-cli-runtime-boundary.md for the support boundary.
The MCP stdio server keeps its Python transport shim for registry-compatible
local execution, but mchs.calculate can opt into the same Rust acute 2025
formula slice with options.runtime = "rust". MCP support-status resources
distinguish the Python stdio transport from Rust-backed formula execution.
No CLI or MCP Rust-default claim is made; the promotion matrix in
contracts/runtime/rust-cli-mcp-promotion-matrix.json keeps Rust default
promotion blocked until cross-surface evidence covers unsupported calculators,
years, formats, diagnostics, and rollback.
Each module below mirrors a SAS program from the IHACPA package.
| Module | SAS source | Notes |
|---|---|---|
acute | NWAU25_CALCULATOR_ACUTE.sas | Calculates NWAU25 for acute admitted episodes. Implements ICU hour logic, length of stay categories and private patient adjustments using the current tabular Python execution paths. |
ed | NWAU25_CALCULATOR_ED.sas | Handles Emergency Department/Service activity. Supports UDG and AECC classifications with remoteness and indigenous adjustments. |
mh | NWAU25_CALCULATOR_MH.sas | Implements the mental health consumer model. Applies private patient services and accommodation adjustments. |
subacute | NWAU25_CALCULATOR_SUBACUTE.sas | Calculates NWAU25 for subacute admitted activity based on SNAP. |
outpatients | NWAU25_CALCULATOR_OUTPATIENTS.sas | For nonβadmitted clinic activity. Applies remoteness and indigenous adjustments. |
adjust | Calculate Adjusted NWAU.sas | Combines base NWAU with Hospital Acquired Complication (HAC) and Avoidable Hospital Readmission (AHR) adjustments. |
Historical SAS calculators from IHACPA should be extracted to
archive/sas/<YEAR>/. Rename the downloaded directory so only the year
remains (for example archive/sas/2025). Each folder then contains the
original SAS programs and data tables for that pricing year.
The project includes Python versions of each funding calculator. The table below lists the corresponding SAS programs and shows which pricing years have validated weights and formulas.
| Calculator | SAS program | Python | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acute | NWAU25_CALCULATOR_ACUTE.sas | β | β | β | ||||||||||
| ED | NWAU25_CALCULATOR_ED.sas | β | β | β | ||||||||||
| MH | NWAU25_CALCULATOR_MH.sas | β | β | β | ||||||||||
| Subacute | NWAU25_CALCULATOR_SUBACUTE.sas | β | β | β | ||||||||||
| Outpatients | NWAU25_CALCULATOR_OUTPATIENTS.sas | β | β | β | ||||||||||
| Adjustment | Calculate Adjusted NWAU.sas | β | β | β | ||||||||||
| Readmission | Avoidable Hospital Readmission Grouper 030.sas | β | β | β |
Weights and formulas are currently verified for 2024 and 2025. Earlier years remain in progress until their outputs are validated against trusted reference material.
The preferred development workflow uses uv:
Published releases are available from PyPI:
After the conda-forge staged-recipes submission is accepted and the package is publicly available, conda users can install with:
Extract the official SAS calculators under archive/sas/<YEAR>/ so the
Python modules can load the reference tables for each year.
The calculators rely on several core Python packages:
The active development stack also uses:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mchs-nwau-calculator)<a href="https://allmcps.com/mcp/mchs-nwau-calculator"><img src="https://allmcps.com/api/badge/mchs-nwau-calculator?style=directory" alt="MCHS NWAU Calculator on AllMCPs" /></a>