stock-analyst-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stock-analyst-mcpCompare Infosys, TCS, and Wipro"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
stock-analyst-mcp
MCP server for global stock market analysis — fundamentals, technicals, DCF valuation, peer comparison, multi-asset support, and more. Works for 50+ regions worldwide.
What's New in v0.5.2
Screener Fix — screen_stocks works across regions
Fixed yfinance EquityQuery parameter:
_size→sizeinyf.screen()call, restoring screener results for India and other regions
Related MCP server: screener-mcp
What's New in v0.5.1
Performance Overhaul — 3-19x faster peer analysis
Parallel peer fundamentals: ThreadPoolExecutor on
get_info()calls (3.7x speedup)Batch history downloads: Single
yf.download()for all peers (19.3x speedup)Parallel snippet fetching: News analysis now fetches article snippets concurrently
New
stock_analyst/utils/module: Reusable concurrency helpers (parallel_map,parallel_map_dict,batch_download_history)Zero new dependencies: Uses stdlib
concurrent.futures
Example: Analyzing LOW (US) with 10 peers now takes ~2-3s instead of 8-10s.
Install
pip install stock-analyst-mcpOr run directly without installing:
uvx stock-analyst-mcpMCP Configuration
Add to your MCP client config (Claude Desktop, Devin, Cursor, etc.):
{
"mcpServers": {
"stock-analyst": {
"command": "uvx",
"args": ["stock-analyst-mcp"]
}
}
}Or if installed via pip:
{
"mcpServers": {
"stock-analyst": {
"command": "stock-analyst-mcp"
}
}
}Tools
Tool | Description |
| Full analysis: fundamentals + technicals + peers + DCF + forecast + news (any region) |
| Financial ratios: profitability, liquidity, leverage, efficiency, valuation |
| Technical signals: EMA trend, RSI, MACD, Bollinger Bands |
| Peer fundamental + technical metrics with rankings (region-scoped) |
| DCF: WACC, equity value/share, sensitivity range |
| Revenue forecast: base/bull/bear scenarios |
| News headlines with VADER sentiment + article snippets + analyst recommendations |
| Region-specific indices + volatility index + market assessment |
| Screen stocks by filters (sector, PE, ROE, market cap, etc.) in any region |
| List available screener filter keys and sort options |
| Search for tickers by name or symbol across regions (stocks, ETFs, indices, crypto, etc.) |
| Analyze any asset class: stocks, ETFs, indices, commodities, crypto, currencies |
| Side-by-side comparison of multiple stocks |
| Fetch cached raw financials for deep dives |
| View current configuration settings for all analysis tools |
| Update configuration settings dynamically |
Configuration Tools
get_config
Retrieve all current configuration settings. Useful for understanding what parameters are available before calling set_config.
from stock_analyst import get_config
config = get_config()
# Returns dict with sections:
# - data_provider, default_exchange, default_period, cache settings
# - technical_analysis: EMA periods, RSI period, MACD params, Bollinger settings
# - financial_analysis: DCF params, WACC settings, forecast scenarios
# - peer_comparison: max count, metrics to compare
# - output: format, pretty-print settingsset_config
Update configuration dynamically without restarting. Changes affect subsequent tool calls.
from stock_analyst import set_config
# Change technical analysis period from 1y to 1d
result = set_config("default_period", "1d")
# Returns: {"status": "success", "key": "default_period", "new_value": "1d", "affected_tools": ["all_tools"]}
# Change RSI period from 14 to 21
result = set_config("ta_rsi_period", "21")
# Returns: {"status": "success", "key": "ta_rsi_period", "new_value": 21, "affected_tools": ["get_technicals", "analyze_stock"]}
# Change DCF projection years from 5 to 10
result = set_config("fa_dcf_projection_years", "10")
# Returns: {"status": "success", "key": "fa_dcf_projection_years", "new_value": 10, "affected_tools": ["get_dcf_valuation", "get_revenue_forecast", "analyze_stock"]}Common Configuration Keys:
Key | Type | Default | Description | Affects |
| str |
| Historical period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, max | all_tools |
| int |
| RSI calculation period | get_technicals, analyze_stock |
| str |
| Comma-separated EMA periods | get_technicals, analyze_stock |
| str |
| MACD (fast, slow, signal) | get_technicals, analyze_stock |
| bool |
| Enable Bollinger Bands | get_technicals, analyze_stock |
| int |
| Bollinger Bands period | get_technicals, analyze_stock |
| bool |
| Run DCF valuation | analyze_stock, get_dcf_valuation |
| int |
| DCF projection years | get_dcf_valuation, get_revenue_forecast, analyze_stock |
| float |
| Terminal growth rate (2.5%) | get_dcf_valuation, analyze_stock |
| float |
| Exit multiple for DCF | get_dcf_valuation, analyze_stock |
| float |
| Risk-free rate (7% for India) | get_dcf_valuation, analyze_stock |
| float |
| Equity risk premium (6%) | get_dcf_valuation, analyze_stock |
| float |
| Cost of debt (9% for India) | get_dcf_valuation, analyze_stock |
| float |
| Tax rate (25% for India) | get_dcf_valuation, analyze_stock |
| int |
| Max peers to compare | get_peer_comparison, analyze_stock |
| int |
| Cache TTL in seconds | all_tools |
Example: Customize Technical Analysis
from stock_analyst import set_config, get_technicals
# Use 1-day data with custom RSI period
set_config("default_period", "1d")
set_config("ta_rsi_period", "21")
# Get technicals with new settings
signals = get_technicals("RELIANCE")Example: Customize DCF Valuation
from stock_analyst import set_config, get_dcf_valuation
# Use 10-year projection with different growth assumptions
set_config("fa_dcf_projection_years", "10")
set_config("fa_dcf_terminal_growth", "0.03") # 3% terminal growth
set_config("fa_wacc_risk_free_rate", "0.065") # 6.5% risk-free rate
# Get DCF with new assumptions
valuation = get_dcf_valuation("RELIANCE")CLI
Also works as a standalone CLI (no LLM needed):
# Full analysis
stock-analyst --symbol RELIANCE
# Specific analysis
stock-analyst --symbol TCS --analysis fundamentals
stock-analyst --symbol INFY --analysis technicals
stock-analyst --symbol RELIANCE --analysis dcf
# Compare multiple stocks
stock-analyst --symbols RELIANCE,TCS,INFY --compare
# Markdown output
stock-analyst --symbol RELIANCE --format markdown
# Raw data
stock-analyst --symbol RELIANCE --raw financials
# Market mood (no symbol needed)
stock-analyst --analysis market-mood
# Stock screener (India)
stock-analyst --screen --sector Technology --pe-max 30 --roe-min 0.15
stock-analyst --screen --market-cap-min 50000000000 --sort-by pe --limit 20
# Global stocks (any region)
stock-analyst --symbol AAPL --region us
stock-analyst --symbol 0700.HK --region hk
stock-analyst --screen --region gb --sector Technology --pe-max 25
# Market mood (global)
stock-analyst --analysis market-mood --region us
stock-analyst --analysis market-mood --region de
# Ticker search
stock-analyst --search "Apple" --search-type stock --region us
stock-analyst --search "Bitcoin" --search-type cryptocurrency
# Multi-asset analysis
stock-analyst --symbol SPY --analysis asset --asset-type etf
stock-analyst --symbol GC=F --analysis asset --asset-type commodity
stock-analyst --symbol BTC-USD --analysis asset --asset-type cryptoConfiguration
All settings configurable via environment variables with SA_ prefix. Defaults work out of the box for Indian markets (NSE). Supports 50+ regions globally.
Variable | Default | Description |
|
| Region code (us, gb, de, jp, in, etc.) |
|
| NSE ( |
|
| Historical data period |
|
|
|
|
| Redis connection URL |
|
| Cache TTL in seconds |
|
| Use screener.in as fallback for peers |
|
| Run DCF valuation |
|
| India 10Y govt bond yield |
|
| Max peers to compare |
|
|
|
|
| Port for streamable-http |
See configurations.env.example for the full list.
Python Library
from stock_analyst import (
analyze, get_fundamentals, get_technicals,
get_news, get_market_mood, screen_stocks,
search_tickers, analyze_asset,
)
# Indian stocks (default region)
result = analyze("RELIANCE")
ratios = get_fundamentals("TCS")
signals = get_technicals("INFY", period="6mo")
# Global stocks (any region)
us_stock = analyze("AAPL", region="us")
hk_stock = analyze("0700.HK", region="hk")
uk_stock = analyze("HSBA", region="gb")
# News with sentiment
news = get_news("TCS")
# Returns headlines with sentiment_score, sentiment_label, snippet
# Market mood (region-specific)
mood_in = get_market_mood(region="in") # Includes MMI from tickertape
mood_us = get_market_mood(region="us") # S&P 500 + VIX
mood_de = get_market_mood(region="de") # DAX + VDAX
# Stock screener (any region)
results_in = screen_stocks({"sector": "Technology", "pe_max": 30}, region="in")
results_us = screen_stocks({"sector": "Technology", "pe_max": 40}, region="us")
# Ticker search
apple_results = search_tickers("Apple", instrument_type="stock", region="us")
crypto_results = search_tickers("Bitcoin", instrument_type="cryptocurrency")
# Multi-asset analysis
etf = analyze_asset("SPY", asset_type="etf")
commodity = analyze_asset("GC=F", asset_type="commodity")
crypto = analyze_asset("BTC-USD", asset_type="crypto")
currency = analyze_asset("EURUSD=X", asset_type="currency")Testing
# Install dev dependencies
pip install -e ".[dev]"
# Run all tests
pytest
# Run with coverage
pytest --cov=stock_analyst --cov-report=term-missing
# Run specific test file
pytest tests/test_peers.py -vData Sources
yfinance — OHLCV, financials, balance sheet, cashflow, info, peer discovery via Industry API, stock screener via EquityQuery (50+ regions)
screener.in — peer discovery + stock screener fallback for India (best-effort, graceful degradation)
tickertape.in — Market Mood Index (MMI) scraping for India
VADER — headline sentiment analysis (vaderSentiment)
India-adjusted defaults — risk-free rate 7%, cost of debt 9%, tax 25%
Supported Regions
50+ regions via yfinance: US, UK, Germany, France, Italy, Spain, Netherlands, Belgium, Switzerland, Austria, Sweden, Norway, Denmark, Finland, Poland, Czech Republic, Romania, Portugal, Greece, Hungary, Ireland, Lithuania, Latvia, Estonia, Canada, Mexico, Brazil, Argentina, Chile, Peru, Colombia, Venezuela, Australia, New Zealand, Japan, South Korea, China, Hong Kong, Singapore, Malaysia, Thailand, Philippines, Indonesia, Vietnam, Pakistan, Sri Lanka, UAE, Saudi Arabia, Kuwait, Qatar, Israel, Egypt, Turkey, South Africa, and more.
Regions Quick Reference
Region | Code | Primary Index | VIX |
USA |
| S&P 500 (^GSPC) | ^VIX |
UK |
| FTSE 100 (^FTSE) | ^VIX |
Germany |
| DAX (^GDAXI) | ^VDAX |
France |
| CAC 40 (^FCHI) | ^VDAX |
Japan |
| Nikkei 225 (^N225) | ^VIX |
Hong Kong |
| Hang Seng (^HSI) | ^VIX |
India |
| Nifty 50 (^NSEI) | ^INDIAVIX |
Australia |
| ASX 200 (^AXJO) | ^VIX |
Canada |
| TSX (^GSPTSE) | ^VIX |
Brazil |
| Bovespa (^BVSP) | ^VIX |
License
MIT
This server cannot be installed
Maintenance
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
- Alicense-qualityCmaintenanceAn MCP server that provides comprehensive Indian stock market data from the NSE and BSE, including live quotes, historical trends, and fundamental analysis. Users can compare stock performance, track major indices, and access financial statements without the need for an API key.Last updated2MIT
- Alicense-qualityBmaintenanceMCP server that provides access to screener.in financial data for Indian stocks, enabling queries for company info, financials, ratios, quarterly results, shareholding, and stock screening.Last updatedMIT
- AlicenseBqualityBmaintenanceAn AI investment-analysis MCP server that analyzes companies (Indian NSE/BSE or global) by gathering public financial data and producing a comprehensive report including financials, ratios, DCF valuation, economic moat, risks, and a 0-100 investment rating.Last updated14MIT
- AlicenseAqualityCmaintenanceMCP server providing fundamental and technical data on Indian-listed companies from Screener.in and Yahoo Finance, including financial statements, ratios, and technical indicators.Last updated12MIT
Related MCP Connectors
The financial MCP for AI agents - 90+ financial tables, SEC filings, signals, alt-data.
Analyze any Nifty 500 stock with AI — price action, demand zones, technicals & screener.
7-factor stock scoring MCP server. US/HK/CN, 74 stocks. Free + Premium (USDC/Base). x402 ready.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/parth-mehta-989/stock-analyst-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server