# Advance-Decline Line Calculator MCP for AI Agents AI Agent Connect

> Advance-Decline Line Calculator MCP for calculating market breadth. It computes Net Advancers, the cumulative Advance-Decline Line, McClellan Oscillator, and Summation Index to help you spot market trends and divergences through your AI client.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_GWJlLYzYAANFx1Sa3D0VQlogs3nzGejPzxqtnaXN/ai-agent-connect
- **Tags:** breadth, mcclellan, trading, stock-market, technical-analysis

## Description

Calculating market breadth shouldn't feel like a math homework assignment. Instead of manually pulling daily advancing and declining counts to build your own spreadsheets, you can now let your AI agent handle the heavy lifting. This MCP gives your agent the ability to look at the internal health of the stock market by analyzing how many stocks are actually participating in a move. 

You can ask your agent to check if a price rally is actually supported by broad market participation or if it's just a few heavyweights carrying the index. By pulling cumulative data and momentum oscillators, your agent can identify when the trend is losing steam or when a divergence suggests a reversal is coming. It's like giving your AI a direct line to the pulse of market breadth. Since Vinkius hosts this tool, you just connect it to your preferred environment and start asking questions about market internals immediately.

## Tools

### get_daily_breadth_metrics
Calculates Net Advancers and the cumulative Advance-Decline Line. This helps you see the immediate daily market participation.

### get_oscillator_metrics
Computes the AD Line Oscillator and McClellan Oscillator. Use this to find momentum shifts in market breadth.

### get_summation_and_divergence
Tracks the Summation Index and detects price-breadth divergences. It's essential for spotting trend reversals.

## Prompt Examples

**Prompt:** 
```
The S&P 500 is up 2% today. Is the market breadth actually supporting this move?
```

**Response:** 
```
Based on the current data, the breadth is showing significant participation:

| Metric | Value |
| :--- | :--- |
| **Net Advancers** | +142 |
| **ADL Status** | Trending Up |

The rally is well-supported by a broad group of stocks, not just a few large caps.
```

**Prompt:** 
```
What's the current momentum according to the McClellan Oscillator?
```

**Response:** 
```
The momentum indicators are as follows:

* **McClellan Oscillator:** +4.2
* **AD Line Oscillator:** +2.1

The positive values suggest that market breadth momentum is currently bullish.
```

**Prompt:** 
```
Check if there is any divergence between the price and the Advance-Decline Line.
```

**Response:** 
```
I've analyzed the recent price action against the breadth trends:

**Result:** ⚠️ **Bearish Divergence Detected**

While the price index has reached a new local high, the **Advance-Decline Line** has failed to make a new high. This suggests the current upward move is losing internal strength.
```

## Capabilities

### Calculate daily market breadth
Get the exact number of net advancers and the updated cumulative Advance-Decline Line for any given day.

### Derive momentum oscillators
Compute the McClellan Oscillator and the AD Line Oscillator using historical daily data.

### Identify trend divergences
Detect when price action and market breadth are moving in opposite directions to spot potential reversals.

### Track long-term trends
Monitor the Summation Index to understand the broader market direction over extended periods.

## Use Cases

### Confirming a breakout
A trader sees the S&P 500 hitting a new high and asks their agent to check if the ADL is also making new highs to confirm the strength.

### Spotting a trend reversal
An analyst notices price is rising while breadth is falling and asks their agent to confirm a bearish divergence.

### Measuring market momentum
A quant asks their agent for the current McClellan Oscillator value to see if the market is overbought or oversold.

### Long-term trend assessment
A manager asks their agent to check the Summation Index to determine if the current bull market is structurally sound.

## Benefits

- Stop manually calculating Net Advancers and the ADL every morning.
- Spot bearish divergences faster by letting your agent compare price and breadth.
- Get instant momentum readings using the McClellan Oscillator without custom scripts.
- Monitor long-term market health through the Summation Index automatically.
- Verify trend strength by checking if price moves are backed by broad participation.

## How It Works

The bottom line is you stop calculating breadth manually and start interpreting it through conversation.

1. Connect the MCP to your AI client via Vinkius.
2. Ask your agent to perform a specific breadth calculation or check for a divergence.
3. Receive formatted market data and trend analysis directly in your chat interface.

## Frequently Asked Questions

**How can I use the Advance-Decline Line Calculator MCP to find market trends?**
You can ask your AI agent to calculate the cumulative Advance-Decline Line or the Summation Index to see if the broader market is trending in the same direction as price.

**Can this Advance-Decline Line Calculator MCP help me spot market tops?**
Yes. By checking for divergences between price and breadth, your agent can identify when a rally is losing steam, which often happens before a price reversal.

**Does the Advance-Decline Line Calculator MCP work with my existing AI tools?**
Yes, as long as you are using an MCP-compatible client like Claude, Cursor, or Windsurf, you can connect this tool and start using it immediately.

**What is the difference between the oscillators provided by this MCP?**
This MCP provides both the McClellan Oscillator and the AD Line Oscillator, allowing you to measure different aspects of market momentum and breadth strength.

**Can I use the Advance-Decline Line Calculator MCP for long-term analysis?**
Absolutely. The Summation Index tool is specifically designed to help you track long-term market trends and structural health.