# Infection Attack Rate Calculator MCP. AI Agent Connect

> Infection Attack Rate Calculator MCP handles the heavy lifting for outbreak math. Your AI client uses these tools to compute attack rates for specific exposure groups, verify if cases fall within defined outbreak windows, and audit data for completeness. It's built to turn raw cohort data into reliable epidemiological reports without manual calculation errors.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_2O6EKWRRIgY1DSpK4HFuA0ApOqhwx3IXVfruoprM/ai-agent-connect
- **Tags:** outbreak, attack-rate, epidemiology, public-health, statistics

## Description

You can use this MCP to automate the math behind outbreak investigations. Instead of manually calculating rates or checking timestamps, you let your AI agent handle the arithmetic. It can process multiple cohorts at once to find total populations and case counts, or it can check if specific case reports actually fit within your established outbreak window. If your data is messy, the MCP identifies missing points so you don't report on incomplete sets. It's a specialized toolkit for public health professionals who need to move from raw data to statistical summaries quickly and accurately.

## Tools

### aggregate_group_metrics
This tool sums up the total population and total case counts across all the groups you provide.

### audit_data_completeness
This tool scans your records to find any groups or specific data points that are missing critical information.

### calculate_attack_rates
This tool performs the primary epidemiologic calculations for your exposure groups.

### verify_outbreak_window
This tool checks if your case and population counts match up with your specific temporal constraints.

## Prompt Examples

**Prompt:** 
```
Calculate the attack rate for a group with 50 cases out of 1000 people exposed using the totalExposed rule.
```

**Response:** 
```
The attack rate for this group is 5.0%.
```

**Prompt:** 
```
Check if a case occurring on 2023-05-15 is within an outbreak from 2023-05-01 to 2023-05-31.
```

**Response:** 
```
Yes, the case is within the specified outbreak window.
```

**Prompt:** 
```
What is the total number of cases across two groups: Group A (10 cases, 100 people) and Group B (20 cases, 200 people)?
```

**Response:** 
```
The total number of cases is 30, with a total population of 300.
```

## Capabilities

### Attack Rate Computation
Your agent calculates primary epidemiologic metrics for any provided exposure group.

### Temporal Validation
The AI checks if case counts align with the specific timeframes of an outbreak.

### Cohort Aggregation
Your agent summarizes population and case totals across multiple different groups.

### Data Integrity Audits
The tool flags missing data points to prevent errors in your reporting.

## Use Cases

### Outbreak Investigation
Use the tool to quickly determine the attack rate for different exposure groups during a foodborne illness event.

### Data Cleaning
Run an audit to find which records in your dataset are missing the information needed for analysis.

### Temporal Verification
Confirm that incoming case reports fall within the specific dates of a known outbreak.

### Cohort Summarization
Combine data from several different groups to get a total count of cases and the total population.

## Benefits

- Reduces manual arithmetic errors during outbreak analysis.
- Identifies missing data points before you finalize reports.
- Speeds up the process of aggregating metrics across different cohorts.
- Validates temporal data against specific outbreak windows.

## How It Works

You connect the MCP to your preferred AI client and start feeding it data.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your outbreak or cohort data to your AI agent.
3. Ask the agent to run specific calculations or audits.
4. The agent uses the MCP tools to process the math and validation.
5. Receive the calculated rates or data audits directly in your chat interface.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates epidemiologic attack rates and aggregates population and case metrics across multiple groups.

**Can it help with data quality?**
Yes, it includes a tool to audit data completeness by identifying missing critical data points in your records.

**How does it handle outbreak timing?**
It uses a verification tool to check if case counts and population counts align with your defined outbreak window.

**Which AI clients can I use with this MCP?**
You can use it with any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use immediately after you connect.

**How do I calculate attack rates for different age groups?**
Use the `calculate_attack_rates` tool by providing an array of exposure groups, where each group contains the group name, case count, and population at risk.

**Can I check if my data fits within a specific timeframe?**
Yes, the `verify_outbreak_window` tool validates whether case dates and exposure events align with your specified outbreak start and end dates.

**How can I get a summary of the entire outbreak?**
You can use the `aggregate_group_metrics` tool to sum all cases and populations across all provided groups for a global view.
