Skip to main content
Glama
afthabvp

Indian Market MCP

by afthabvp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost to bind for HTTP server. Default: 0.0.0.0.0.0.0.0
MCP_PORTNoPort to bind for HTTP server. Default: 8000.8000
KITE_API_KEYNoZerodha Kite Connect API key for broker mode.
ANGEL_API_KEYNoAngel One API key for broker mode.
MCP_TRANSPORTNoTransport protocol (stdio or http). Default: stdio.stdio
ANGEL_PASSWORDNoAngel One password for broker mode.
ANGEL_CLIENT_IDNoAngel One client ID for broker mode.
ANGEL_TOTP_SECRETNoAngel One TOTP secret for broker mode.
KITE_ACCESS_TOKENNoZerodha Kite Connect access token for broker mode.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_stock_quoteA

Get live stock quote from NSE — price, volume, day high/low, 52-week range, market cap. Example: get_stock_quote("RELIANCE")

search_stocksB

Search stocks by name or symbol on NSE. Example: search_stocks("reliance") or search_stocks("INFY")

get_stock_historyB

Get historical OHLC data for a stock. Dates in DD-MM-YYYY format. Example: get_stock_history("TCS", "01-01-2025", "01-06-2025")

get_top_gainersA

Get today's top gaining stocks on NSE.

get_top_losersA

Get today's top losing stocks on NSE.

get_52week_highB

Get stocks at their 52-week high.

get_52week_lowA

Get stocks at their 52-week low.

get_most_active_stocksA

Get most active stocks by volume or value. Example: get_most_active_stocks("volume") or get_most_active_stocks("value")

get_corporate_actionsB

Get corporate actions (dividends, splits, bonus) for a stock. Example: get_corporate_actions("TCS")

get_option_chainA

Get full option chain for an index or stock — strike prices, premiums, OI, change in OI, IV. For indices: NIFTY, BANKNIFTY, FINNIFTY. For stocks: any NSE symbol. Example: get_option_chain("NIFTY") or get_option_chain("RELIANCE", is_index=False)

get_pcrB

Get Put-Call Ratio for an index. Example: get_pcr("NIFTY")

get_max_painA

Calculate max pain strike price for an index option. Max pain is the strike price where option writers (sellers) face minimum losses. Example: get_max_pain("NIFTY")

get_futures_dataB

Get futures data — lot size, expiry, OI, price for a stock or index. Example: get_futures_data("NIFTY") or get_futures_data("RELIANCE")

get_oi_dataC

Get Open Interest data for all expiries of a derivative. Example: get_oi_data("NIFTY")

get_indexA

Get live data for an NSE index — value, change, advances/declines. Common indices: NIFTY 50, NIFTY BANK, NIFTY NEXT 50, NIFTY IT, NIFTY FINANCIAL SERVICES. Example: get_index("NIFTY 50")

get_index_constituentsB

Get all stocks in an index with their live prices. Example: get_index_constituents("NIFTY 50")

get_all_indicesA

Get all NSE indices with current values — Nifty 50, Bank Nifty, sectoral indices etc.

get_index_historyB

Get historical data for an NSE index. Dates in DD-MM-YYYY format. Example: get_index_history("NIFTY 50", "01-01-2025", "01-06-2025")

get_sector_performanceB

Get performance of all sectoral indices — IT, Bank, Pharma, Auto, FMCG etc.

search_mutual_fundsB

Search mutual funds by name, AMC, or category. Example: search_mutual_funds("SBI Bluechip") or search_mutual_funds("axis flexi cap")

get_mf_navB

Get latest NAV for a mutual fund by scheme code. Example: get_mf_nav("119598")

get_mf_historyA

Get historical NAV data for a mutual fund. Dates in YYYY-MM-DD format. Returns full history if no dates specified. Example: get_mf_history("119598", "2025-01-01", "2025-06-01")

get_mf_categoriesA

Get all mutual fund categories — Equity, Debt, Hybrid, Solution Oriented etc.

compare_mutual_fundsC

Compare multiple mutual funds side by side. Pass a list of scheme codes. Example: compare_mutual_funds(["119598", "120503"])

get_top_funds_by_categoryC

Get top mutual funds in a category. Example: get_top_funds_by_category("Equity Scheme")

get_all_etfsA

