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.1.tar.gz (38.1 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.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: growwmcp-0.1.1.tar.gz
  • Upload date:
  • Size: 38.1 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.1.tar.gz
Algorithm Hash digest
SHA256 6da3f756baff1c8618786013921aca3cb6cd39531bc302aff613de1b6ef7c7bd
MD5 ca8c4d3d03c34bcc46967f14f0af03f0
BLAKE2b-256 4863fe3fb9beb92fb4034ea7c70203dc6ea9071b3557c032cdb59db433006d26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: growwmcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 42.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9fb2fc3225904c77a92f4fdcaced8c04f923e7e31f6e0621ac45c8f5a73335
MD5 fc1fbaddfdb48a45ae514445df5bedc3
BLAKE2b-256 e3d49470ce90ecc77d0e94fa7733513ec560f10949db6d155a68430085119ae6

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