Groww MCP server

Integrates with the Groww trading platform API to execute stock market operations including order placement, portfolio management, and live market data retrieval with automated authentication handling.
Back to servers
Setup instructions
Provider
Karthik
Release date
Sep 05, 2025
Stats
2 stars

Groww MCP Server enables AI assistants to interact with the Groww Trading API, allowing you to trade stocks, manage your investment portfolio, and analyze market data through conversational interfaces like Claude. This server implements the Model Context Protocol (MCP) to connect AI models with the Groww trading platform.

Installation

Using Go

If you have Go installed on your system, you can install the Groww MCP server directly:

go install github.com/karthik1729/groww-mcp/cmd/server@latest

# Binary is installed as 'server', rename for clarity
mv $(go env GOPATH)/bin/server $(go env GOPATH)/bin/groww-mcp

Using Pre-built Binary

Alternatively, you can download a pre-built binary from the GitHub releases page at GitHub Releases.

Setup Process

Obtain Groww API Token

First, you'll need to generate an API access token from Groww:

  1. Visit the Groww API Documentation
  2. Follow the instructions to generate your access token

Important: Your token will expire daily at 6:00 AM IST, so you'll need to refresh it regularly.

Set Environment Variable

Once you have your token, set it as an environment variable:

export GROWW_ACCESS_TOKEN="your_token_here"

Configure Claude Desktop

To integrate the MCP server with Claude Desktop, you'll need to modify the configuration file for your operating system:

macOS: Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "groww-mcp": {
      "command": "groww-mcp",
      "env": {
        "GROWW_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

Windows: Edit %APPDATA%\Claude\claude_desktop_config.json

Linux: Edit ~/.config/Claude/claude_desktop_config.json

Restart Claude Desktop

After configuration, restart Claude Desktop to apply the changes.

Using the MCP Server

Once configured, you can interact with your Groww account through Claude by using natural language prompts such as:

  • "Show my portfolio"
  • "Get price of RELIANCE"
  • "Place buy order for 10 shares of TCS"
  • "Show my available margin"

Available Trading Tools

Orders Management

  • place_order: Create new buy/sell orders
  • modify_order: Change parameters of existing orders
  • cancel_order: Cancel pending orders
  • get_orders: View your order history

Portfolio Analysis

  • get_holdings: View your current stock holdings
  • get_positions: Check open positions

Market Data

  • get_quote: Retrieve detailed stock information
  • get_ltp: Get latest trading price
  • get_ohlc: Access Open-High-Low-Close data
  • get_historical_data: Analyze price history

Account Information

  • get_margins: Check available trading margin
  • calculate_margin: Estimate margin requirements for trades

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "groww-mcp" '{"command":"groww-mcp","env":{"GROWW_ACCESS_TOKEN":"${GROWW_ACCESS_TOKEN}"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "groww-mcp": {
            "command": "groww-mcp",
            "env": {
                "GROWW_ACCESS_TOKEN": "${GROWW_ACCESS_TOKEN}"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "groww-mcp": {
            "command": "groww-mcp",
            "env": {
                "GROWW_ACCESS_TOKEN": "${GROWW_ACCESS_TOKEN}"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later