Index Constituents logo

Index Constituents

Queries point-in-time index constituents, ETF holdings, and S&P 500 membership changes through MCP.

Install Index Constituents

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "index-constituents": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-index-constituents"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio index-constituents -- npx -y @pipeworx/mcp-index-constituents

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 3 tools correctly ().

Overview

Index Constituents MCP server provides current equity constituents for six major US and developed-markets indexes, using daily iShares ETF holdings as a public proxy. It also exposes complete holdings for six tracking ETFs and dated S&P 500 additions and removals. Reach for it when an agent needs index membership, portfolio weights, sector breakdowns, fund-level positions, or historical S&P 500 changes without an authenticated data feed. Connections can use the hosted Pipeworx endpoint or a local npm stdio bridge.

Use cases

  • Inspect current constituents and weights for a supported equity index
  • Compare sector representation across index constituents
  • Review all reported positions in an iShares tracking ETF
  • Find additions and removals from the S&P 500 by date
  • Separate ETF equities from cash, collateral, and futures

Key features

  • Point-in-time constituents for six major indexes
  • Full holdings for six iShares ETFs
  • GICS sectors and ETF portfolio weights
  • Dated S&P 500 membership changes since 1963
  • Pagination, sector, asset-class, and date filters
  • Hosted MCP and local npm stdio access

Tools3

What Index Constituents lets your agent do. Expand a tool for its parameters.

Verified live~873 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 52d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Tool definitions changed on 2026-12-02. Review them if you approved this server earlier.
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age49 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20h ago via OSV.dev · @pipeworx/mcp-index-constituents (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads559Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Index Constituents works

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:

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

The npm package provides a local stdio bridge:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Index Constituents

Index Constituents is an MCP server that connects AI clients to live iShares ETF holdings and Wikipedia's historical S&P 500 components table. Its main tools return index constituents, complete ETF positions, and dated S&P 500 additions or removals, with weights, sectors, asset classes, dates, and source-specific metadata.

Use the hosted MCP URL or run the npm stdio bridge with `npx -y @pipeworx/mcp-index-constituents`. Add the URL to an MCP client configuration, or configure the command and arguments for the local bridge. The bridge requires network access and supports anonymous calls.

Yes. Cursor is named as a supported MCP client in the setup instructions. Add `https://gateway.pipeworx.io/index-constituents/mcp` as the server URL, or configure the npm stdio bridge in Cursor's MCP settings.

No. The weights come from the matching iShares ETF's reported portfolio and serve as a public point-in-time proxy. They can differ from official index weights because of sampling, cash drag, corporate actions, and timing.

Call `ishares_etf_holdings` instead of `index_constituents`. The holdings tool returns every reported position for IVV, IJH, IJR, IWB, IWM, or EFA and labels each row by asset class, including cash, collateral, and futures.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewIndex Constituents AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/index-constituents?style=directory)](https://allmcps.com/mcp/index-constituents)
HTML Embed
<a href="https://allmcps.com/mcp/index-constituents"><img src="https://allmcps.com/api/badge/index-constituents?style=directory" alt="Index Constituents on AllMCPs" /></a>