Introducing Kite MCP: Connect your Kite account to AI assistants

I tried using the MCP server on AnythingLLM Desktop on Linux and it doesn’t seem to work, getting the below error. Can you help me get it up and running ?

The error :

The configuration file for MCP

{
“mcpServers”: {
“kite”: {
“command”: “npx”,
“args”: [“mcp-remote”, “https://mcp.kite.trade/sse”]
}
}
}

I had ran this query from the mcp docs page with just a small change form of nifty smallcap 250 index : Could you analyse my current portfolio holdings with the following details: top 5 positions by market value, best and worst performers, sector distribution, overall portfolio beta and volatility, and unrealised P&L summary? Also plot my portfolio curve against an equal-weight composite index of Nifty smallcap 250, Gold and Nifty 10 year G-Sec index.

the result: I’m unable to fetch live quotes and historical data at the moment, which are required for a full analysis and plotting your portfolio curve against the composite index. However, I can still provide a detailed analysis based on your current holdings data:

  1. Top 5 Positions by Market Value: I can calculate this using your holding quantities and last prices.

  2. Best and Worst Performers: I can identify these based on your unrealised P&L.

  3. Sector Distribution: I would need sector information for each stock, which is not present in your holdings data. If you want, I can attempt to fetch or infer this.

  4. Overall Portfolio Beta and Volatility: This requires historical price data for your holdings and the benchmark indices, which I currently can’t access.

  5. Unrealised P&L Summary: I can provide this from your holdings data.

Would you like to proceed with the analysis using the available data, or would you like to try fetching live data again for a more comprehensive analysis and plotting?

@Prayag : Is there a way to get the family holdings via the MCP?

1 Like

Why should we install and configure claude to access kite. If user wants access the claude they should be doing it with kite app or web. Is there any way kite configures claude in kite environment automatically?

installed nodejs and claude, post doing all the steps as mentioned in the video, I started from asking a basic question and claude hit the maximum lenght for conversation, tried starting the new conversation, but the same problem still persists

Moreover the step by step installation window has the calude sonnet 3.7 version of claude, while I have downloaded the claude sonnet 4, and not able to switch to 3.7 because its pro version now

kindly suggest how to proceed

1 Like

Agree with @Tusshar_Jain it hit the Limit quickly.

If zerodha has thought of this then they should had developed their own GPT model, sans limits or monetization.

To make it really useful for ‘en masse’.

Clarity : when I say own GPT Model then I don’t mean a full fledged model.
May be something like this.

“ChatGPT – CodeGPT (by Daniel San)” extension was a popular Visual Studio Code extension that allowed users to interact with ChatGPT directly inside VS Code.

It does not make any sense now. whenever I ask even a simple question to Caude after making mcp connection it sayd limit crossed. what’s the use if you cant even query your holdings?

Common problem with every users now it’s seems to purchase premium Claude ai version for this chat restriction

How to go around the issue of maximum length of reached for conversation.

Can check this.

3 Likes

I’ve verified the query, and it’s working correctly now. You can try running it on your end.

Unfortunately, these are limits placed by Claude on their free users. You can try using VSCode + Copilot where you get up to 50 prompts.

Due to Claude’s free plan’s constraints, you may reach the conversation length limit quickly. For extended conversations, you can upgrade to Claude Pro or, alternatively, use Copilot.

To learn how to set up using Copilot watchi this video https://www.youtube.com/watch?v=dA6IgCdg6tE

Am getting following error on claude

image

The logs says as below

“Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. console.error('...') in JavaScript, print('...', file=sys.stderr) in python) and it will appear in this log.
2025-05-26T07:05:22.618Z [error] [kite] Server disconnected. For troubleshooting guidance, please visit our debugging documentation

Any help is much appreciated.

1 Like

@Renjith_Pillai click on the “Open Logs Folder” button on this screen and look for a file named mcp-server-kite.log. Please share this file with me in a DM.

Has anyone managed to run a meaningful query with Claude that uses Kite MCP? I get the dreaded “maximum length” limit on my first API hit. Login followed by get_position().

I understand this is a Claude free tier limitation. But how are the examples in the video running so many queries?? :thinking:

AnythingLLM might not fully support interactive OAuth flows like browser-based sign-ins required for connecting to Kite MCP. It doesn’t seem to handle the OAuth handshake that tools like Kite’s MCP rely on. As an alternative, tools like Claude, Windsurf, Cursor, or Visual Studio Code might offer smoother compatibility.

“Maximum length” error means your conversation’s context window—the total tokens of all messages and prompts—has been exceeded, not your daily message cap. On the free tier, that context window is variable and can shrink under heavy load, making it significantly smaller than paid plans.

  • To avoid overflow, start new threads when using Kite MCP.
1 Like


My login was successful however not able to see the holding details through Claude tried several times

The holdings fetch is working correctly. You may retry once again. If you encounter any errors while fetching your holdings, please share a screenshot of the error message.