# Index Constituents [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-index-constituents  
**GitHub Stars:** 0  
**npm Downloads (last month):** 559  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/index-constituents

## Description
Index constituents and holdings, point-in-time.

## Tools
Capabilities this server exposes over MCP:

- **index_constituents** — Current constituents of a major US or developed-markets equity index, ticker, name, GICS sector, and weight, sourced from the matching iShares index-tracking ETF's daily holdings file (the closest free, point-in-time proxy for official index membership and weights; S&P/Russell do not publish those for free). Answers "what's in the S&P 500 right now", "top holdings of the Russell 2000 by weight", "which sectors make up the S&P MidCap 400". Cash, collateral and futures positions the ETF holds are excluded here, use ishares_etf_holdings for those.
- **ishares_etf_holdings** — Full reported holdings of one of six iShares index-tracking ETFs (IVV, IJH, IJR, IWB, IWM, EFA) as of the fund's own "as of" date, every position including cash, collateral and futures, each labeled with its asset class so they are never silently mixed in with equities. Answers "what does IVV actually hold today", "how much cash does this ETF carry". For just the equity index membership, use index_constituents instead.
- **constituent_changes** — Dated additions and removals from the S&P 500, sourced from Wikipedia's maintained "Historical components of the S&P 500" table (every S&P-announced swap since 1963, each with its effective date, the ticker/company added, the ticker/company removed, and the stated reason). Answers "what changed in the S&P 500 in 2024", "when was X removed from the S&P 500 and what replaced it". Only sp500 is covered, the iShares-backed indexes above have no equivalent public, dated changes table.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "index-constituents": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-index-constituents"]
  }
}
```

## Documentation

## What Index Constituents does

Index Constituents exposes three finance-focused MCP tools for inspecting index membership and ETF portfolios:

- `index_constituents` returns current equity constituents for `sp500`, `sp400`, `sp600`, `russell1000`, `russell2000`, and `eafe`. Results include ticker, company name, GICS sector, portfolio weight, and the fund's holdings date. Results are ordered by weight, with pagination and optional sector filtering.
- `ishares_etf_holdings` returns every reported position in IVV, IJH, IJR, IWB, IWM, or EFA. Each row includes an asset-class label, allowing equities, cash, collateral, and futures to be distinguished.
- `constituent_changes` returns dated additions and removals for the S&P 500, including the companies or tickers involved and the stated reason for each change.

The service is useful for questions such as which companies currently make up an index, which sectors have the largest representation, what an iShares fund actually holds, and when an S&P 500 replacement occurred.

## How it works

The six index views are derived from live daily holdings files published by the corresponding iShares ETFs: IVV for the S&P 500, IJH for the S&P MidCap 400, IJR for the S&P SmallCap 600, IWB for the Russell 1000, IWM for the Russell 2000, and EFA for MSCI EAFE. These files provide a public, point-in-time proxy rather than the index providers' own constituent feeds. Returned weights are ETF portfolio weights and may differ slightly from official index weights because of sampling, cash, or corporate-action timing.

The constituent view removes cash, collateral, and futures positions. Use the ETF holdings tool when those positions matter. Every response includes the fund's own holdings date, which is more useful for freshness checks than the time of the request.

Historical S&P 500 changes come from Wikipedia's maintained historical-components table. That source covers S&P-announced swaps going back to 1963 and includes effective dates and stated reasons. The historical-change tool accepts a year or ISO date range, but only supports `sp500`.

## Setup and configuration

A hosted streamable MCP endpoint is available at:

```text
https://gateway.pipeworx.io/index-constituents/mcp
```

For example, an MCP client configuration can use:

```json
{
  "mcpServers": {
    "index-constituents": {
      "url": "https://gateway.pipeworx.io/index-constituents/mcp"
    }
  }
}
```

The npm package provides a local stdio bridge:

```json
{
  "mcpServers": {
    "index-constituents": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-index-constituents"]
    }
  }
}
```

The bridge needs network access and has no offline mode. Anonymous use is available with a daily call limit. Setting `PIPEWORX_API_KEY` uses an account key and raises the stated daily allowance. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list Pipeworx-wide discovery and routing tools. The hosted endpoint includes those shared gateway tools alongside the pack tools.

The tools can also be called over HTTP, including `POST /v1/tools/index_constituents` at `https://gateway.pipeworx.io`.

## Tools and capabilities

`index_constituents` supports `limit`, `offset`, and `sector`; its default page size is 50 and the documented maximum is 600. `ishares_etf_holdings` supports pagination and filtering by `asset_class`. `constituent_changes` supports `from`, `to`, and `limit`, with date filters expressed as a year or ISO date.

The service fetches upstream data live for requests, with edge caching for a day. It does not require an authentication key for basic hosted access, and the package is released under the MIT license.

## Limitations and notes

This is not a licensed S&P, Russell, or MSCI index feed. iShares portfolio data is the public proxy, and its weights should not be treated as exact official index weights. The S&P 500 holdings file can contain non-equity positions, which are excluded from constituent results and labeled in full ETF results.

Dated change history is limited to the S&P 500. The other five indexes do not have an equivalent public, dated changes table in this service. Data freshness should be evaluated using `data_as_of`, the fund's own holdings date.

_Full upstream README: https://allmcps.com/mcp/index-constituents/readme_

