Local Stock Analyst MCP
Provides comprehensive stock intelligence workflows by integrating data from multiple providers for market analysis, technical indicators, and fundamental data. It enables users to perform technical, fundamental, and risk analysis alongside options and news tracking through a unified tool registry.
README
Local Stock Analyst MCP (Python)
MCP server for stock intelligence workflows with:
- Domain-split tool registry (
market,stocks,technical,fundamental,options,risk,news,screener) - Multi-provider adapters with fallback routing
- In-memory TTL caching and per-provider rate-limit guards
stdioand Render-compatible HTTP transport modes
Provider Support
- Finnhub
- Alpha Vantage
- Yahoo Finance
- Financial Modeling Prep (FMP)
- FRED
- News API
- SEC EDGAR
Tool Catalog (Phase 1 MVP)
- Market
get_market_status,get_market_indices,get_vix,get_market_movers,get_sector_performance,get_market_breadth
- Stocks
get_stock_price,get_quote,get_company_profile,get_candles,get_stock_news,get_dividends,get_splits,get_earnings_calendar
- Technical
get_rsi,get_macd,get_sma,get_ema,get_support_resistance_levels,detect_chart_patterns
- Fundamental
get_key_financials,get_financial_statements,get_fundamental_ratings,get_price_targets,get_ownership_signals,get_sec_filings
- Options
get_options_chain,get_options_iv,get_options_greeks,get_unusual_options_activity,get_max_pain
- Risk
get_beta,get_sharpe_sortino,get_max_drawdown,get_var,get_correlation,get_rebalance_plan,get_markowitz_allocation,get_dividend_projection,get_tax_estimate
- News
get_company_news,get_market_news
- Screener
run_screener
Environment Variables
Required (at least one external provider recommended):
FINNHUB_API_KEYALPHAVANTAGE_API_KEYFMP_API_KEYFRED_API_KEYNEWS_API_KEY
Optional:
YAHOO_FINANCE_ENABLED=true|false(defaulttrue)SEC_USER_AGENT(defaultlocal-stock-analyst/1.0 (support@example.com))REQUEST_TIMEOUT_SECONDS(default15)CACHE_TTL_SECONDS(default60)PROVIDER_MIN_INTERVAL_SECONDS(default0.2)TRANSPORT_MODE=auto|stdio|httpHTTP_TRANSPORT=sse|streamableHOST/PORTMCP_PATH/HEALTH_PATH
Setup
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
Run
Stdio Mode
$env:TRANSPORT_MODE="stdio"
python -m mcp_server
HTTP Mode
$env:TRANSPORT_MODE="http"
$env:HOST="0.0.0.0"
$env:PORT="8000"
python -m mcp_server
Health endpoint defaults to /health.
Tests
python -m pytest -q
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.