Groww MCP Server
A comprehensive Model Context Protocol (MCP) server for the Groww Trading API. This server provides tools to interact with Groww's trading platform, enabling you to place orders, manage your portfolio, access live market data, and more.
Features
This MCP server provides access to all major Groww API endpoints:
🔧 Instruments & Search
download_instruments_csv
- Download/refresh complete tradeable instruments datasearch_instruments
- Search for instruments by name, trading symbol, groww symbol, or criteriaget_instrument_details
- Get detailed information about a specific instrument
📋 Orders Management
place_order
- Place new orders (stocks, F&O)modify_order
- Modify existing pending/open orderscancel_order
- Cancel pending/open ordersget_order_status
- Get order status by Groww order IDget_order_status_by_reference
- Get order status by user reference IDget_order_list
- Get list of all orders for the dayget_order_details
- Get detailed order informationget_order_trades
- Get all trades/executions for an order
💼 Portfolio Management
get_holdings
- Get current stock holdings in DEMAT accountget_positions
- Get all trading positionsget_position_by_symbol
- Get position for specific trading symbol
💰 Margin Management
get_user_margin
- Get available margin detailscalculate_margin_requirement
- Calculate required margin for orders
📊 Live Market Data
get_live_quote
- Get complete live market data for instrumentsget_ltp
- Get Last Traded Price for multiple instruments (up to 50)get_ohlc
- Get OHLC data for multiple instruments (up to 50)
📈 Historical Data
get_historical_data
- Get historical candle data for instruments
📊 Technical Analysis
calculate_moving_averages
- Calculate SMA and EMA for trend analysiscalculate_rsi
- Calculate Relative Strength Index for momentum analysiscalculate_bollinger_bands
- Calculate Bollinger Bands for volatility analysiscalculate_support_resistance
- Identify key support and resistance levelscalculate_volatility_metrics
- Calculate various volatility metrics for risk assessmentcalculate_macd
- Calculate MACD for trend and momentum analysiscalculate_stochastic
- Calculate Stochastic Oscillator for momentum analysiscalculate_williams_r
- Calculate Williams %R for momentum analysiscalculate_adx
- Calculate ADX for trend strength analysiscalculate_fibonacci_levels
- Calculate Fibonacci retracement and extension levelsanalyze_candlestick_patterns
- Identify common candlestick patterns
Prerequisites
- Groww Account: You need a Groww account with F&O trading enabled
- API Subscription: Active Trading API subscription (₹499 + taxes per month)
- API Key: Generate your API access token from Groww account settings
Generating API Key
- Log in to your Groww account
- Click on the profile section at the top-right
- Click on the settings icon
- Navigate to 'Trading APIs'
- Create and manage your API tokens
Configuration
The server requires the following configuration:
API Enums and Constants
Exchanges
NSE
- National Stock ExchangeBSE
- Bombay Stock Exchange
Segments
CASH
- Regular equity marketFNO
- Futures and Options
Order Types
MARKET
- Execute immediately at best available priceLIMIT
- Execute at specified price or betterSL
- Stop Loss orderSL_M
- Stop Loss Market order
Transaction Types
BUY
- Long positionSELL
- Short position
Product Types
CNC
- Cash and Carry (delivery-based)MIS
- Margin Intraday Square-offNRML
- Regular margin trading
Validity
DAY
- Valid until market close
Usage Examples
Search for Instruments
Place a Market Order
Place a Limit Order
Place a Stop Loss Order
Get Live Market Data
Get Historical Data
Technical Analysis Examples
Calculate Margin Requirements
Rate Limits
The Groww API has rate limits applied at the category level:
Category | Requests | Per Second | Per Minute | Per Day |
---|---|---|---|---|
Orders | Create, Modify, Cancel | 15 | 250 | 3000 |
Live Data | Quote, LTP, OHLC | 10 | 300 | 5000 |
Non-Trading | Status, List, Holdings, Margin | 10 | 250 | 3000 |
Error Handling
The server handles various types of errors:
- API Authentication Errors: Invalid API key
- Rate Limit Errors: Exceeded API rate limits
- Validation Errors: Invalid parameters
- Trading Errors: Market closed, insufficient margin, etc.
All errors are returned with descriptive messages to help identify and resolve issues.
Support and Documentation
Disclaimer
⚠️ Trading Risk Warning:
- Trading in financial markets involves substantial risk of loss
- Past performance does not guarantee future results
- Only trade with money you can afford to lose
- This tool is for educational and development purposes
- Always verify orders and trades manually
- The developers are not responsible for any trading losses
License
This project is licensed under the MIT License.
This server cannot be installed
Enable seamless integration of Groww platform data and tools with language models to enhance financial decision-making and automation. Provide access to Groww-specific resources, execute financial operations, and utilize predefined prompts for investment workflows. Simplify interaction with Groww se
Related MCP Servers
- -securityFlicense-qualityFacilitates enhanced interaction with large language models (LLMs) by providing intelligent context management, tool integration, and multi-provider AI model coordination for efficient AI-driven workflows.Last updated -Python
- AsecurityFlicenseAqualityProvides tools to get financial data (stock prices, company information) and generate financial visualizations through the Model Context Protocol.Last updated -104Python
- -securityFlicense-qualityEnables AI assistants to access and analyze financial data including stock information, company fundamentals, and market insights through the Financial Modeling Prep API.Last updated -16TypeScript
- -securityAlicense-qualityA powerful toolkit that enables seamless interaction with EVM-compatible networks through natural language processing and AI assistance, allowing users to manage wallets, launch tokens, and interact with blockchain networks.Last updated -0JavaScriptMIT License