Skip to main content

Groww MCP package

Project description

How to Set Up GrowwMCP with Claude Desktop

This guide will help you connect your GrowwMCP to Claude Desktop, allowing you to analyse your portfolio, placing orders, analyse market and lot more using simple chat commands.


Step 1: Install Prerequisite Software

To get started, please install the following applications on your computer.

  1. Python 3.10: [! Required, it is mandatory to use python 3.10, the package isn't supported by python version <= 3.9]

  2. uv (A Python Package Installer):

Important: Mac users should install Python and uv using the command below. (If you do not have administrative privileges, please contact your IT Administrator). Do not try pip install uv to avoid unexpected behavior

brew install uv
brew install python@3.10
  1. Install the Claude Desktop Application
    • Obtain the installer for your specific operating system from https://claude.ai/download and execute it. (Administrator permissions are necessary). [On macOS, this will download as a .dmg file. Double-click it to launch the installer.]

Important: It is recommended to use administrator/root privileges when installing the above tools. This will help ensure that Claude can locate and utilize them correctly.


Step 2: Get Your Groww API Credentials

To connect Claude to your Groww account, you need special keys. You must first have access to the Groww API.

  1. Visit the Groww API documentation to get your API Key, API Secret, and set up your TOTP secret.
  2. Keep these keys safe and ready for the next step.

Step 3: Configure Claude Desktop

Now, you will tell Claude Desktop how to run the Groww tool.

  1. Open your Claude Desktop configuration file.

  2. In the configuration file, find the mcpServers section and add the following code inside it:

    {
        "mcpServers": {
            "growwmcp": {
                "command": "uv",
                "args": [
                    "run",
                    "--python",
                    "3.10",
                    "--with",
                    "growwmcp",
                    "python",
                    "-m",
                    "growwmcp",
                    "--stdio"
                ],
                "env": {
                    "GROWW_API_KEY": "<your api key here>",
                    "GROWW_API_SECRET": "<your api secret here>"
                }
            }
        }
    }
    
  3. Replace <your api key here> and <your api secret here> with the actual keys you got from Groww in Step 2.

  4. Save and close the configuration file.


Step 4: Verify the Setup

  1. Restart your Claude Desktop application.

  2. Check the "Search & Tools" section in Claude. You should see growwmcp listed as an available tool.

    • Note: It may take 10-15 seconds for the tool to appear the first time while it sets up.

    Image showing 'growwmcp' in the Claude Desktop tool list


Step 5: Start Using the Groww Tool

Once confirmed, you can start chatting with Claude to manage your portfolio. Try commands like but not limited to:

  • Place an order for 5 units of Reliance stock
  • Find next Thursday's NIFTY 25000 PE contract
  • What is my current portfolio value?

(Optional) For Better Responses

You can help Claude understand how to use the Groww tool more effectively by adding a system prompt.

  1. In the Claude Desktop chat interface, click the + button.
  2. Find the growwmcp section and click "Add" next to prompt_template_prompt.

Image showing how to add the system prompt in Claude Desktop

This will give Claude better instructions, leading to more accurate results. You are all set

Security/Vulnerability

This package is supposed be run by a mcp supported tool (i.e. claude desktop) so ensure you trust claude desktop with your data, and keep your <your api key here> and <your api secret here> safe.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

growwmcp-0.1.0.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

growwmcp-0.1.0-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file growwmcp-0.1.0.tar.gz.

File metadata

  • Download URL: growwmcp-0.1.0.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for growwmcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5c932a1fb55e5d09965bb84d21291871df7d3e64dbbbf55426b8eb90ee00f15
MD5 7e09430efa0b54cea4e97aa2a5a3268d
BLAKE2b-256 88944af185370e02a94738c85973cad8b4914a40bb9925ae71d8499aadcf007e

See more details on using hashes here.

File details

Details for the file growwmcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: growwmcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for growwmcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7f4bff4b11df35ab9b97673cbcd6e3607844e7bce1a6440b86ac25620a5eb1
MD5 d37a350c9501538cfd382578d752de50
BLAKE2b-256 671d9a8ee10b52eb05991bd9a53e8cbab210d822d8c8c76cf33ca9ed30dc63be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page