clinical-calc-mcp
This server offers a set of local, deterministic clinical calculation tools for nursing and emergency-care education, covering fluid resuscitation, body surface area, vital sign indices, drip rates, and unit conversions.
parkland_formula: Estimate 24-hour crystalloid volume for burn resuscitation based on weight and %TBSA, including split volumes and rates for the first 8 and remaining 16 hours.
bsa_mosteller: Compute body surface area (Mosteller formula) and BMI from weight and height.
vital_signs_summary: Calculate pulse pressure, estimated MAP, and shock index from heart rate and blood pressures.
drip_rate_calculator: Determine infusion rate in mL/hr and gravity drip rate in gtt/min (exact and whole-drop) from volume, time, and optional drop factor.
temperature_converter: Convert between Celsius and Fahrenheit, rejecting temperatures below absolute zero.
weight_converter: Convert between kilograms and pounds, rejecting non-positive weights.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@clinical-calc-mcp Calculate Parkland formula for 70 kg patient with 30% TBSA"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

clinical-calc-mcp

A local-only FastMCP server providing validated, deterministic clinical calculation tools for nursing and emergency-care education and authorized clinical software workflows. Visit the project website for quick start instructions, AI client setup, project resources, and contribution information. Developer: Muhammad Umar Jabbar. Website source: clinical-calc-mcp-site.
Clinical safety: This project is a calculation utility, not a diagnostic or treatment-decision system. It does not determine what is appropriate for any particular patient. Clinical decisions must follow current institutional protocols, clinician judgment, and applicable guidance. Verify every input, unit, and result independently.
Features
Six focused MCP tools for common clinical calculations and unit conversions, with typed inputs, explicit units, validation, and structured results.
Deterministic arithmetic; no external API, database, patient file access, or network access is needed to calculate.
Clear input errors for non-finite, zero, negative, out-of-range, and inappropriate drop-factor values.
FastMCP-generated tool schemas; usable with MCP-compatible clients.
Python 3.11+ package, installable with
piporuv, with aclinical-calc-mcpcommand.No patient data is retained or logged by this application.
Related MCP server: Medical Calculator MCP Server
Available tools
Tool | Inputs | Outputs | Formula and limitations |
|
| Estimated 24-hour volume, first 8-hour and remaining 16-hour volumes and average rates | Classic formula: |
|
|
| Mosteller: |
|
| Pulse pressure, estimated MAP, shock index | Returns calculations only. It provides no thresholds, risk category, diagnosis, triage, or treatment recommendation. |
|
|
|
|
|
| Converted temperature | Celsius/Fahrenheit conversion only; temperatures below absolute zero are rejected. No interpretation is provided. |
|
| Converted weight | Kilogram/pound conversion only; non-positive weights are rejected. No dosing or interpretation is provided. |
Inputs must be finite, with tool-specific positive-value, unit, and range checks. TBSA cannot exceed 100%; systolic pressure must exceed diastolic pressure; drop factor must be a positive whole number; temperature must be at or above absolute zero. Invalid inputs produce understandable tool errors; no tool silently substitutes a value.
Results are rounded to two decimal places where applicable. Calculated values outside finite floating-point range fail with a clear error. This package does not add arbitrary demographic or body-size limits.
Installation
Install from PyPI
Install the latest published release from PyPI with:
python -m pip install clinical-calc-mcp
clinical-calc-mcpPyPI currently serves version 0.1.0, which includes the original three tools. The six-tool 0.2.0 source is published on GitHub main but is not yet on PyPI. Trusted Publishing setup is documented for the next PyPI release.
To let an MCP client launch the current six-tool GitHub version directly without a separate global install, a client with uvx support can run this command (requires uv):
uvx --from git+https://github.com/Umarjaum/clinical-calc-mcp.git clinical-calc-mcpInstall directly from GitHub with pip
python -m pip install "git+https://github.com/Umarjaum/clinical-calc-mcp.git"
clinical-calc-mcpTo install a specific release tag, replace main with a tag, for example:
python -m pip install "clinical-calc-mcp @ git+https://github.com/Umarjaum/clinical-calc-mcp.git@v0.1.0"Install from a local checkout with pip
git clone https://github.com/Umarjaum/clinical-calc-mcp.git
cd clinical-calc-mcp
python -m venv .venvActivate the environment:
# macOS / Linux
source .venv/bin/activate
# Windows PowerShell
.venv\Scripts\Activate.ps1
# Windows Command Prompt
.venv\Scripts\activate.batThen install and launch:
python -m pip install .
clinical-calc-mcpFor local development, install test and lint tools too:
python -m pip install -e '.[dev]'Install with uv
git clone https://github.com/Umarjaum/clinical-calc-mcp.git
cd clinical-calc-mcp
uv sync
uv run clinical-calc-mcpuv sync installs the locked project dependencies from uv.lock. For development extras, use uv sync --extra dev.
Running the server
The installed command starts FastMCP using its default stdio transport:
clinical-calc-mcpYou can also run it as a Python module:
python -m clinical_calc_mcpFor development from the checkout:
uv run clinical-calc-mcp
# or, after activating the venv and installing editable:
python -m clinical_calc_mcpKeep the process attached to the MCP client; stdio is a protocol transport, not an interactive terminal interface. Do not add arbitrary shell commands or network-exposed transports to a clinical deployment without a separate security review.
Claude Desktop integration
To run the current six-tool GitHub version using Claude Desktop, add this server entry to its MCP configuration file:
{
"mcpServers": {
"clinical-calc-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Umarjaum/clinical-calc-mcp.git", "clinical-calc-mcp"]
}
}
}This configuration requires uv and internet access to fetch the source and dependencies. If you have installed the package in a virtual environment instead, replace the command with the full executable path; find it with which clinical-calc-mcp on macOS/Linux or where.exe clinical-calc-mcp on Windows.
Configuration-file locations can vary by OS and app version. Use the current MCP / developer settings in Claude Desktop to locate or edit the configuration file rather than relying on a hard-coded path. Restart or reload the client after changing configuration, then confirm the six tool names appear.
Configure other MCP clients
Any AI client that supports launching local MCP servers over stdio can use this package. For Claude Desktop and Cursor, use the following configuration shape:
{
"mcpServers": {
"clinical-calc-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Umarjaum/clinical-calc-mcp.git", "clinical-calc-mcp"]
}
}
}For VS Code, the workspace .vscode/mcp.json format uses a top-level servers key and an explicit stdio type:
{
"servers": {
"clinical-calc-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "git+https://github.com/Umarjaum/clinical-calc-mcp.git", "clinical-calc-mcp"]
}
}
}For tested steps and troubleshooting, see docs/client-setup.md. These instructions cover clients that can run local stdio servers. A hosted or browser-only AI that accepts only remote HTTP MCP servers cannot connect to this local package without a separately hosted, secured service; this project does not expose patient calculations over the internet. Do not assume every AI platform supports MCP or local servers.
Community and project discovery
Read the current MCP client and catalog compatibility notes. Bug reports and narrow, sourced calculation suggestions are welcome through GitHub Issues; broader discussion is available in GitHub Discussions. Use synthetic examples only—never post patient data, confidential information, or secrets.
Development
Requirements: Python 3.11 or newer and Git. Clone the repository, then install its development dependencies:
git clone https://github.com/Umarjaum/clinical-calc-mcp.git
cd clinical-calc-mcp
uv sync --extra devThe runtime is deliberately small: FastMCP and Pydantic. Tests use pytest; Ruff supplies optional lint checks. No external service credentials are needed.
Release and PyPI publishing
Releases are built and validated in GitHub Actions, then published to PyPI with short-lived OpenID Connect credentials using PyPI Trusted Publishing. The public 0.1.0 release was uploaded directly; configure the publisher and GitHub pypi environment in docs/releasing.md before using the automated path for a later version. PyPI versions cannot be overwritten.
Testing
Run the full suite (including an in-memory MCP client handshake/tool call):
uv run pytestOr use pip in an activated virtual environment:
python -m pip install -e '.[dev]'
python -m pytest
ruff check .Tests cover known calculation examples, validation boundaries, NaN/infinity, absolute-zero limits, invalid drop factors, half-up drip rounding, numeric overflow behavior, and protocol exposure of all six MCP tools.
Project structure
clinical-calc-mcp/
├── .dockerignore
├── .gitignore
├── .python-version
├── assets/
│ ├── clinical-calc-banner.png
│ └── clinical-calc-mark.png
├── .github/dependabot.yml
├── .github/ISSUE_TEMPLATE/bug_report.yml
├── .github/ISSUE_TEMPLATE/feature_request.yml
├── .github/workflows/publish.yml
├── .github/workflows/test.yml
├── docs/
│ ├── client-setup.md
│ ├── clinical-safety.md
│ ├── discovery.md
│ └── releasing.md
├── src/clinical_calc_mcp/
│ ├── __init__.py
│ ├── __main__.py
│ ├── py.typed
│ └── server.py
├── tests/test_server.py
├── CHANGELOG.md
├── CITATION.cff
├── CONTRIBUTING.md
├── Dockerfile
├── LICENSE
├── pyproject.toml
├── SECURITY.md
├── uv.lock
└── README.mdSecurity and privacy model
The calculator functions are deterministic local arithmetic. This application makes no outbound HTTP requests, has no API keys, database, telemetry, or patient-file access, and does not persist or log tool inputs. It does not evaluate user-provided code, execute shell commands, dynamically import modules based on user input, or make external decisions. MCP clients may maintain their own logs or conversation history; review the privacy and retention behavior of the client and deployment environment separately. Do not send identifiable patient data to an AI client unless permitted by your organization's policies.
Clinical safety notice
This software is provided for calculation support and educational or authorized software workflows only. It is not medical advice, does not diagnose, prescribe, or recommend treatment, and has not been validated for a specific clinical workflow. Mathematical correctness does not establish clinical suitability. Confirm inputs, units, rounding, equipment, current guidance, and institutional protocols with a qualified clinician. The developers and contributors do not assume responsibility for clinical decisions made using this software. See docs/clinical-safety.md.
License
Released under the MIT License. See CONTRIBUTING.md for contribution expectations and CHANGELOG.md for release notes.
Available Tools
3 toolsbsa_mostellerBsa MostellerA
Calculate body surface area by Mosteller and body mass index.
Inputs: height_cm (required), weight_kg (required). Returns: object
drip_rate_calculatorDrip Rate CalculatorA
Calculate a volume/time rate and gravity drip rate.
Inputs: volume_ml (required), time_hours (required), drop_factor. Returns: object
parkland_formulaParkland FormulaA
Calculate the classic Parkland-formula 24-hour crystalloid estimate.
Inputs: weight_kg (required), tbsa_percentage (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct clinical calculation: Parkland burn fluids, BSA/BMI, and drip rate. There is no meaningful overlap between them, so an agent can confidently select the correct tool.
All names are lowercase snake_case and descriptive, but the suffixes are inconsistent: one tool ends in _formula, one has no suffix, and one ends in _calculator. This is readable but does not follow a uniform naming pattern.
Three tools is a well-scoped size for a focused clinical calculator server. Each tool provides a distinct, useful calculation without redundancy.
The tools cover burn resuscitation, BSA/BMI, and drip administration, but the broad 'clinical-calc' name suggests many common clinical calculators are missing. It is reasonable as a small emergency/fluid calculator set, but not comprehensive.
Maintenance
Related MCP Connectors
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Deterministic fitness calculators — TDEE, adaptive TDEE, body fat, 1RM, macros — with consensus.
90+ pure finance calculators: loans, investing, bonds, options, tax. Stateless, stores nothing.
Free deterministic tools for math, data transforms, dates, text, statistics, finance, and units.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides access to 56 professional medical calculators covering multiple specialties including cardiovascular, renal, hepatic, respiratory, and critical care assessments. Enables healthcare professionals to perform evidence-based calculations with detailed explanations and automatic unit conversions.13Apache 2.0
- AlicenseAqualityDmaintenanceProvides validated clinical scoring tools for AI agents via MCP, with evidence-based calculators and smart tool discovery.65Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides over 300 medical calculator tools for AI assistants, supporting evidence-based medicine through modular API endpoints.4-
- AlicenseNot gradedqualityDmaintenanceProvides 59 clinical medical calculators and scoring tools for healthcare professionals and AI assistants, covering renal, cardiovascular, pulmonary, critical care, and other specialties.5MIT