MCP Hub
Back to servers

groww-mcp

An MCP server that enables users to manage equity holdings, execute trades, and track market data on Groww using natural language. It supports mutual fund investments and SIP management, including a mock mode for risk-free testing.

glama
Updated
Mar 19, 2026
  ____  ____   ___  _ _ _ _ _ _       __  __  ____  ____
 / ___|/ ___| / _ \| | | | | | |     |  \/  |/ ___|/ _  |
| |  _| |___ | | | | | | | | | | __  | |\/| | |   | |_) |
| |_| |\___ \| |_| | |_| |_| |/ / | | |  | | |___|  __/
 \____|____/  \___/ \_____/|___/  |_| |_|  \____|_|

Trade on Groww. Through Claude.

Build TypeScript MCP Node License


What is this

An MCP server that connects Claude Desktop to Groww's trading platform. It registers 23 tools that let you manage equity holdings, place buy/sell orders, track live market data, run SIPs, and invest in mutual funds -- all through natural language prompts in Claude. Supports a full mock mode for demos without touching real money.


Architecture

┌──────────────────┐         stdio / MCP          ┌──────────────────────┐
│                  │ ────────────────────────────> │                      │
│  Claude Desktop  │                               │     groww-mcp        │
│  (MCP Client)    │ <──────────────────────────── │     (MCP Server)     │
│                  │      tool results (text)       │                      │
└──────────────────┘                               └──────────┬───────────┘
                                                              │
                                                              │ HTTPS
                                                              │ axios + retry
                                                              v
                                                   ┌──────────────────────┐
                                                   │     Groww API        │
                                                   │   (or mock layer)    │
                                                   └──────────────────────┘

                              ┌──────────────────────────────────────────┐
                              │            Registered Tools              │
                              ├────────────┬───────────┬─────────────────┤
                              │ portfolio  │  orders   │    market       │
                              │ positions  │  watchlist│    quotes       │
                              │ holdings   │  modify   │    OHLC         │
                              ├────────────┼───────────┼─────────────────┤
                              │    SIP     │   funds   │   search        │
                              │ create     │  invest   │   top movers    │
                              │ pause/stop │  details  │   status        │
                              └────────────┴───────────┴─────────────────┘

Quickstart

1. Clone and build

git clone https://github.com/darved2305/groww-mcp.git
cd groww-mcp
npm install
cp .env.example .env     # add your GROWW_API_TOKEN or leave MOCK_MODE=true
npm run build

2. Register with Claude Desktop

Open your claude_desktop_config.json and add:

{
  "mcpServers": {
    "groww": {
      "command": "node",
      "args": ["/absolute/path/to/groww-mcp/dist/index.js"],
      "env": {
        "MOCK_MODE": "true",
        "GROWW_API_TOKEN": "your_token_here"
      }
    }
  }
}

3. Restart Claude Desktop. You're done.


Tools

23 tools across 6 domains.

Portfolio

#ToolDescriptionParams
1get_holdingsCurrent equity holdings with P&L--
2get_portfolio_summaryInvested, current value, day P&L--
3get_positionsIntraday open positions--
4get_order_historyPast orders, filterable by datestart_date?, end_date?

Market

#ToolDescriptionParams
5get_quoteLTP, bid/ask, volume for symbolsymbol, exchange?
6search_stocksFuzzy search stocks by name/tickerquery
7get_ohlc_dataOHLC candles, 1d/1w/1m/1ysymbol, interval?
8get_top_moversTop 5 gainers and losers--
9get_market_statusNSE/BSE open or closed--

Orders

#ToolDescriptionParams
10place_orderBUY/SELL, MARKET/LIMIT, CNC/MISsymbol, order_type, quantity, price?
11cancel_orderCancel a pending orderorder_id
12modify_orderChange price or quantityorder_id, price?, quantity?
13get_order_statusReal-time order statusorder_id

Watchlist

#ToolDescriptionParams
14get_watchlistAll watchlist symbols with LTP--
15add_to_watchlistAdd a symbolsymbol, exchange?
16remove_from_watchlistRemove a symbolsymbol, exchange?

SIP

#ToolDescriptionParams
17list_sipsAll active SIPs with next date--
18create_sipNew SIP: fund, amount, frequencyisin, amount, frequency, start_date
19pause_sipPause an active SIPsip_id
20cancel_sipCancel SIP permanentlysip_id

Mutual Funds

#ToolDescriptionParams
21search_fundsSearch by name, category, AMCquery, category?, amc?
22get_fund_detailsNAV, AUM, expense ratio, returnsisin
23invest_in_fundOne-time lumpsum investmentisin, amount

Example Prompts

"What's my current portfolio P&L today?"

"Buy 10 shares of RELIANCE at market price"

"Show me top gainers on NSE right now"

"Start a 5000/month SIP in Mirae Asset Large Cap"

"Cancel all my pending orders"


Environment Variables

VariableRequiredDefaultDescription
GROWW_API_TOKENYes*--Groww API token for authentication
GROWW_BASE_URLNohttps://api.groww.in/v1Base URL for the Groww API
MOCK_MODENofalseSet to true for demo data, no real API calls
NODE_ENVNodevelopmentRuntime environment

*Not required when MOCK_MODE=true.


Mock Mode

The server ships with a full mock data layer. Set MOCK_MODE=true in your environment and every tool returns realistic hardcoded data using real Indian stocks (RELIANCE, TCS, INFY, HDFCBANK, ICICIBANK, WIPRO, BAJFINANCE) and real mutual fund schemes. No Groww account needed. No API calls made.

MOCK_MODE=true node dist/index.js

WARNING

This software can place real trades and move real money.

A poorly worded prompt can trigger a market order. A misunderstood confirmation can invest your savings in the wrong fund. The mock mode exists specifically so you don't learn this the hard way.

Use MOCK_MODE=true until you are absolutely certain. Test with small amounts first. The authors of this project accept zero responsibility for financial losses incurred through use of this tool.


License

MIT

Reviews

No reviews yet

Sign in to write a review