Kite Connect MCP Server
Provides tools to place market buy and sell orders on NSE via Zerodha's Kite Connect API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kite Connect MCP Server Buy 1 share of INFY"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kite Connect MCP POC
A proof-of-concept TypeScript MCP server that demonstrates how MCP tools can call Kite Connect APIs over stdio. This project is intentionally incomplete and focuses on proving the primary concept rather than providing a production-ready trading integration.
Features
greet: returns a greeting for a provided name.add_two_numbers: adds two numbers.factorial: calculates the factorial of a non-negative integer.buy_stock: places a Kite Connect market buy order on NSE.sell_stock: places a Kite Connect market sell order on NSE.
Related MCP server: NSE-BSE MCP Server
Prerequisites
Node.js
pnpm
A Zerodha Kite Connect API key
A valid Kite Connect access token
Setup
Install dependencies:
pnpm installCreate a .env file in the project root:
KITE_API_KEY=your_api_key
KITE_ACCESS_TOKEN=your_access_tokenRun
Start the MCP server:
pnpm devThe server uses stdio transport, so it is intended to be launched by an MCP-compatible client.
MCP Tools
buy_stock
Places a regular CNC market buy order on NSE.
Input:
{
"stock": "INFY",
"qty": 1
}sell_stock
Places a regular CNC market sell order on NSE.
Input:
{
"stock": "INFY",
"qty": 1
}greet
Input:
{
"name": "Bhimanshu"
}add_two_numbers
Input:
{
"a": 2,
"b": 3
}factorial
Input:
{
"a": 5
}Safety Note
The buy_stock and sell_stock tools call Kite Connect's placeOrder API and can place real market orders. Use valid credentials carefully and test with small quantities only when you are ready to trade.
Project Structure
.
├── config.ts # Loads required environment variables
├── index.ts # Defines and starts the MCP server
├── trade.ts # Wraps Kite Connect order placement
├── package.json # Scripts and dependencies
└── tsconfig.json # TypeScript configurationAvailable Tools
5 toolsadd_two_numbersA
Calculate sum of two numbers.
Inputs: a (required), b (required).
buy_stockC
Buy a stock
Inputs: qty (required), stock (required).
factorialC
Calculate factorial of a number.
Inputs: a (required).
greetA
Greet someone by name
Inputs: name (required).
sell_stockC
Sell a stock
Inputs: qty (required), stock (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The stock tools (buy_stock, sell_stock) are distinct, and the math/greeting tools are also individually clear. However, the mix of unrelated domains within a single server creates confusion about tool selection and purpose.
buy_stock and sell_stock follow a consistent verb_noun pattern, but greet, add_two_numbers, and factorial use different styles (bare verb, verb_object, and noun). This inconsistency makes the API feel chaotic.
Five tools is a reasonable number, but for a stock trading server only two are relevant. The other three are unrelated, making the count misleading and the server's scope unfocused.
For a trading server, critical operations like get_quote, list_positions, or place_order variants are missing. Instead, the set includes non-trading utilities, creating severe gaps that prevent any real trading workflow.
Maintenance
Related MCP Connectors
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Hosted MCP server for Indian NSE/BSE stock research: 59 tools for quotes, financials and ratios, peers, shareholding and pledge, filings with extracted facts, screens, F&O and FII/DII context. Source and freshness on every answer; no buy/sell calls.
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Zerodha trading platform for placing stock orders, viewing portfolio holdings, and managing mutual fund investments. Provides secure OAuth authentication and real-time trading capabilities through Zerodha's official API.1-
- AlicenseNot gradedqualityDmaintenanceProvides real-time and historical Indian stock market data from NSE and BSE exchanges with 66 tools covering quotes, options chains, corporate actions, IPOs, and market analytics for LLM-powered financial analysis.43 npm13MIT
- AlicenseNot gradedqualityDmaintenanceEnables trading operations on Zerodha platform through natural language, supporting account management, order placement/modification, portfolio holdings, positions, margins, and stock news retrieval.Apache 2.0
- AlicenseBqualityDmaintenanceEnables trading and portfolio management on Zerodha Kite Connect through natural language. Supports placing orders, viewing positions/holdings, accessing real-time market data, and managing GTT orders.24MIT