- Explore MCP Servers
- banknifty-mcp-server
Banknifty Mcp Server
What is Banknifty Mcp Server
banknifty-mcp-server is a modular algo trading server designed for trading BankNifty options using FastAPI and Zerodha’s Kite Connect API.
Use cases
Use cases include automated trading strategies for BankNifty options, monitoring live profit and loss, and implementing risk management through the kill switch feature.
How to use
To use banknifty-mcp-server, clone the repository, set up your Kite credentials in the .env file, install the required packages, and run the main application using Python.
Key features
Key features include a structured MCP architecture, live order placement for BankNifty, various trading endpoints for buying, selling, and checking PnL, integrated Kite Connect login with TOTP, and a kill switch for safety.
Where to use
banknifty-mcp-server is primarily used in the financial trading sector, specifically for algorithmic trading of BankNifty options in a live trading environment.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Banknifty Mcp Server
banknifty-mcp-server is a modular algo trading server designed for trading BankNifty options using FastAPI and Zerodha’s Kite Connect API.
Use cases
Use cases include automated trading strategies for BankNifty options, monitoring live profit and loss, and implementing risk management through the kill switch feature.
How to use
To use banknifty-mcp-server, clone the repository, set up your Kite credentials in the .env file, install the required packages, and run the main application using Python.
Key features
Key features include a structured MCP architecture, live order placement for BankNifty, various trading endpoints for buying, selling, and checking PnL, integrated Kite Connect login with TOTP, and a kill switch for safety.
Where to use
banknifty-mcp-server is primarily used in the financial trading sector, specifically for algorithmic trading of BankNifty options in a live trading environment.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
BankNifty MCP Server (Zerodha Kite + FastAPI)
This is a modular, production-style algo trading server built using FastAPI and Zerodha’s Kite Connect API.
Features
- Structured MCP architecture (modular backend)
- Live order placement for BankNifty (directional)
/buy
,/sell
, and/pnl
endpoints- Integrated Kite Connect login with TOTP
- Kill switch logic (API-level)
- Public-ready project with secure
.env
Endpoints
Method | Endpoint | Description |
---|---|---|
GET | /trade/ping |
Check server status |
POST | /trade/buy |
Place BankNifty ATM PE order |
POST | /trade/sell |
Place BankNifty ATM CE order |
GET | /trade/pnl |
Show live PnL |
POST | /trade/kill |
Kill switch: Exit & Cancel all |
Getting Started
git clone https://github.com/your-username/banknifty-mcp-server.git
cd banknifty-mcp-server
cp sample.env .env
# Fill in your Kite credentials in .env
pip install -r requirements.txt
python main.py
## Disclaimer
⚠️ This project is for educational and demonstration purposes only.
Using real brokerage APIs with live capital involves risk.
This project does **not** constitute financial advice or a guaranteed strategy.
Use this system at your own discretion and **only in paper/live trading if you know what you are doing.**
## License
[MIT License](https://raw.githubusercontent.com/umeshkedimi/banknifty-mcp-server/master/LICENSE)
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.