NitroStack Calculator MCP Server
A minimal MCP server template for learning NitroStack, providing calculator-focused tools, resources, and prompts with TypeScript and Zod validation.
README
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:
- Safety is enforced by framework middleware, not prompt engineering:
EmergencyDetectionGuardscans inputs for red flags before execution.ClinicalSafetyInterceptorrewrites overreach language (e.g., "you are diagnosed with"), stamps urgency tiers, and forces clinical disclaimers automatically.
- 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)
- Enterprise Gateway Layer: API-key auth with scopes, per-tool sliding window rate limits, structured JSONL audit logs with input hashing, and health checks.
- Interactive Next.js Widgets: 6 custom UI widgets (including the flagship patient summary card) linked via
@Widgetdecorators.
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 thepatient-summarywidget).
🤝 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:
patient-summary(W5 ⭐ flagship): Aggregated patient EHR dashboard.triage-result(W1): Urgency tier badges and red-flag chips.drug-safety-report(W2): Severity-banded interaction grid and FDA evidence excerpts.trial-list(W4): Clinical trial cards with status chips.lab-result-card(W3): Quantitative reference-range card.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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。