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.
README
____ ____ ___ _ _ _ _ _ _ __ __ ____ ____
/ ___|/ ___| / _ \| | | | | | | | \/ |/ ___|/ _ |
| | _| |___ | | | | | | | | | | __ | |\/| | | | |_) |
| |_| |\___ \| |_| | |_| |_| |/ / | | | | | |___| __/
\____|____/ \___/ \_____/|___/ |_| |_| \____|_|
Trade on Groww. Through Claude.
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
| # | Tool | Description | Params |
|---|---|---|---|
| 1 | get_holdings |
Current equity holdings with P&L | -- |
| 2 | get_portfolio_summary |
Invested, current value, day P&L | -- |
| 3 | get_positions |
Intraday open positions | -- |
| 4 | get_order_history |
Past orders, filterable by date | start_date?, end_date? |
Market
| # | Tool | Description | Params |
|---|---|---|---|
| 5 | get_quote |
LTP, bid/ask, volume for symbol | symbol, exchange? |
| 6 | search_stocks |
Fuzzy search stocks by name/ticker | query |
| 7 | get_ohlc_data |
OHLC candles, 1d/1w/1m/1y | symbol, interval? |
| 8 | get_top_movers |
Top 5 gainers and losers | -- |
| 9 | get_market_status |
NSE/BSE open or closed | -- |
Orders
| # | Tool | Description | Params |
|---|---|---|---|
| 10 | place_order |
BUY/SELL, MARKET/LIMIT, CNC/MIS | symbol, order_type, quantity, price? |
| 11 | cancel_order |
Cancel a pending order | order_id |
| 12 | modify_order |
Change price or quantity | order_id, price?, quantity? |
| 13 | get_order_status |
Real-time order status | order_id |
Watchlist
| # | Tool | Description | Params |
|---|---|---|---|
| 14 | get_watchlist |
All watchlist symbols with LTP | -- |
| 15 | add_to_watchlist |
Add a symbol | symbol, exchange? |
| 16 | remove_from_watchlist |
Remove a symbol | symbol, exchange? |
SIP
| # | Tool | Description | Params |
|---|---|---|---|
| 17 | list_sips |
All active SIPs with next date | -- |
| 18 | create_sip |
New SIP: fund, amount, frequency | isin, amount, frequency, start_date |
| 19 | pause_sip |
Pause an active SIP | sip_id |
| 20 | cancel_sip |
Cancel SIP permanently | sip_id |
Mutual Funds
| # | Tool | Description | Params |
|---|---|---|---|
| 21 | search_funds |
Search by name, category, AMC | query, category?, amc? |
| 22 | get_fund_details |
NAV, AUM, expense ratio, returns | isin |
| 23 | invest_in_fund |
One-time lumpsum investment | isin, 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
| Variable | Required | Default | Description |
|---|---|---|---|
GROWW_API_TOKEN |
Yes* | -- | Groww API token for authentication |
GROWW_BASE_URL |
No | https://api.groww.in/v1 |
Base URL for the Groww API |
MOCK_MODE |
No | false |
Set to true for demo data, no real API calls |
NODE_ENV |
No | development |
Runtime 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。