
This pulls P/E ratios by sector and exchange through Octagon MCP, so you can see if a stock is trading at a premium or discount relative to its peers. You can query specific sectors like Technology on NASDAQ, compare across exchanges, or pull historical trends. The skill includes typical P/E ranges for major sectors (Tech runs 25-60, Financials 10-18) and shows you how to calculate valuation premiums. Honestly most useful when you're trying to contextualize a single company's valuation rather than doing broad market analysis. Works through natural language prompts to the octagon-agent tool, returns clean tabular data you can actually work with.
$ npx -y skills add octagonai/skills --skill sector-pe-ratios --agent claude-codeInstalls into .claude/skills of the current project.
Retrieve price-to-earnings ratios by sector and exchange 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 the latest sector P/E ratios for <DATE>, filtered by exchange <EXCHANGE> and sector <SECTOR>.
MCP Call Format:
{
"server": "octagon-mcp",
"toolName": "octagon-agent",
"arguments": {
"prompt": "Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology."
}
}
The agent returns sector P/E data:
| Metric | Value |
|---|---|
| Sector | Technology |
| Exchange | NASDAQ |
| P/E Ratio | 58.77 |
| Date | 2025-02-03 |
Data Sources: octagon-stock-data-agent
Sponsors