Get all ETFs listed on NSE with their prices and NAV — Gold ETFs, Debt ETFs, Equity ETFs etc.

get_etf_quoteA

Get detailed quote for a specific ETF. Example: get_etf_quote("GOLDBEES") or get_etf_quote("NIFTYBEES")

get_etf_historyC

Get historical data for an ETF. Dates in DD-MM-YYYY format. Example: get_etf_history("GOLDBEES", "01-01-2025", "01-06-2025")

get_commodity_priceA

Get live price for a commodity — GOLD, SILVER, CRUDE_OIL, NATURAL_GAS, COPPER, ALUMINIUM, ZINC, LEAD, NICKEL, COTTON. Example: get_commodity_price("GOLD")

get_all_commodity_pricesA

Get live prices for all supported commodities.

get_commodity_historyB

Get historical price data for a commodity. Periods: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, max. Example: get_commodity_history("GOLD", "6mo")

get_currency_rateA

Get live exchange rate — USDINR, EURINR, GBPINR, JPYINR. Example: get_currency_rate("USDINR")

get_all_currency_ratesA

Get live rates for all supported INR currency pairs.

get_currency_historyA

Get historical exchange rate data. Periods: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, max. Example: get_currency_history("USDINR", "6mo")

get_upcoming_iposA

Get all upcoming and ongoing IPOs on NSE with dates, price band, and issue size.

get_past_iposA

Get recently listed IPOs with listing price and performance.

get_sovereign_gold_bondsA

Get all Sovereign Gold Bonds (SGBs) listed on NSE with prices and maturity dates.

get_sgb_quoteA

Get detailed quote for a specific Sovereign Gold Bond. Example: get_sgb_quote("SGBJAN30IX")

get_sgb_historyC

Get historical price data for a Sovereign Gold Bond. Example: get_sgb_history("SGBJAN30IX", "01-01-2025", "01-06-2025")

get_market_statusA

Get current market status — open, closed, or pre-market for all segments (equity, derivatives, currency).

get_fii_dii_dataA

Get Foreign Institutional Investor (FII) and Domestic Institutional Investor (DII) buy/sell data for today.

get_advances_declinesA

Get market breadth — number of advancing, declining, and unchanged stocks.

get_technical_indicatorsA

Get key technical indicators for an NSE stock — SMA, EMA, RSI, MACD, Bollinger Bands, VWAP. Periods: 1mo, 3mo, 6mo, 1y, 2y. Example: get_technical_indicators("RELIANCE", "6mo")

get_support_resistanceC

Get support and resistance levels for a stock based on pivot points. Example: get_support_resistance("RELIANCE")

screen_stocksA

Screen stocks with multiple filters. Works on any NSE index. Filters:

  • min_price/max_price: price range

  • min_change_percent/max_change_percent: % change range

  • min_volume: minimum traded volume

  • sector: filter by sector keyword (e.g. "IT", "Bank", "Pharma")

  • near_52w_high: stocks within 5% of 52-week high

  • near_52w_low: stocks within 5% of 52-week low

  • sort_by: change_percent, price, volume (default: change_percent)

  • sort_order: asc or desc Example: screen_stocks(min_price=100, max_price=500, min_change_percent=2, sort_by="change_percent")

screen_by_fundamentalsB

Screen stocks by fundamental metrics using Yahoo Finance data. Filters: PE ratio, PB ratio, market cap (in Cr), dividend yield (%), ROE (%). Example: screen_by_fundamentals(min_pe=5, max_pe=20, min_roe=15, limit=10) Note: This is slower as it fetches data per stock. Works best with sector filter.

run_preset_screenA

Run a pre-built screener strategy. Presets:

  • "top_gainers" — stocks up > 3% today

  • "top_losers" — stocks down > 3% today

  • "high_volume" — unusual volume (top 20)

  • "near_52w_high" — within 5% of 52-week high

  • "near_52w_low" — within 5% of 52-week low

  • "penny_stocks" — price < 50, sorted by change

  • "large_cap_value" — large caps with PE < 20

  • "high_dividend" — dividend yield > 2% Example: run_preset_screen("top_gainers")

get_market_newsB

Get latest Indian stock market news from Google News. Example: get_market_news(15)

get_stock_newsA

Get latest news for a specific stock. Example: get_stock_news("RELIANCE", 10)

get_sector_newsA

