Skip to main content
Glama
mz462

stock-research-mcp

by mz462

Stock Research MCP Server

An MCP (Model Context Protocol) server that provides comprehensive stock research tools for Claude. Aggregates data from Alpha Vantage and Finnhub APIs.

Features

  • Real-time quotes and historical price data

  • Company profiles and fundamental analysis

  • Technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands)

  • Support/resistance level calculations

  • Analyst ratings and price targets

  • News sentiment analysis

  • Insider trading activity

  • Macro economic indicators

  • Deep research reports combining all data sources

  • Trading execution via Alpaca (paper and live trading)

Related MCP server: Alpha Vantage MCP Server

Installation

  1. Clone the repository:

cd stock-research-mcp
  1. Create a virtual environment and install the package:

uv venv .venv
source .venv/bin/activate
uv pip install -e ".[dev]"
  1. Configure API keys in .env:

ALPHA_VANTAGE_API_KEY=your_key_here
FINNHUB_API_KEY=your_key_here

# Alpaca Trading (optional)
ALPACA_API_KEY=your_key_here
ALPACA_SECRET_KEY=your_secret_here
ALPACA_PAPER=true  # Set to false for live trading

# Risk Controls (optional)
TRADING_MAX_ORDER_VALUE=5000
TRADING_MAX_POSITION_SIZE=10000
TRADING_ALLOWED_SYMBOLS=AAPL,MSFT,GOOGL  # Leave empty for all symbols

Get free API keys at:

Usage with Claude Code

Add to your Claude Code MCP configuration:

claude mcp add stock-research -- .venv/bin/python -m stock_research.server

Or use the installed script:

claude mcp add stock-research -- .venv/bin/stock-research-mcp

Or manually add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "stock-research": {
      "command": "/path/to/stock-research-mcp/.venv/bin/stock-research-mcp"
    }
  }
}

Available Tools

Market Data

  • get_quote(ticker) - Real-time quote

  • get_historical_prices(ticker, timeframe, interval) - Historical OHLCV data

Company Analysis

  • get_company_profile(ticker) - Company overview

  • get_financials(ticker) - Key financial metrics and ratios

  • get_earnings(ticker) - Earnings history and surprises

Technical Analysis

  • get_technical_indicators(ticker, indicators) - SMA, EMA, RSI, MACD, BBands

  • get_support_resistance(ticker, lookback_days) - Support/resistance levels

Sentiment & Activity

  • get_news_sentiment(ticker, limit) - News articles with sentiment

  • get_insider_trades(ticker) - Insider buying/selling

  • get_analyst_ratings(ticker) - Analyst consensus and price targets

Macro

  • get_macro_context() - Economic indicators (Fed rate, yields, GDP, CPI)

Research

  • generate_deep_research(ticker, research_type) - Comprehensive research report

Trading (Alpaca)

  • get_trading_account() - Account info, buying power, equity

  • get_positions() - All open positions

  • get_position(symbol) - Position for specific symbol

  • place_market_order(symbol, qty, side) - Market order

  • place_limit_order(symbol, qty, side, limit_price) - Limit order

  • place_stop_order(symbol, qty, side, stop_price) - Stop order

  • place_stop_limit_order(symbol, qty, side, stop_price, limit_price) - Stop-limit order

  • get_orders(status) - List orders (open/closed/all)

  • cancel_order(order_id) - Cancel specific order

  • cancel_all_orders() - Cancel all open orders

  • close_position(symbol) - Close position for symbol

  • close_all_positions() - Liquidate all positions

  • get_trading_config() - View current risk limits

Development

Run tests:

pytest

Example Usage

Once configured, ask Claude:

"Give me a deep research report on NVDA"
"What's the current price and technical setup for AAPL?"
"Show me analyst ratings for MSFT"
"What's the macro environment looking like?"

Trading Examples

"Show me my current positions"
"Buy 10 shares of AAPL at market"
"Place a limit order for 5 shares of MSFT at $400"
"Set a stop loss on my NVDA position at $120"
"What's my account buying power?"

⚠️ Warning: Trading involves real money. Start with paper trading (ALPACA_PAPER=true) to test your strategies. The server includes risk controls but you are responsible for your trades.

Rate Limits

  • Alpha Vantage Free Tier: 25 API calls/day

  • Finnhub Free Tier: 60 API calls/minute

The server uses aggressive caching to stay within free tier limits.

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables natural language trading operations through Alpaca's Trading API, supporting stocks, options, crypto, portfolio management, and real-time market data access through AI assistants like Claude.
    Last updated
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    Provides access to real-time and historical stock market data through the Alpha Vantage API, enabling financial analysis and market data queries through natural language.
    Last updated
    100
    74
    Apache 2.0
  • A
    license
    -
    quality
    D
    maintenance
    Enables trading and portfolio management through the Alpaca API, allowing users to place orders, manage positions and watchlists, access market data, and retrieve account information through natural language.
    Last updated
    31
    3
    ISC
  • F
    license
    -
    quality
    C
    maintenance
    Provides comprehensive stock intelligence and technical analysis by integrating Alpha Vantage and Finnhub data. It enables users to generate detailed research reports and retrieve real-time market metrics, indicators, and news sentiment.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Global stock research, ML forecasts, valuation signals, screeners & portfolio tracking in Claude

  • Alpha Vantage MCP — Stock market data, fundamentals, and earnings

  • The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mz462/stock-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server