
stock-market-mcp
io.github.eqdoc/stock-market-mcp
Indian stocks (NSE, BSE): filed financials, filings, indicators, screens and backtests.
Documentation
eqdoc MCP: stock market MCP server for Indian stocks (NSE & BSE)
Connect Claude, ChatGPT, Cursor, VS Code, Codex, Gemini CLI or any MCP client to data on about 5,700 companies listed on India's NSE and BSE: financial statements as filed, shareholding, exchange filings and earnings calls, technical indicators, market-wide screens and signal backtests. 85 tools, read-only, every figure dated.
- Server URL:
https://mcp.eqdoc.com/mcp(remote MCP, Streamable HTTP, OAuth sign-in) - Setup page: https://eqdoc.com/mcp
- Documentation: https://eqdoc.com/mcp/docs (setup per app, concepts, limits, playbooks, FAQ)
- Tool reference, one page per tool: https://eqdoc.com/mcp/tools
- Full guide in Markdown: https://eqdoc.com/mcp.md
- Nothing to install or host. This repository holds the documentation, ready-made config files and example prompts for the hosted server. The server's source is not in this repository.
Company figures are as filed and dated. A price is the stored last traded price, refreshed about every five minutes in market hours, each with its time; it is not a tick stream. Ratios, indicators and backtests use end-of-day closes. eqdoc is research data, not investment advice.
What it adds to your AI assistant
| Claude or ChatGPT alone | With eqdoc | |
|---|---|---|
| Results and shareholding | Answers from memory. | The figures as filed, each dated. |
| Indicators (RSI, MACD, Supertrend, moving averages) | Cannot calculate them. | Any stock, daily or weekly. |
| Market screens (for example RSI below 30 and above the 200-day average) | Cannot scan the market. | The full list. |
| Signal history | Cannot test it. | What happened after each past signal over 5 years. |
Quick start
Add a remote MCP server with the URL https://mcp.eqdoc.com/mcp, then sign in with your eqdoc account when your app opens the browser. Ready-made config files are in examples/.
Claude
- In claude.ai, open Settings, then Connectors, and choose Add custom connector.
- Name it eqdoc and paste the server URL
https://mcp.eqdoc.com/mcp. - Choose Connect, sign in with your eqdoc account and approve access. Claude Desktop uses the same Connectors setting.
- In Claude Code, add it from your terminal, then run
/mcpinside Claude Code to sign in:claude mcp add --transport http eqdoc https://mcp.eqdoc.com/mcp
ChatGPT
- In ChatGPT on the web, open Settings, then Apps and Connectors (Connectors on some plans).
- Under Advanced settings, turn on Developer mode. It is available on paid ChatGPT plans.
- Create a new connector, name it eqdoc, and paste the MCP server URL
https://mcp.eqdoc.com/mcp. Leave authentication on OAuth. - Sign in with your eqdoc account and approve access. Turn the connector on in a chat to use it.
Codex
- Add the server from your terminal:
codex mcp add eqdoc --url https://mcp.eqdoc.com/mcp - Sign in with
codex mcp login eqdoc. A browser window opens for your eqdoc account; approve access there. - Or add it to
~/.codex/config.tomlby hand, then run the login command above:mcp_servers.eqdoc = { url = "https://mcp.eqdoc.com/mcp" }
Gemini
- In the Gemini sidebar at gemini.google.com, click Customize, open the Connectors tab and click + Custom. On a work or school Google account the Workspace admin can hide or block custom connectors; if + Custom is missing, ask your admin or use a personal Google account.
- Paste the server URL
https://mcp.eqdoc.com/mcpinto MCP Server URL and click Next. Leave Additional settings (Client ID, Client secret) empty; eqdoc registers Gemini by itself. - Tick "I understand and accept the security and privacy risks" and click Connect. On the account-linking screen, click Agree and continue. Finish the next steps without a long break: Google's linking session expires after a few minutes, and if it says the session expired, start again from + Custom.
- Sign in to eqdoc with Google or with your email (a six-digit code), then click Allow.
- Gemini lists eqdoc's tools; click Connect to save. In a new chat, type @, pick eqdoc, and ask about any NSE or BSE company.
Gemini CLI
- Add eqdoc to
~/.gemini/settings.json. If the file already has anmcpServersblock, add the eqdoc entry inside it:{ "mcpServers": { "eqdoc": { "httpUrl": "https://mcp.eqdoc.com/mcp" } } } - Start Gemini CLI and sign in with
/mcp auth eqdoc. A browser window opens for your eqdoc account; approve access there.
Antigravity
- In the agent panel, open the menu, choose MCP Servers, then Manage MCP Servers and View raw config.
- Add eqdoc to
mcp_config.jsonand save:{ "mcpServers": { "eqdoc": { "serverUrl": "https://mcp.eqdoc.com/mcp" } } } - Refresh the server list. Antigravity opens a browser window to sign in with your eqdoc account; approve access there.
Cursor
- Add eqdoc to
~/.cursor/mcp.json(or.cursor/mcp.jsonin one project):{ "mcpServers": { "eqdoc": { "url": "https://mcp.eqdoc.com/mcp" } } } - Open Cursor Settings, then MCP, and choose Connect beside eqdoc. Sign in with your eqdoc account and approve access.
Perplexity
- In Perplexity, open Plugins in the sidebar (or Settings, then Connectors), and choose Add custom.
- Choose Remote, name it eqdoc, and paste the MCP server URL
https://mcp.eqdoc.com/mcp. - Sign in with your eqdoc account and approve access when asked.
VS Code
- In VS Code with GitHub Copilot in agent mode, add eqdoc to
.vscode/mcp.json(or to your user settings):{ "servers": { "eqdoc": { "type": "http", "url": "https://mcp.eqdoc.com/mcp" } } } - Start the eqdoc server from the file or the MCP servers list. VS Code opens a browser window to sign in with your eqdoc account; approve access there.
Anything else
A client that only speaks stdio: npx mcp-remote https://mcp.eqdoc.com/mcp. It opens the same sign-in in the browser and relays stdio to the server.
Things you can ask
- Show HDFC Bank's quarterly results for the last two years.
usesfinancials - How has the promoter holding in Adani Ports changed this year?
usesshareholding - What did L&T say about its order pipeline in its last call?
usessearch_filings - What is TCS's RSI and is it above its 200-day average?
usestechnicals - Which stocks have RSI below 30 and are still above their 200-day average?
usesindicator_screen - Backtest a Supertrend flip up over the last 5 years at a 10-session horizon.
usessignal_backtest - Which companies have ROE above 20%, debt to equity below 0.5 and EqScore above 70?
usesscreen - Compare TCS, Infosys and HCL Tech.
usescompare - Has Tata Motors' management kept its promises on debt reduction?
usesmanagement_commentary - Did Dixon's promoters sell shares this year?
usesinsider_trades - How broad was yesterday's market: how many stocks advanced and declined?
usesmarket_breadth - How much dividend has ITC paid in the last five years?
usesdividends
More in examples/prompts.md.
Tools (85)
The full reference, with every tool's inputs, is in docs/TOOLS.md.
Company basics
| Tool | What it does | Example question |
|---|---|---|
search_company | Find a listed company or a stock index by its name, ticker or code. | What is the ticker for Tata Consultancy Services? |
company_snapshot | One company at a glance: last close, market cap, P/E, P/B, key ratios, growth over 3, 5 and 10 years, cash flow and EqScore. Also returns the stored last traded price, refreshed about every five minutes in market hours, with its time. | Give me a quick snapshot of Mazagon Dock. |
peers | A company's listed peers in the same business, with their key figures. | Who are HDFC Asset Management's peers? |
sector_overview | All companies in a sector or industry with their key figures, largest first. | Show me the largest cement companies. |
list_sectors | The sectors eqdoc classifies companies into, with company counts. | Which sectors does eqdoc cover? |
company_profile | Who a company is: sector, industry, indices, listings and what it does. | What does Polycab do, and which indices is it in? |
Financials
| Tool | What it does | Example question |
|---|---|---|
financials | Profit and loss, balance sheet or cash flow, by year or by quarter, and the balance sheet at the half-year, as filed. | Show HDFC Bank's quarterly results for the last two years. |
dividends | Every dividend with its date and amount, and the total for each financial year. | How much dividend has ITC paid in the last five years? |
corporate_actions | One company's dividends, splits, bonuses, buybacks, rights issues and mergers with their dates; or the ex-dates coming up across the market. | Which companies go ex-dividend in the next two weeks, and has Infosys had a buyback? |
segments | Revenue and profit of each business segment, by year. | How much of Reliance's profit comes from retail? |
quarter_changes | What changed in the latest quarter against a year ago and the quarter before, and why. | Why did Bajaj Finance's profit change last quarter? |
disclosed_kpis | Figures a company reports in its presentations and calls: order book, AUM, NPAs, capacity and more. | What is Mazagon Dock's order book? |
export_workbook | Download a company's full Excel workbook, the same file as the Download button on eqdoc.com. | Give me an Excel file of Asian Paints' financials. |
valuation_history | Where a company's P/E and P/B sit against their own past, for one company or up to eight side by side. | Is Titan's P/E high or low against its own history? |
cost_exposure | Who gains or loses if a driver moves: each company's exposed cost line as a share of sales, its margins, and what a 5% or 10% move is worth. | Crude oil prices are cooling: which listed Indian companies benefit, and how much? |
brsr | A company's BRSR sustainability disclosures by fiscal year: emissions, energy, water, waste, people, board, complaints, assurance. | What were Infosys's Scope 1 and Scope 2 emissions in FY2026, and on what boundary? |
restatements | Results a company later changed: the earlier figure, the later figure and when each was filed. | Has Reliance restated its results? |
profit_quality | Where reported profit came from: operations, other income, exceptional items, associates and tax. | Is Reliance's profit growth from operations or from other income? |
implied_growth | The yearly EPS growth that would bring today's P/E to its own 3-year median in five years. | What EPS growth does Titan's P/E imply? |
case_for_against | What improved and what worsened against a year earlier, in the latest quarter and the latest year. | What improved and what worsened at Bajaj Finance against a year ago? |
bank_metrics | A bank's, lender's or insurer's own book: NPAs, margins, capital, deposits, advances or premiums. | What are HDFC Bank's gross and net NPA, CASA ratio and NIM? |
bank_group | Asset quality across private, public or all banks, side by side with the group median. | How do PSU banks' net NPAs compare with private banks'? |
Filings & management
| Tool | What it does | Example question |
|---|---|---|
order_wins | Orders and contracts companies told the exchange they won: the client, the value and its share of sales, the order type and when it runs, from April 2024. | Which Ministry of Defence orders were won in the last six months, and by whom? |
order_book | Weekly tracker of announced order wins by theme (defence, railways, EMS, EPC, power T&D, water, roads) and sector, ranked by share of sales. | Defence orders this week as a share of sales. |
event_timeline | One call for why a share moved: the days with an event or a big move, with its orders, results and filings beside its, the Nifty's and the sector's move. | Line up BEL's orders and results against its price over the last three months. |
filings | A company's exchange filings and announcements, newest first, with links; or read one listed filing. | What has Infosys announced in the last three months? |
search_filings | Search inside annual reports, results, call transcripts and filings. | What did L&T say about its order pipeline in its last call? |
management_commentary | What management said on earnings calls, the promises they made, and which were kept. | Has Tata Motors' management kept its promises on debt reduction? |
results_calendar | Upcoming results dates, for the market or one company. | Which companies announce results this week? |
credit_ratings | A company's credit ratings: agency, rating, outlook and date. | What is Bajaj Finance's latest credit rating? |
documents | Annual reports, investor presentations, call transcripts and rating reports, with links; or read one listed filing. | Get me Titan's last three annual reports. |
market_events | Classified filing events across the whole market: rating changes, auditor exits, buybacks, splits and more. | Which companies had a rating downgrade this week? |
list_calls | Which companies held an earnings call between two dates. | Who held earnings calls this week? |
auditor_notes | A company's auditor, the audit opinion, any resignation or qualification, and each revised quarter. | Who audits Infosys, and has the auditor ever qualified its opinion? |
track_record | Management promises graded as kept, slipped, missed or pending, with the words that settled each. | Which of Tata Motors' promises were missed? |
results_declared | Who filed quarterly results in a window and how the quarter went, ranked by year-on-year growth. | Which banks reported results last week, and how did profit change? |
results_lists | The results season's turnarounds and best results, with the year-ago figures. | Which companies turned profitable this quarter? |
filing_events | What happened at a company lately from its filings: classified events, announcements and the latest of each kind. | Any management changes or fund raises at Zee recently? |
people_changes | CEO, MD, CFO, company secretary, auditor, chairman and director appointments and exits from exchange filings, for one company or across the market. | Which companies had a CFO or auditor resign in the last 90 days? |
catalyst_calendar | Dated corporate events ahead for one company or the market: results board meetings, dividend, split, bonus, rights and buyback dates, and general meetings. | What dated catalysts and corporate actions are coming up for Reliance in the next 60 days? |
filings_by_topic | Exchange filings on a subject across every listed company, matched on whole words: how many, by how many companies, and the list with links. | How many companies reported a cyber fraud on BSE in the last three months? |
Ownership & deals
| Tool | What it does | Example question |
|---|---|---|
shareholding | Who owns the company: promoter, foreign, domestic institution and public holdings by quarter, with pledges. | How has the promoter holding in Adani Ports changed this year? |
holders | Find a named shareholder and every company they hold. | Which companies does LIC hold more than 5% of? |
deals | Bulk and block deals reported to the exchanges, for one company or the whole market; csv gives every deal in the window. | Were there any block deals in Zomato this month? |
institutional_flows | Daily net buying and selling by foreign and domestic institutions. | Have foreign investors been buying or selling this month? |
insider_trades | Promoter, director and insider buying, selling and pledging as filed under SEBI's rules, for one company or, with no symbol, the whole market. | Did Dixon's promoters sell shares this year? |
fpi_sector | Which sectors foreign portfolio investors bought and sold, by fortnight or summed over a window. | Which sectors did FPIs sell most in the last month? |
Market & macro
| Tool | What it does | Example question |
|---|---|---|
price_history | Daily closing prices of a company or an index (Nifty 50, Sensex, sector indices) between two dates or for the last N days (end of day only). | What were Reliance's closing prices in October 2026? |
rates_macro | RBI policy rates, how markets moved after rate changes, equities against fixed deposits, the official INR reference rates, and India's CPI and WPI inflation. | How did the Nifty move after the last repo rate cut, and what was the latest CPI inflation? |
chart_patterns | Chart patterns and indicator signals found on a company in the last five sessions, and shapes drawn on its chart (triangles, flags) with points. | Which chart patterns formed on Reliance this week? |
pattern_record | What followed a chart pattern in the past: market-wide, for one company, or every member of an index or sector ranked on its own record. | How often did a bullish engulfing pattern go on to rise within five sessions? |
technicals | A company's or index's technical indicators at its last close: RSI, moving averages, MACD, Bollinger Bands, support and resistance and more. | What is TCS's RSI and is it above its 200-day average? |
delivery | A company's delivery percentage by day and its exchange price band. | What was the delivery percentage in Infosys last week? |
price_change | How a stock or index moved over any window: start and end closes, change, highs and lows, drawdown and volatility. Also returns the stored last traded price, refreshed about every five minutes in market hours, with its time. | How did the Nifty move over the last three months, and how does it compare with the Sensex? |
ipo_analysis | A note on one IPO from its offer document: financials, issue, objects, promoters and risks. | Analyse the Lenskart IPO from its offer document. |
recent_listings | Companies that listed recently, with their first-session close and return since listing. | Which companies listed in the last 60 days? |
what_moved | What else was true on the day a share moved: its move, anything filed that day, how its sector moved and what institutions did. | Why did Tata Steel fall yesterday: was it news or the sector? |
market_movers | The biggest gainers or losers in the whole market at the last close. | Which stocks gained the most at yesterday's close? |
market_breadth | How many companies rose, fell or closed at a 52-week high or low at the last close, and how many sit above their moving averages. | How broad was yesterday's market: how many stocks advanced and declined? |
sector_moves | How each sector moved at the last close, or over a week, a month or three months. | Which sectors did best over the last month? |
global_cues | The latest reading of the global cues, taken three times a weekday: GIFT Nifty, US and Asian indices, Brent, gold, silver, the rupee, each dated. | What are the global cues right now: US markets, Brent and GIFT Nifty? |
indices | NSE and BSE index levels at the last close, and India VIX. Also returns the stored last traded price, refreshed about every five minutes in market hours, with its time. | Where did the Nifty, Sensex and Bank Nifty close? |
index_detail | One index in detail: level, returns over several periods, 52-week range, all-time high, valuation and its place in its own history. Also returns the stored last traded price, refreshed about every five minutes in market hours, with its time. | How has the Nifty Bank done this year, and how far is it from its high? |
index_members | The companies in an index, the indices a company is in, and whether one company is a member. | Is Reliance in the Nifty 50, and which indices is it in? |
Screening
| Tool | What it does | Example question |
|---|---|---|
screen | Filter every listed company with simple conditions, like a stock screener. | Which companies have ROE above 20%, debt to equity below 0.5 and EqScore above 70? |
rule_backtest | Test your own rule on daily prices: trades, win rate, return against holding and the Nifty 50, drawdown, by year. Past only; costs not modelled. | How would buying Nifty 50 stocks when RSI(14) is below 30 and the close is above the 200-day average, and leaving after 20 sessions, have done over five years? |
compare | Two to six companies side by side: valuation, ratios, growth over 3, 5 and 10 years, cash flow and EqScore. Also returns the stored last traded price, refreshed about every five minutes in market hours, with its time. | Compare TCS, Infosys and HCL Tech. |
describe_data | What data eqdoc holds and the exact names to ask for it by. | What figures can I ask for about banks? |
analyze | Any calculation across companies: returns, rankings, medians, multi-condition screens and charts. | Which Nifty 500 companies rose more than 30% in a year and have receivables below 10% of sales? |
technicals_screen | Which members of an index, sector or the market meet one technical condition, such as trading below the 50-day average. | Which Nifty 50 stocks are trading below their 200-day moving average? |
signal_screen | Which companies showed a named chart signal, market-wide, on a date or in the last sessions: a Supertrend flip up, a MACD crossover, a 52-week high breakout. | How many stocks gave a Supertrend flip up on the latest session? List them. |
indicator_screen | Which companies meet one or more technical conditions across the market: RSI, ADX, MACD, averages, Supertrend, crosses in N sessions, and / or. | Which stocks have RSI below 30 and are still above their 200-day average? |
signal_backtest | How a chart signal or pattern fared in the past, market-wide or for one company with each dated signal: win rate, returns, excess over the Nifty. | Backtest a Supertrend flip up over the last 5 years at a 10-session horizon. |
price_screen | Ranked lists across the market: new 52-week highs and lows, top gainers and losers over a chosen period. | Which large-cap stocks gained the most this year? |
rank_on_criteria | Ranks a group on five stated measures: profit growth, ROE, debt, valuation against its own history, one-year return. A ranking, not a recommendation. | Rank the Nifty Bank members on growth, ROE, asset quality, valuation and return. |
EqScore
| Tool | What it does | Example question |
|---|---|---|
eqscore_breakdown | A company's EqScore (0 to 100, against its own sector) with every check behind it. | Why does HDFC Bank have the EqScore it has? |
sector_scores | The EqScore ranking inside one scoring sector, best first. | Which banks have the highest EqScore? |
market_scores | EqScores ranked across all sectors, optionally within large, mid or small caps. | Which large caps have the lowest EqScore? |
score_movers | Companies whose EqScore moved most between two runs. | Which banks' EqScore rose most in the last month? |
Learn & rules
| Tool | What it does | Example question |
|---|---|---|
define_term | What a finance term means in eqdoc's own words: ROCE, P/E, gross NPA, price band and more. | What does ROCE mean and how is it calculated? |
learn_concept | Teaching notes on a market concept: technical analysis, valuation, ratios, risk. | Explain how to read RSI. |
search_basics | Dated articles on how the Indian market works: demat accounts, IPOs, settlement, charges, SEBI. | How do I apply for an IPO through UPI? |
sector_guide | How to judge a company in an industry: what drives it, the figures that matter, the red flags. | What drives cement company performance? |
find_circular | Search SEBI circulars and NSE and BSE notices for a rule or a change. | What did SEBI change about F&O expiry? |
Feedback
| Tool | What it does | Example question |
|---|---|---|
send_feedback | Send feedback or report a problem to the eqdoc team, only when you ask. The one tool that sends something out. | Tell eqdoc that the dividend yield for ITC looks wrong on the snapshot. |
Playbooks
The server also ships prompts (MCP prompts) that walk your assistant through a common job:
playbook_technicals: Technical readings: indicators, crosses, Fibonacci, support and resistance, trendlinesplaybook_why_moved: Why did a share, or the top movers, moveplaybook_ipo_note: An IPO note: offer document, subscription, issue price and listingplaybook_compare: Compare companies side by sideplaybook_results: Results summary: the latest quarterplaybook_governance: Governance, audit, insider activity and leadership track recordplaybook_orders_capex: Order book, order inflows, execution and capexplaybook_dividend: Dividends, payout ratio, free cash flow cover and corporate actions
Data rules
- Filed fundamentals and everything end-of-day (closes, market cap, P/E, P/B, dividend yield, the 52-week range), each dated to its close.
- Figures are as filed, or computed by eqdoc. Say the date with any figure you quote.
- Last traded prices are delayed snapshots refreshed about every five minutes in market hours, each with its IST time; there is no tick stream and no intraday bars.
- Not investment advice. Rankings and scores describe data; they are not a recommendation to buy or sell.
Coverage and freshness
- About 5,700 listed NSE and BSE companies.
- Closes, and everything computed from them (market cap, P/E, P/B, dividend yield, technicals, returns), are for the latest settled close. The day's close is in after the market closes, about 4 pm IST; in market hours the price tools also give the stored last traded price, refreshed about every five minutes, with its IST time. There are no intraday bars or tick data.
- Financial statements, shareholding, filings and call summaries are as the company filed them, with the date; an answer says which year or quarter it is on.
- Depth of one call: prices up to five years (within the last five years); annual financials up to 12 years; filings up to 3650 days; shareholding up to 12 quarters; corporate actions up to 10 years; insider trades up to 12 months; a rule backtest up to 10 years.
Limits
Per reader per day (resets at midnight IST): 500 data calls, 50 screens, 100 price histories, 100 analyses, 20 rule backtests, 30 downloads (Excel or CSV files), 10 feedback messages.
What counts against each daily limit: screens: screen, technicals_screen, signal_screen, indicator_screen, signal_backtest, price_screen, market_movers, market_breadth, sector_moves; price histories: price_history, price_change; analyses: analyze; rule backtests: rule_backtest; downloads: export_workbook; feedback messages: send_feedback. Every call is also a data call. A download is an Excel workbook, or a CSV file from financials, price_history, shareholding, screen, analyze, deals, insider_trades, index_members (format: "csv"), or reading one listed filing's PDF with read in documents or filings.
A call over a daily limit is refused with: "You have used today's N eqdoc MCP
Per minute: a budget of 30 units. A lookup weighs 1, a screen, comparison or valuation history 3, an analysis or a file 5. At most 6 calls in flight at once, and at most 10 calls in one batch. Over the limit, the call is refused with: "Too many calls this minute. Retry in N seconds." Wait that long, then retry.
Access, disconnecting and your data
- Sign-in: an access token lasts 1 hour and your app refreshes it for you; a refresh token lasts 30 days, then your app asks you to sign in again.
- Disconnect: remove eqdoc from your assistant's connector or MCP settings. In Claude or ChatGPT, open the connector and remove it; in Claude Code run
claude mcp remove eqdoc; in Codex runcodex mcp remove eqdoc; in Gemini, custom connectors are not listed under Installed on the Connectors page, so open Settings, then Developer Mode, then Choose an app, and remove eqdoc there; in Gemini CLI, Antigravity, Cursor or VS Code, delete the eqdoc entry from the config file; in Perplexity, open the connector and remove it. To end the access on eqdoc's side too, write to support@eqdoc.com from your account's email. - Logging: eqdoc records each tool call (your account, the app, the tool, its arguments, the outcome and the response) to run the service and apply the limits. It does not receive your conversation with the AI app, only the tool calls the app makes. Sign-in tokens are not written to these records, and your IP address only as a salted hash.
- Questions, problems, a connection ended: support@eqdoc.com. Inside a conversation,
send_feedbacksends the team a message, but only when you ask for it.
Requests and problems
- A tool you want, or an answer that looks wrong: open an issue in this repository.
- Account or access questions: support@eqdoc.com.
Licence
The documentation, config files and prompts in this repository are released under the MIT licence. Use of the hosted server and its data is under eqdoc's terms: https://eqdoc.com/terms.html
No installation packages available.