Kotak Neo Trading MCP
Enables automated trading on Kotak Neo from AI environments with secure credential vault, TOTP generation, and smart order commands.
README
Kotak Neo Trading MCP Server
An MCP (Model Context Protocol) server designed to orchestrate trading on Kotak Neo directly from AI environments (like Claude Desktop or custom agents). It provides an entirely automated, stateless API execution layer running locally on Node.js.
Key Features
- Military-Grade Security (
SecureVault): Credentials (Mobile, UCC, TOTP Secret, MPIN, Consumer Key) are AES-256-GCM encrypted and never pass through the AI model. - Automated TOTP Generation: The server handles TOTP generation dynamically on login using your saved Base32 secret key.
- Smart Order Commands: Supports easy string commands for order placement like
NIFTY 24500 CE 30 L 110. - Local Master Data Caching: Reads NSE FO master cache to accurately resolve trading symbols and instrument tokens.
- Order Management: Supports fetching order book, open positions, margin, modifying orders, and cancelling orders.
Setup Instructions
1. Initialize the Secure Vault
Before running the server via MCP, you must configure your secure credential vault locally.
Run the following command in the project directory:
node index.js --setup
You will be prompted to securely enter:
- Kotak Mobile Number
- Kotak UCC (User ID)
- Kotak TOTP Base32 Key
- Kotak MPIN
- Kotak Consumer Key
You will then be asked to set a Master Password. This password encrypts your vault.
2. Configure MCP Client
Add the following to your MCP client configuration (e.g. Claude Desktop config):
{
"mcpServers": {
"kotak-neo-mcp": {
"command": "node",
"args": [
"path/to/Kotak-Neo-Trading-MCP/index.js"
]
}
}
}
3. Usage via AI
When talking to the AI, simply provide your Master Password to initiate the login: “Login to Kotak Neo using my master password [YOUR_PASSWORD].”
The AI will handle the rest, calling the login tool, decrypting the vault locally, and generating the live 6-digit TOTP pin automatically.
Available MCP Tools
login: Logs into Kotak Neo using themaster_password.place_order: Places an order using a Smart String command. (e.g.buy_or_sell: 'B',command: 'NIFTY 24500 CE 30 L 110')modify_order: Modifies an open order's price and quantity.cancel_order: Cancels an open order by ID.get_order_book: Retrieves the user's order book.get_positions: Retrieves current positions.check_margin: Retrieves available trading margin.get_nearest_expiry_option: Fetches the exact trading symbol and token for the nearest expiry option (e.g.,NIFTY 24500 CE).
CLI Utilities
node index.js --setup: Configure credentialsnode index.js --status: Check if a vault existsnode index.js --delete: Securely wipe your vault credentials
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.