MCP ExplorerExplorer

Banknifty Mcp Server

@umeshkedimion a month ago
1 NOASSERTION
FreeCommunity
AI Systems
A modular algo trading server for BankNifty using FastAPI and Kite API.

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.

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)

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers