mcpField
B
batch-market-cap

batch-market-cap

github.com/octagonaiData & databases130260 installsUpdated 21w ago
Repository

About batch-market-cap

This skill uses Octagon MCP to retrieve market capitalization for multiple companies in one query, returning a structured table for investors, analysts, and portfolio managers comparing company sizes.

Key features

  1. 01Query market caps for multiple companies
  2. 02Submit natural-language requests by ticker
  3. 03Return company, ticker, market cap, and source
  4. 04Compare sectors, portfolios, or index constituents

Use cases

  1. 01Compare market caps of industry peers
  2. 02Review size distribution across a portfolio
  3. 03Screen companies by market-cap range

MCP support

Requires Octagon MCP configured in an AI agent and uses the octagon-agent tool to query company market caps.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/octagonai/skills --skill batch-market-cap

After installing, type/batch-market-capin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

marketplace.json
README.md
references/
interpreting-results.md
mcp-setup.md

Details

From the project README

Batch Market Cap

Retrieve market capitalization data for multiple companies in a single query using the Octagon MCP server.

Prerequisites

Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.

Workflow

1. Prepare Company List

Compile the list of ticker symbols you want to analyze (e.g., AAPL, MSFT, GOOGL).

2. Execute Query via Octagon MCP

Use the octagon-agent tool with a natural language prompt:

Retrieve market capitalization data for the following companies: <TICKER1>, <TICKER2>, <TICKER3>.

MCP Call Format:

{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve market capitalization data for the following companies: AAPL, MSFT, GOOG."
  }
}
3. Expected Output

The agent returns a structured table with market cap data:

CompanyTickerMarket Cap (USD)Source
AppleAAPL$2.99986 trillionOctagon Companies Agent
MicrosoftMSFT$3.143 trillionCompanies Market Cap
AlphabetGOOGL$2.00018 trillionOctagon Companies Agent

Data Sources: octagon-companies-agent, octagon-financials-agent, octagon-web-search-agent

4. Interpret Results

See references/interpreting-results.md for guidance on:

  • Comparing market caps across companies
  • Understanding size categories
  • Analyzing relative valuations
  • Tracking market cap changes

Example Queries

Basic Batch Query:

Retrieve market capitalization data for the following companies: AAPL, MSFT, GOOG.

Sector Comparison:

Get market caps for tech giants: AAPL, MSFT, GOOGL, AMZN, META, NVDA.

Portfolio Analysis:

What are the market capitalizations of TSLA, F, GM, and RIVN?

Industry Comparison:

Compare market caps of major banks: JPM, BAC, WFC, C, GS.

Index Components:

Get market caps for the top 10 S&P 500 companies by weight.

International Comparison:

Compare market caps of AAPL, SMSN.IL (Samsung), TSM, and ASML.

Market Cap Categories

Size Classifications
CategoryMarket Cap Range
Mega-cap>$200 billion
Large-cap$10B - $200B
Mid-cap$2B - $10B
Small-cap$300M - $2B
Micro-cap$50M - $300M
Nano-cap<$50M
Category Characteristics
CategoryTypical Traits
Mega-capMarket leaders, global reach, stable
Large-capEstablished, diversified, moderate growth
Mid-capGrowth potential, less coverage
Small-capHigher growth, higher volatility
Micro-capSpeculative, limited liquidity

Comparative Analysis Framework

Peer Comparison
AnalysisPurpose
Absolute SizeRank by market cap
Relative SizeRatio to peers
Size DistributionConcentration analysis
Historical RankPosition changes
Industry Context
ComparisonWhat It Shows
vs. Industry LeaderDistance from top
vs. Industry MedianAbove/below average
vs. Sector TotalMarket share proxy
Valuation Implications
ScenarioInterpretation
Higher market cap, lower revenuePremium valuation
Lower market cap, higher revenueDiscount valuation
Similar market cap, different earningsP/E differential

Use Cases

Portfolio Allocation
UseDescription
Concentration AnalysisLargest holdings by cap
Diversification CheckSize mix across holdings
RebalancingAdjust for cap changes
Competitive Analysis
UseDescription
Market LeadershipLargest in industry
Relative PositioningSize vs. competitors
Growth ComparisonCap changes over time
Screening
UseDescription
Size FilterInclude/exclude by cap
Category SelectionTarget specific sizes
Index EligibilityMeets cap requirements

Market Cap Calculations

Basic Formula
Market Cap = Share Price × Shares Outstanding
Factors Affecting Market Cap
FactorImpact
Price ChangeDirect proportional effect
Share BuybacksReduces shares, concentrates value
New IssuanceDilutes if price doesn't rise
Stock SplitsNo effect (price adjusts)
Fully Diluted Market Cap
ComponentDescription
Basic SharesCurrently outstanding
OptionsEmployee stock options
WarrantsConvertible instruments
ConvertiblesConvertible debt/preferred

Data Considerations

Source Variations
FactorConsideration
TimingReal-time vs. delayed data
CurrencyUSD conversion rates
Share CountBasic vs. diluted
UpdatesFrequency of refresh
Handling Discrepancies
IssueApproach
Different sourcesNote the variance
Different datesUse consistent timing
Currency mixConvert to single currency
Missing dataFlag unavailable items

Analysis Tips

  1. Use consistent data: Same source/date for fair comparison.

  2. Consider context: Industry norms for market cap.

  3. Track changes: Market cap shifts over time.

  4. Combine with fundamentals: P/E, P/S for valuation context.

  5. Watch for outliers: Investigate unusual sizes.

  6. Global perspective: Different markets, different scales.

Integration with Other Skills

SkillCombined Use
stock-quoteMarket cap + current price
income-statementMarket cap vs. revenue/earnings
financial-metrics-analysisValuation multiples
analyst-estimatesMarket cap vs. price targets

Comments

Markdown supported