Get latest news for a sector — IT, Banking, Pharma, Auto, FMCG etc. Example: get_sector_news("Banking", 10)

get_nse_announcementsA

Get official NSE corporate announcements/filings. If symbol is provided, get announcements for that stock. Otherwise get latest announcements across all stocks. Example: get_nse_announcements("TCS")

get_board_meetingsC

Get upcoming and past board meeting dates for a stock. Example: get_board_meetings("RELIANCE")

get_income_statementA

Get income statement (P&L) — revenue, expenses, net income, EPS. Set quarterly=True for quarterly results. Example: get_income_statement("TCS") or get_income_statement("RELIANCE", quarterly=True)

get_balance_sheetA

Get balance sheet — assets, liabilities, equity, debt. Example: get_balance_sheet("INFY")

get_cash_flowA

Get cash flow statement — operating, investing, financing cash flows. Example: get_cash_flow("HDFCBANK")

get_key_ratiosB

Get key financial ratios — PE, PB, ROE, ROCE, debt/equity, dividend yield, EPS, market cap. Example: get_key_ratios("RELIANCE")

get_peer_comparisonA

Compare a stock with its industry peers — PE, PB, market cap, ROE side by side. Example: get_peer_comparison("TCS")

get_nse_financial_resultsC

Get quarterly/annual financial results filed with NSE. Example: get_nse_financial_results("RELIANCE")

detect_candlestick_patternsA

Detect candlestick patterns for a stock — Doji, Hammer, Engulfing, Morning Star, Evening Star, Marubozu, Three White Soldiers, Three Black Crows, and more. Periods: 1mo, 3mo, 6mo, 1y. Example: detect_candlestick_patterns("RELIANCE", "3mo")

scan_patterns_bulkA

Scan multiple stocks for candlestick patterns. Optionally filter by pattern name. Example: scan_patterns_bulk(["RELIANCE", "TCS", "INFY"], "Bullish Engulfing")

get_shareholding_patternA

Get shareholding pattern — promoter, FII, DII, public holding percentages. Example: get_shareholding_pattern("RELIANCE")

get_company_profileA

Get comprehensive company profile — sector, industry, fundamentals, and current quote in one call. Example: get_company_profile("TCS")

get_bulk_dealsA

Get recent bulk and block deals on NSE.

analyze_mutual_fundA

Deep analysis of a mutual fund — returns across all periods, risk metrics (Sharpe, Sortino, max drawdown, volatility), rolling returns, and a consistency score. Use search_mutual_funds first to get the scheme code. Example: analyze_mutual_fund("119598")

find_best_mutual_fundsB

Find the best mutual funds based on investment horizon and risk appetite. Analyzes returns, consistency, risk-adjusted performance, and rolling returns to find hidden gems.

Parameters:

  • category: Fund category keyword (e.g. "Equity", "Large Cap", "Mid Cap", "Small Cap", "Flexi Cap", "ELSS", "Debt", "Hybrid"). Leave empty for all.

  • investment_horizon: "1Y", "3Y", "5Y", "7Y", "10Y"

  • risk_appetite: "low" (prefers low volatility), "moderate" (balanced), "high" (max returns)

  • top_n: Number of top funds to return

Example: find_best_mutual_funds("Mid Cap", "3Y", "moderate", 10) Example: find_best_mutual_funds("", "5Y", "high", 5)

find_hidden_gemsB

Find hidden gem mutual funds — funds with exceptional risk-adjusted returns that are less popular. Focuses on:

  • High Sharpe ratio (best returns per unit of risk)

  • High rolling return consistency (positive in 80%+ periods)

  • Low max drawdown (less pain in crashes)

  • Strong 3Y/5Y CAGR

Example: find_hidden_gems("Small Cap", 3, 10) Example: find_hidden_gems("Flexi Cap")

mf_sip_returnsA

Calculate what your SIP returns would have been if you had invested in this fund. Shows month-by-month investment, units accumulated, and final value.

Example: mf_sip_returns("119598", 10000, 3) Means: Rs 10,000/month SIP for 3 years in scheme 119598

compare_mf_detailedA

Deep comparison of multiple mutual funds — returns, risk, rolling returns, SIP performance, consistency score. Perfect for "which fund should I choose" questions. Example: compare_mf_detailed(["119598", "120503", "118989"])

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/afthabvp/indian-market-mcp'

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