MCP Hub
Back to servers

stock-scanner-mcp

Stock and crypto market data — 49 tools for quotes, technicals, options, SEC filings, and more.

Registrynpm512/wk
Updated
Mar 28, 2026

Quick Install

npx -y stock-scanner-mcp

stock-scanner-mcp

CI npm version npm downloads

A modular MCP (Model Context Protocol) server that gives Claude Code real-time access to stock and crypto market data. Scan markets, check technicals, monitor insider trades, track earnings and economic events — all from your terminal.

54 tools across 11 modules — 8 modules work with zero API keys. 16 trading skills — ready-made workflows like /morning-briefing, /earnings-play AAPL, /risk-check TSLA.

Wiki — Full tool reference, example prompts, advanced strategies, and troubleshooting guide.

Quick Start

npx stock-scanner-mcp

Or install globally:

npm install -g stock-scanner-mcp
stock-scanner-mcp

Setup with Claude Code

Add to your Claude Code MCP config (~/.claude.json or project .mcp.json):

{
  "mcpServers": {
    "stock-scanner": {
      "command": "npx",
      "args": ["-y", "stock-scanner-mcp"]
    }
  }
}

With API keys (optional, enables all 54 tools):

{
  "mcpServers": {
    "stock-scanner": {
      "command": "npx",
      "args": ["-y", "stock-scanner-mcp"],
      "env": {
        "FINNHUB_API_KEY": "your-key-here",
        "ALPHA_VANTAGE_API_KEY": "your-key-here",
        "FRED_API_KEY": "your-key-here"
      }
    }
  }
}

Modules

ModuleToolsAPI KeyDescription
tradingview10NoneUS stock scanner with quotes, technicals, sectors, indices, and screening
tradingview-crypto4NoneCrypto pair scanner with technicals and screening
sec-edgar6NoneSEC filings, insider trades, institutional holdings, ownership
coingecko3NoneCrypto market data, trending coins, global stats
options5NoneOptions chains, Greeks, unusual activity, max pain, implied move
options-cboe1NoneCBOE put/call ratio sentiment indicator
finnhub9FINNHUB_API_KEYQuotes, news, earnings, analyst ratings, short interest
alpha-vantage5ALPHA_VANTAGE_API_KEYQuotes, daily prices, fundamentals, earnings, dividends
fred4FRED_API_KEYEconomic calendar, indicators (CPI, GDP, rates), historical data
sentiment2NoneCNN Fear & Greed Index, Crypto Fear & Greed Index
frankfurter5NoneForex exchange rates — 31 currencies from ECB (daily reference rates)

Modules auto-enable when their required environment variables are set. Modules with no required key are always enabled.

Available Tools (49 total)

TradingView — Stock Scanning (no API key)

ToolDescription
tradingview_scanScan US stocks with custom filters (price, RSI, volume, etc.)
tradingview_compare_stocksSide-by-side comparison of 2-5 stocks
tradingview_quote15-min delayed quotes for stock tickers (includes pre/post-market)
tradingview_technicalsTechnical indicators (RSI, MACD, moving averages, pivots)
tradingview_top_gainersToday's top gaining stocks by % change
tradingview_top_losersToday's top losing stocks by % change
tradingview_top_volumeHighest volume stocks today
tradingview_market_indicesReal-time VIX, S&P 500, NASDAQ, Dow Jones
tradingview_sector_performanceS&P 500 sector ETF performance (weekly, monthly, YTD)
tradingview_volume_breakoutStocks with unusual volume (2x+ their 10-day average)

TradingView — Crypto (no API key)

ToolDescription
crypto_scanScan crypto pairs with custom filters across major exchanges
crypto_quoteReal-time crypto pair quotes (e.g. BTCUSDT, ETHUSDT)
crypto_technicalsTechnical analysis for crypto pairs (RSI, MACD, MAs, Bollinger)
crypto_top_gainersTop gaining crypto pairs by % change

SEC EDGAR — Filings & Ownership (no API key)

ToolDescription
edgar_searchFull-text search across all SEC filings
edgar_company_filingsRecent official filings (10-K, 10-Q, 8-K) for a company
edgar_company_factsFinancial metrics from XBRL data (Revenue, EPS, Net Income)
edgar_insider_tradesInsider buy/sell activity with parsed Form 4 transaction details
edgar_institutional_holdingsInstitutional holdings (13F) by ticker or manager name
edgar_ownership_filingsMajor ownership changes — 13D/13G activist investor filings

CoinGecko — Crypto Intelligence (no API key)

