Groww mcp server
This project provides an MCP (Multi-Channel Platform) server for interacting with the Groww trading API. It allows you to fetch portfolio data, get live quotes, place/cancel/modify orders, and more, all via a unified API interface.
git clone https://github.com/venkatakaushikvemani/groww-mcp
cd groww-mcp
npm install
# or
pnpm install
.env
file in the root directory and add:GROWW_API_KEY=your_groww_api_key_here
PORT=3000 # or your preferred port
npm start
# or
pnpm start
mcp.json
{
"mcpServers": {
"groww-mcp": {
"command": "pnpm",
"args": ["dlx", "groww-mcp"],
"env": {
"GROWW_API_KEY": "YOUR_GROWW_API_KEY"
}
}
}
}
src/groww/tools.ts
for available tools and their parameters.Here are some example prompts you can use to interact with the tools:
Get your portfolio:
Fetch my portfolio
Get a live quote:
Get the live quote for TATAMOTORS
Get last traded price:
What is the last traded price of BPL and HFCL?
Get OHLC data:
Show me the OHLC data for TATAMOTORS
Get historical candle data:
Show me the historical candle data for TATAMOTORS for the last 1 day Fetch 5-minute historical candles for TATAMOTORS from 2024-06-01 09:15:00 to 2024-06-01 15:30:00
Place a buy order:
Buy 10 shares of SADHNANIQ
Place a sell order:
Sell 5 shares of TATAMOTORS
Modify an order:
Modify my order for BPL to 20 shares
Cancel an order:
Cancel my latest order for BPL
Get order status:
What is the status of my last order?
Pull requests and issues are welcome! Please open an issue to discuss your ideas or report bugs.
MIT