# PHQ-9 Score Calculator AI Agent Connect

> PHQ-9 Score Calculator MCP automates the calculation of Patient Health Questionnaire-9 scores. Your AI client uses this to process item-level responses, handle missing data protocols, and map scores to specific clinical severity categories. It handles the math and the logic so you can focus on the clinical interpretation.

## Overview
- **Category:** healthcare
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_8i5qGhPNOuAkkdAEnv70yjeMHE2lnq3yozlG1wdd/ai-agent-connect
- **Tags:** phq-9, depression-screening, clinical-scoring, mental-health, assessment

## Description

You can use this MCP to turn raw patient survey data into actionable clinical insights. Instead of manually tallying scores or looking up threshold tables, you hand the raw response sets to your AI client. The MCP handles the heavy lifting of calculating total scores and assigning severity levels based on standard clinical versions. It also manages the technical side of scoring, such as validating that the response sets are complete and checking for clinical validity. If you need to see how a patient's answers are distributed across the scale, the MCP provides a breakdown of response frequencies. This makes it a reliable way to process depression screening data within your existing workflows in Claude, Cursor, or Windsurf.

## Tools

### calculate_phq9_score
This tool calculates the total PHQ-9 score and identifies the corresponding severity category.

### get_severity_thresholds
Use this to pull the specific scoring ranges for different clinical versions.

### summarize_item_distribution
This tool provides a count of how many times each response level from 0 to 3 was selected.

### validate_responses
This tool checks if a set of patient responses meets the necessary technical and clinical requirements.

## Prompt Examples

**Prompt:** 
```
Calculate the PHQ-9 score for these responses: [1, 0, 2, 1, 0, 0, 1, 2, 0] using the Standard version.
```

**Response:** 
```
The total PHQ-9 score is 7, which falls into the Mild severity category.
```

**Prompt:** 
```
Check if these responses are valid with a minimum of 8 items: [0, 1, 0, 0, 1, 0, 0, 0]
```

**Response:** 
```
The responses are invalid because only 8 items were provided and the minimum requirement was not met.
```

**Prompt:** 
```
What is the distribution of these PHQ-9 responses: [3, 2, 3, 1, 0, 2, 3, 1, 2]?
```

**Response:** 
```
The distribution is: 1 response of 0, 1 response of 1, 3 responses of 2, and 4 responses of 3.
```

## Capabilities

### Automated Scoring
Your agent calculates total scores and severity levels from raw input.

### Data Validation
The MCP checks if response sets meet clinical and technical standards.

### Response Distribution
Your AI client can analyze how frequently specific response levels are chosen.

### Threshold Retrieval
The tool pulls predefined scoring ranges for different clinical versions.

## Use Cases

### Patient Triage
Input screening results to quickly identify patients in higher severity categories.

### Research Data Analysis
Analyze the frequency of specific response levels across a study population.

### Clinical Documentation
Generate accurate score summaries for patient records using your AI client.

### Data Quality Control
Verify that submitted PHQ-9 forms contain all necessary data points.

## Benefits

- Eliminates manual tallying of PHQ-9 items.
- Ensures scoring consistency using predefined clinical thresholds.
- Reduces errors by validating response sets before calculation.
- Provides immediate severity categorization for faster triage.

## How It Works

Connect the MCP to your AI client and start processing data immediately.

1. Connect your preferred client like Claude or Cursor to Vinkius.
2. Provide the raw PHQ-9 response data to your AI agent.
3. The agent calls the necessary tools to calculate or validate the data.
4. The MCP returns the scores, categories, or distributions to the agent.
5. Your agent presents the final clinical summary to you.

## Frequently Asked Questions

**How do I use this PHQ-9 MCP?**
You connect it to an MCP-compatible client like Claude or Cursor through Vinkius. Once connected, you simply give your AI agent the patient responses, and it uses the tools to calculate scores.

**Does this MCP handle different scoring versions?**
Yes. You can use the get_severity_thresholds tool to retrieve the specific scoring ranges for different clinical versions.

**Can the AI check if a survey is complete?**
Yes. The validate_responses tool checks if the provided responses meet the technical and clinical requirements for a valid score.

**What kind of output do I get for scores?**
The calculate_phq9_score tool provides both the total numerical score and the associated clinical severity category.

**Do I need to host this myself?**
No. Vinkius hosts and manages the MCP for you. You just connect your client and start working.

**How do I calculate a score?**
You can use the `calculate_phq9_score` tool by providing the item responses, the scoring version, and the missing item rule.

**Does this tool provide a medical diagnosis?**
No. This tool is a mathematical calculator that provides scores and categories based on provided rules. It does not provide medical diagnoses or treatment recommendations.

**Can I use custom severity thresholds?**
Yes, you can provide a custom `severityMapping` to the `calculate_phq9_score` tool to define your own category boundaries.