ToolDescription
coingecko_coinDetailed crypto info by CoinGecko slug (e.g. 'bitcoin', 'solana')
coingecko_trendingTop 7 trending cryptos by search volume (last 24h)
coingecko_globalGlobal crypto market cap, volume, BTC/ETH dominance

Options — Chains, Greeks & Unusual Activity (no API key)

ToolDescription
options_expirationsAvailable expiration dates for a stock's options
options_chainFull options chain with Greeks for a given expiration
options_unusual_activityUnusual options activity — high volume/OI contracts
options_max_painMax pain (strike where most options expire worthless)
options_implied_moveExpected move from ATM straddle pricing

Options CBOE — Put/Call Sentiment (no API key)

ToolDescription
options_put_call_ratioCBOE equity/index/total put/call ratio for market sentiment

Finnhub — News, Earnings & Macro (requires FINNHUB_API_KEY)

ToolDescription
finnhub_quoteReal-time stock quote
finnhub_company_profileCompany info (industry, market cap, IPO date, website)
finnhub_peersComparable companies in the same industry
finnhub_market_statusExchange open/closed status and current session
finnhub_market_newsLatest market news (general, forex, crypto, merger)
finnhub_company_newsCompany-specific news by ticker and date range
finnhub_earnings_calendarUpcoming and historical earnings reports
finnhub_analyst_ratingsAnalyst consensus and rating history
finnhub_short_interestShort interest, short ratio, and key financial metrics

Alpha Vantage — Fundamentals & History (requires ALPHA_VANTAGE_API_KEY)

ToolDescription
alphavantage_quoteReal-time stock quote (price, change, volume)
alphavantage_dailyDaily OHLCV price history (up to 100 days)
alphavantage_overviewCompany fundamentals (PE, market cap, sector, analyst target)
alphavantage_earnings_historyHistorical EPS actual vs estimate by quarter
alphavantage_dividend_historyHistorical dividend payments and dates

FRED — US Economic Data (requires FRED_API_KEY)

ToolDescription
fred_economic_calendarUpcoming high-impact economic releases (FOMC, CPI, NFP, GDP)
fred_indicatorLatest value for any indicator (CPI, fed funds, unemployment, etc.)
fred_indicator_historyHistorical values with unit transforms (YoY %, change, level)
fred_searchDiscover FRED series IDs by keyword

Sentiment — Fear & Greed Indexes (no API key)

ToolDescription
sentiment_fear_greedCNN Fear & Greed Index — composite score (0-100) with 7 sub-indicators and trend data
sentiment_crypto_fear_greedCrypto Fear & Greed Index — daily score (0-100) with historical values and classification

Configuration

Environment Variables

VariableRequiredDescription
FINNHUB_API_KEYNoEnables Finnhub module (get free key)
ALPHA_VANTAGE_API_KEYNoEnables Alpha Vantage module (get free key)
FRED_API_KEYNoEnables FRED module (get free key)

CLI Options

stock-scanner-mcp --modules tradingview,sec-edgar    # Enable specific modules only
stock-scanner-mcp --default-exchange NYSE             # Set default exchange
stock-scanner-mcp --help                              # Show all options

MCP Prompts

The server includes built-in analysis workflows:

PromptDescription
analyze_stockFull stock analysis — quote, technicals, news, and BTC correlation for crypto-related stocks
intraday_candidatesFind intraday trading candidates with customizable price range and filters

Example Usage in Claude Code

Once configured, just ask Claude naturally:

  • "What are the top gaining stocks today?"
  • "Show me technicals for AAPL on the hourly timeframe"
  • "Any insider trades for TSLA in the last 30 days?"
  • "What's trending in crypto right now?"
  • "Find stocks with unusual volume today"
  • "What earnings are coming up this week?"
  • "What's the current fed funds rate and CPI inflation trend?"
  • "Show me upcoming high-impact economic events"
  • "What's the short interest on GME?"
  • "Get Apple's dividend history"
  • "What's the options chain for AAPL expiring next Friday?"
  • "Any unusual options activity on TSLA?"
  • "What's the max pain for SPY this week?"
  • "Show me the put/call ratio trend for the last 30 days"
  • "What's the current Fear & Greed Index?"
  • "How is crypto sentiment right now?"

Trading Skills for Claude Code

16 ready-made trading workflows that chain multiple tools into professional analysis. Install them as Claude Code slash commands and run full analyses with a single command.

Install Skills

# Install all skills (recommended)
npx -p stock-scanner-mcp stock-scanner-install-skills

