Question submitted successfully! We'll get back to you soon.
Something went wrong. Please try again.

๐Ÿง  AI Stock Analyzer - Complete Setup Guide

Welcome! This guide will help you connect Claude Desktop to your Zerodha trading account. Whether you're a beginner or an experienced trader, we'll guide you through the setup process step by step.

Version 1.1 (25 May 2025) ยท aistockanalyser.com

๐Ÿš€ Quick Start Guide

New to trading or AI tools? Start here! This section gives you a simple overview of what you'll need and what you'll get.

What You'll Need

  • A Zerodha trading account (like a bank account for stocks)
  • Claude Desktop (a smart AI assistant for your computer)
  • Node.js (a tool that helps run the software)
  • A Locker ID (we'll send this to your email)

What You'll Get

  • Real-time stock prices and market data
  • AI-powered analysis of your portfolio
  • Smart trading suggestions
  • Easy-to-understand market insights

๐Ÿ›ฃ๏ธ Choose Your Path

๐Ÿ‘ถ Beginner Path (Split Mode)

Perfect for new traders! This setup is simpler and doesn't require any special developer accounts.

  • โœ… No developer account needed
  • โœ… Easier to set up
  • โœ… Great for learning
  • โœ… Separate research and trading

๐Ÿš€ Advanced Path (All-in-One Mode)

For experienced traders who want everything in one place. Requires a free developer account.

  • โœ… Everything in one panel
  • โœ… More powerful features
  • โœ… Better for active trading
  • โœ… Requires developer account

๐Ÿ“‹ Before You Start

Required Software

๐Ÿ’ป

Claude Desktop

Your AI trading assistant

Download here โ†’
๐Ÿ“ฆ

Node.js LTS v18.x

Required to run the tools

Download here โ†’
๐Ÿฆ

Zerodha Account

Your trading account

Sign up here โ†’

โš ๏ธ Important Notes

  • If you have Node.js 20+, uninstall it and install v18 to avoid issues
  • Make sure to check your email for the Locker ID
  • Keep your Locker ID and API keys secure - never share them

Check Your Setup

Open your terminal/command prompt and run these commands:

$ node -v # Should show v18.x
$ npm -v # Should show โ‰ฅ 8
$ npx -v # Should show โ‰ฅ 8

โš™๏ธ Setup Instructions

Choose your setup:

๐Ÿš€ Advanced Mode Setup

Step 1: Enable Developer Mode

  1. Open Claude Desktop
  2. Click on Settings (โš™๏ธ icon)
  3. Find "Developer Mode" and turn it ON

Step 2: Get Kite API Credentials

  1. Visit developers.kite.trade/signup
  2. Sign in with your Zerodha account
  3. Click "Create New App"
  4. Fill in these details:
    • App Type: Personal (Free)
    • App Name: AI Stock Manager
    • Client ID: Your six-char Zerodha ID
    • Redirect URL: https://mcp.aistockanalyser.com/mcp/callback
  5. Click "Create" and copy both API Key and API Secret

Step 3: Configure Claude Desktop

Copy this configuration and replace the placeholders:

{ "globalShortcut": "", "mcpServers": { "Portfolio-Copilot-kite": { "command": "npx", "args": [ "mcp-remote", "https://mcp.aistockanalyser.com/mcp?kiteapikey=YOUR_API_KEY&kiteapisecret=YOUR_API_SECRET", "--auth", "none", "--header", "Authorization: Bearer YOUR_LOCKER_ID" ] } } }

Step 4: Complete Setup

  1. Restart Claude Desktop
  2. Type login_url to get Zerodha login link
  3. Click the link and log in to Zerodha
  4. Copy the request_token from the URL
  5. Type set_token("YOUR_TOKEN")

โœ… Testing Your Setup

Try These Commands

Basic Tests
  • get_live_price("INFY") โ€” Check if you can get stock prices
  • get_holdings โ€” See your portfolio
Advanced Tests
  • calculate_rsi("INFY") โ€” Test technical analysis
  • get_fundamentals("TCS") โ€” Check company data

Common Issues

  • Token expired? Run login_url โ†’ set_token()
  • Command not found? Make sure Node.js is installed correctly
  • 401 error? Check your Locker ID and API keys

๐Ÿ“‹ Available Commands

Portfolio Commands

  • get_holdings โ€” See all your stocks and investments
  • get_positions โ€” Check your active trades

Market Data

  • get_live_price("NSE:TCS") โ€” Get current stock price
  • calculate_rsi("TCS", 14) โ€” Calculate RSI indicator

Research Tools

  • get_fundamentals("TCS") โ€” Get company financials
  • get_latest_news("TCS") โ€” Read latest news
  • get_earnings_history("TCS") โ€” View past earnings

๐Ÿ”ง Maintenance

Keeping Your Setup Secure

  • Change your API Secret every 90 days
  • Keep your Locker ID private
  • Use different apps for personal and business trading

Updating Software

  • Check claude.ai/download for updates
  • Back up your config before updating
  • Keep Node.js at version 18.x

๐Ÿ’ฌ Need Help?

Having trouble? I'm here to help! Send me an email with your question.

Contact Support