Skip to main content
Glama
anshux1

NitroStack Calculator MCP Server

by anshux1

Vitalis β€” Clinical Intelligence MCP Server

One-line pitch: A production-grade MCP gateway that gives any LLM client safe, authenticated, auditable access to six clinical intelligence capabilities β€” triage, drug safety, diagnostics support, medical research, FHIR patient records, and care coordination β€” powered entirely by live public health data, with zero PHI.


1. Overview & Differentiation

Generic symptom-checker LLM applications typically bolt a static disclaimer onto free-form text. Vitalis is developer infrastructure:

  1. Safety is enforced by framework middleware, not prompt engineering:

    • EmergencyDetectionGuard scans inputs for red flags before execution.

    • ClinicalSafetyInterceptor rewrites overreach language (e.g., "you are diagnosed with"), stamps urgency tiers, and forces clinical disclaimers automatically.

  2. Six Real, Live Federal & Clinical APIs:

    • NLM RxNorm & RxClass

    • OpenFDA (Labels, FAERS Adverse Events, Enforcement/Recalls)

    • NCBI PubMed (E-utilities with XML abstract parsing)

    • ClinicalTrials.gov API v2

    • HAPI FHIR R4 (with Synthea synthetic patient sandbox + SMART Health IT failover)

    • NLM Clinical Table Search Service (ICD-10-CM)

  3. Enterprise Gateway Layer: API-key auth with scopes, per-tool sliding window rate limits, structured JSONL audit logs with input hashing, and health checks.

  4. Interactive Next.js Widgets: 6 custom UI widgets (including the flagship patient summary card) linked via @Widget decorators.


Related MCP server: NitroStack Calculator MCP Server

2. Capability & Module Architecture

Vitalis exposes 25 clinical tools across 6 modules, plus core resources and prompts:

πŸ₯ Module 1: Triage (triage)

  • triage_assess_symptoms: Full triage assessment yielding urgency tier (emergency, urgent, routine, self_care), red-flag matches, candidate conditions, and guidance.

  • triage_check_red_flags: Fast emergency-only screening for critical red-flag terms.

  • triage_get_care_options: Maps urgency tier to concrete clinical care pathways.

πŸ’Š Module 2: Drug Safety (drugs)

  • drug_search: Resolves free-text drug names to RxCUI identifiers, synonyms, and drug classes.

  • drug_get_label_info: Official FDA drug label sections (boxed warnings, contraindications, interactions, etc.).

  • drug_check_interactions: Pairwise drug interaction cross-scanning over official FDA drug labels with evidence excerpts.

  • drug_get_adverse_events: Top reported adverse reactions from FDA FAERS.

  • drug_get_recalls: FDA enforcement and recall actions.

πŸ”¬ Module 3: Diagnostics Support (diagnostics)

  • dx_lookup_condition: Condition name lookup to ICD-10-CM codes.

  • dx_interpret_lab_value: Rule-based interpretation of lab values against ~25 analyte reference ranges.

  • dx_explain_lab_test: Patient-friendly explanations of lab tests (grade 6 reading level).

  • dx_symptom_to_codes: Symptom text to candidate ICD-10-CM documentation codes.

πŸ“š Module 4: Medical Research (research)

  • research_search_pubmed: PubMed literature search with publication type filters.

  • research_get_article: Citation details, DOI, MeSH terms, and parsed XML abstract for a PMID.

  • research_search_trials: ClinicalTrials.gov search with status and phase filters.

  • research_get_trial_details: Detailed trial protocol and eligibility criteria for an NCT ID.

  • research_summarize_evidence: Evidence digest batch for LLM summarization.

πŸ“‹ Module 5: FHIR Patient Records (fhir)

  • fhir_search_patients: Search synthetic FHIR R4 patients.

  • fhir_get_patient: Patient demographics and MRN.

  • fhir_get_conditions: Active problem list.

  • fhir_get_medications: Active medication requests.

  • fhir_get_observations: Vital signs and lab history.

  • fhir_get_encounters: Visit timeline.

  • fhir_get_patient_summary: Aggregated clinical summary bundle (feeds the patient-summary widget).

