# Carrier Risk & Pedigree Bayes Calculator AI Agent Connect

> Carrier Risk & Pedigree Bayes Calculator uses Bayesian inference to update carrier probabilities based on pedigree relationships, inheritance models, and genetic test performance. It handles the heavy lifting of Mendelian risk assessment, allowing your AI client to process complex family histories and test results with mathematical precision.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_9D0SwQzkWVdu6MA5Plg7lbVlcCh4HLNUjAaZIHK0/ai-agent-connect
- **Tags:** bayesian, mendelian, pedigree, carrier-risk, genetics

## Description

You can now run complex genetic risk assessments directly through your AI client. This MCP handles the mathematical heavy lifting of Bayesian inference, allowing you to update carrier probabilities as you add new pedigree data or test results. Instead of manually calculating likelihood ratios, you tell your agent the family relationships and the test performance, and it computes the posterior probabilities for you. It works by combining initial prior probabilities derived from genealogical connections with specific likelihood terms from genetic testing. This makes it a practical tool for modeling Mendelian inheritance patterns and calculating recurrence risks across a pedigree. You can move from raw family data to a clear summary of individual risks without manual math errors.

## Tools

### evaluate_test_likelihood
This tool computes the likelihood term for a single test result based on an individual's true genetic status.

### get_prior_probability_by_relationship
This tool establishes the initial prior probability for a specific person based on their genealogical connection.

### calculate_carrier_probability
This tool performs the core Bayesian calculation to determine the probability of an individual being a carrier.

### summarize_pedigree_risk
This tool generates a human-readable summary of the calculated risks for every member in the pedigree.

## Prompt Examples

**Prompt:** 
```
Calculate the carrier probability for a sibling of a known carrier in an autosomal recessive model.
```

**Response:** 
```
The calculated posterior probability for the sibling is 0.667.
```

**Prompt:** 
```
What is the risk if a person tests negative with 95% sensitivity and 99% specificity?
```

**Response:** 
```
The posterior probability of being a carrier after the negative test is 0.005.
```

**Prompt:** 
```
Summarize the risks for this pedigree: [pedigree data].
```

**Response:** 
```
The risk levels for the family members are: Individual A (Low), Individual B (High), Individual C (Unknown).
```

## Capabilities

### Bayesian Probability Updates
Your agent uses this to update carrier risks as new test results or family data come in.

### Pedigree Risk Summarization
The AI uses this to turn complex mathematical outputs into readable risk profiles for family members.

### Prior Probability Calculation
Your agent calls this to set the baseline risk for a person based on their family tree.

### Test Likelihood Evaluation
The AI uses this to factor in the sensitivity and specificity of genetic tests into the final risk.

### Mendelian Modeling
Your agent uses this to apply inheritance rules to the carrier probability calculations.

## Use Cases

### Recurrence Risk Assessment
Calculate the likelihood of a genetic condition appearing in subsequent generations.

### Test Result Interpretation
Determine the posterior probability of being a carrier after receiving a positive or negative test.

### Pedigree Analysis
Map out and summarize the risk levels for all individuals within a complex family tree.

### Prior Risk Estimation
Establish baseline carrier probabilities based solely on genealogical relationships.

## Benefits

- Automates Bayesian math for Mendelian inheritance.
- Updates risks dynamically as new pedigree information is added.
- Factors in test sensitivity and specificity automatically.
- Converts raw probability data into readable summaries.

## How It Works

You connect the MCP to your AI client and start providing genetic data.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide pedigree or relationship data to your agent.
3. The agent uses the toolset to calculate prior probabilities and likelihoods.
4. The agent performs the Bayesian update to find the final carrier probability.
5. The agent presents the results or a summary of the entire pedigree.

## Frequently Asked Questions

**How does this MCP calculate carrier risk?**
It uses Bayesian inference to combine prior probabilities from family relationships with likelihood terms from genetic tests.

**Which AI clients can use this MCP?**
You can use this with any MCP-compatible client including Claude, Cursor, Windsurf, and VS Code.

**Does it handle test sensitivity and specificity?**
Yes, the evaluate_test_likelihood tool specifically computes likelihood terms based on test performance.

**Can I get a summary of an entire family's risk?**
Yes, the summarize_pedigree_risk tool generates human-readable summaries for all members in a pedigree.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP so it is ready to use immediately upon connection.

**What inheritance models are supported?**
The calculator supports Autosomal Recessive, Autosomal Dominant, and X-Linked Recessive models.

**How does the tool handle test accuracy?**
It uses sensitivity and specificity values to calculate the likelihood ratio for each test result, updating the prior odds to posterior odds.

**Can I include consanguinity in my calculations?**
Yes, you can provide a consanguinity coefficient to adjust the prior probability for individuals with shared ancestry.
