
Pulls full end-of-day historical price data for market indices through Octagon MCP. You get open, high, low, close, volume, and VWAP for any date range you specify. Useful when you need to benchmark a stock's performance against the S&P 500, calculate alpha, or understand what the broader market was doing during a specific period. Covers major indices like ^GSPC, ^DJI, ^IXIC, plus sector and volatility indices. The documentation includes solid examples of return calculations and volume analysis, which is helpful since raw index data only becomes meaningful when you're comparing it against something. Works best alongside other stock analysis skills for context.
$ npx -y skills add octagonai/skills --skill stock-historical-index --agent claude-codeInstalls into .claude/skills of the current project.
Retrieve full historical end-of-day price data for market indices using the Octagon MCP server.
Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.
Determine your query parameters:
Use the octagon-agent tool with a natural language prompt:
Retrieve full historical end-of-day price data for the <INDEX> index from <START_DATE> to <END_DATE>.
MCP Call Format:
{
"server": "octagon-mcp",
"toolName": "octagon-agent",
"arguments": {
"prompt": "Retrieve full historical end-of-day price data for the ^GSPC index from 2025-01-01 to 2025-04-30."
}
}
The agent returns comprehensive daily index data:
Sponsors