🀝 Module 6: Care Coordination (care)

  • care_generate_handoff: Standardized SBAR or narrative clinical handoff summary.

  • care_reconcile_medications: 3-column medication reconciliation diff identifying added, removed, and duplicate-risk drugs.

  • care_draft_referral: Specialist referral consultation request note.

  • care_find_guidelines: PubMed clinical practice guidelines.

  • care_appointment_prep: Patient visit preparation checklists.


3. System Architecture & Gateway Layer

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ MCP CLIENTS                      (NitroStudio / Claude Desktop / curl)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚  STDIO (dev) Β· HTTP+SSE (prod)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ GATEWAY LAYER                                                            β”‚
β”‚   EmergencyDetectionGuard -> ApiKeyGuard -> ScopeGuard                   β”‚
β”‚   -> @RateLimit -> TrimPipe -> TOOL HANDLER                              β”‚
β”‚   -> ClinicalSafetyInterceptor -> AuditLogInterceptor -> TimingInterceptor β”‚
β”‚   -> ClinicalExceptionFilter                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FEATURE MODULES                                                          β”‚
β”‚   triage Β· drugs Β· diagnostics Β· research Β· fhir Β· care Β· core           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                       β”‚ HTTPS
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ LIVE UPSTREAM APIS                                                       β”‚
β”‚   RxNorm Β· openFDA Β· PubMed Β· ClinicalTrials.gov Β· HAPI FHIR Β· ClinTables    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

4. UI Widgets

Vitalis includes 6 Next.js frontend widgets registered in src/widgets/widget-manifest.json:

  1. patient-summary (W5 ⭐ flagship): Aggregated patient EHR dashboard.

  2. triage-result (W1): Urgency tier badges and red-flag chips.

  3. drug-safety-report (W2): Severity-banded interaction grid and FDA evidence excerpts.

  4. trial-list (W4): Clinical trial cards with status chips.

  5. lab-result-card (W3): Quantitative reference-range card.

  6. med-reconciliation (W6): 3-column medication diff view.


5. Getting Started & Setup

Prerequisites

  • Node.js >= 18.0.0

  • npm / npx

Installation & Environment

git clone https://github.com/anshu/my-mcp-server.git
cd my-mcp-server
npm install

Configure .env environment variables (see .env.example):

API_KEY_CLINICIAN=vk_live_clinician_demo_key_01
API_KEY_READONLY=vk_live_readonly_demo_key_02
API_KEY_ADMIN=vk_live_admin_demo_key_03
VITALIS_ALLOW_ANONYMOUS_DEMO=true

Running Locally

# Development mode
npm run dev

# Build production bundle
npm run build

# Start production server
npm start

Testing

# Run unit & integration test suite
npm test

6. Responsible-Use & Clinical Disclaimer

IMPORTANT DISCLAIMER: Vitalis is developer infrastructure designed for clinical decision support research and hackathon demonstration purposes only. It is not a licensed medical device and is not intended for primary medical diagnosis, treatment, or acute care triage without human physician oversight. All FHIR patient records provided by the server are 100% synthetic (Synthea generator) and contain zero protected health information (PHI). Always consult a qualified healthcare professional in medical emergencies.

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    C
    maintenance
    Minimal calculator-focused MCP server with tools, resources, and prompts using TypeScript and Zod validation.
    Last updated
    2
  • -
    license
    -
    quality
    C
    maintenance
    A minimal MCP server template for learning NitroStack fundamentals, featuring a calculator module with tools, resources, and prompts.
    Last updated
  • F
    license
    C
    quality
    C
    maintenance
    A minimal MCP server template for learning NitroStack fundamentals, featuring a calculator module with tools, resources, and prompts.
    Last updated
    9

View all related MCP servers

Related MCP Connectors

  • A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anshux1/health-care-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server