# Install to project scope only
npx -p stock-scanner-mcp stock-scanner-install-skills --scope project

# Install one category
npx -p stock-scanner-mcp stock-scanner-install-skills --category macro

# List available skills
npx -p stock-scanner-mcp stock-scanner-install-skills --list

Note: npx stock-scanner-mcp install-skills also works if the package is already cached. The -p stock-scanner-mcp flag tells npx which package to download, while stock-scanner-install-skills is the bin command within that package.

Manual alternative
git clone https://github.com/yyordanov-tradu/stock-scanner-mcp.git
cp -r stock-scanner-mcp/skills/*/ ~/.claude/skills/

Then in Claude Code, type /morning-briefing, /analyze-stock AAPL, /risk-check TSLA, etc.

Available Skills

CategorySkillsWhat They Do
Daily Routines/morning-briefing, /market-close-recap, /crypto-briefingPre-market scan, EOD recap, crypto overview
Analysis/analyze-stock TICKER, /compare TICKER1 TICKER2, /analyze-crypto COINDeep dives and side-by-side comparisons
Strategies/swing-setup, /earnings-play TICKER, /options-flow TICKER, /dividend-screenSwing trades, earnings options, smart money, income screen
Macro/macro-dashboard, /fed-watch, /sector-rotationEconomic indicators, Fed outlook, sector rotation
Risk/insider-tracker TICKER, /smart-money TICKER, /risk-check TICKERInsider trades, institutional flow, pre-trade risk scorecard

Each skill orchestrates 5-14 tools in parallel, cross-references the data, and outputs a structured verdict with direction, confidence, and key levels. Skills degrade gracefully when optional API keys are missing.

See skills/README.md for the full catalog, API key requirements, and customization guide.

Development

npm install
npm run build
npm test
npm run lint          # TypeScript type checking
node dist/index.js    # Run locally

Architecture

src/
├── index.ts              # MCP server entry + prompt definitions
├── config.ts             # CLI arg parsing
├── registry.ts           # Module auto-discovery and filtering
├── modules/
│   ├── tradingview/      # 10 tools — stock scanning, quotes, technicals, sectors, indices
│   ├── tradingview-crypto/ # 4 tools — crypto scanning and technicals
│   ├── sec-edgar/        # 6 tools — filings, insider trades, holdings
│   ├── coingecko/        # 3 tools — crypto market data
│   ├── options/          # 5 tools — options chains, Greeks, unusual activity, implied move
│   ├── options-cboe/     # 1 tool  — CBOE put/call ratio sentiment
│   ├── finnhub/          # 9 tools — quotes, news, earnings, analyst ratings, short interest
│   ├── alpha-vantage/    # 5 tools — quotes, fundamentals, dividends
│   ├── fred/             # 4 tools — economic calendar, indicators, historical data
│   ├── sentiment/        # 2 tools — Fear & Greed indexes (market + crypto)
│   └── frankfurter/      # 5 tools — forex exchange rates (ECB, 31 currencies)
├── sidecar/
│   ├── index.ts          # HTTP sidecar entry point (port 3100)
│   └── server.ts         # HTTP request handler (55 endpoints)
└── shared/
    ├── http.ts           # HTTP client with timeouts and key sanitization
    ├── cache.ts          # In-memory TTL cache
    ├── types.ts          # ToolDefinition, ToolResult, helpers
    ├── resolver.ts       # Ticker/exchange resolution
    └── utils.ts          # withMetadata error wrapper

HTTP Sidecar Mode

An optional HTTP server that exposes module client functions over REST. Designed for integrations that need market data without MCP (e.g., trading bots, LLM pipelines).

stock-scanner-sidecar              # Start on default port 3100
stock-scanner-sidecar --port 8080  # Custom port

Endpoints include /tradingview/scan, /finnhub/company-news, /sentiment/fear-greed, /options/chain, /fred/indicator, and more. Gated endpoints (Finnhub, FRED) require API keys via environment variables. CORS is restricted to localhost origins.

Rate Limits

APIFree Tier LimitCache TTL
TradingViewNo documented limit (be reasonable)
SEC EDGAR10 requests/second5 min
CoinGecko~30 calls/minute1 min
Yahoo FinanceNo documented limit (be reasonable)5 min
CBOE CDNNo documented limit30 min
Finnhub30 calls/second5 min
Alpha Vantage5 calls/minute, 25 calls/day1 min
FREDNo hard limit30 min

All modules use in-memory TTL caching to minimize API calls. Error responses include retry hints for rate-limited requests.

License

MIT

Reviews

No reviews yet

Sign in to write a review