Allows cloning of the trading bot repository from GitHub to set up the MCP server.
Required as a runtime environment for the MCP server.
Used as a package manager to install dependencies for the MCP server.
Used as the programming language for building the trading bot project.
Offered as an alternative package manager to npm for installing dependencies.
Enables automated stock trading on the Zerodha platform, providing tools for buying and selling stocks, checking market status, retrieving real-time quotes, viewing order history and positions, monitoring account balance, and canceling orders.
Utilized for schema validation within the trading bot implementation.
Trading Bot with MCP
A trading bot built using the Model Context Protocol (MCP) that provides a set of tools for automated trading operations. This bot offers various functionalities for trading stocks, managing positions, and accessing market information.
Features
Stock Trading
Buy stocks with specified quantity
Sell stocks with specified quantity
Cancel existing orders
Market Information
Get real-time quotes for stocks
Check market status
View order history
Account Management
View current positions
Check account balance
Monitor order status
Prerequisites
Node.js (Latest LTS version recommended)
npm or yarn package manager
Trading account credentials (configured in
mcp-conf.json
)
Installation
Clone the repository:
Install dependencies:
Configure your trading credentials:
Create a
mcp-conf.json
file in the root directoryAdd your trading platform credentials and configuration
Configuration
The mcp-conf.json
file should contain the following structure:
Usage
The bot provides several tools that can be used through the MCP interface:
buy-stock
: Place buy orders for stockssell-stock
: Place sell orders for stocksget-positions
: View current positionsget-market-status
: Check market statusget-quote
: Get real-time quotesget-order-history
: View order historycancel-order
: Cancel existing ordersget-account-balance
: Check account balance
Development
The project is built using:
TypeScript
Model Context Protocol (MCP) SDK
Zod for schema validation
License
[Add your chosen license here]
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Disclaimer
This trading bot is for educational purposes only. Use at your own risk. Always test thoroughly before using with real money.
This server cannot be installed
An automated trading bot that interfaces with Zerodha to execute stock trades, manage positions, and access market information through natural language commands.
Related MCP Servers
- -securityAlicense-qualityIntegrates Zerodha's trading platform with Claude AI using the Multi-Cloud Plugin framework, allowing users to interact with their Zerodha trading account directly through Claude for stock trading and mutual fund operations.Last updated -42MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI models to interact with the Zerodha trading platform, allowing users to execute trades, view portfolio holdings, and manage positions through a standardized interface.Last updated -2MIT License
- AsecurityFlicenseAqualityA Node.js-based trading bot that integrates with the Zerodha platform to provide automated stock trading operations through MCP tools including session management, buy/sell operations, and portfolio tracking.Last updated -6
- -securityFlicense-qualityA command-based MCP server that enables programmatic stock trading on Zerodha through natural language interfaces like Claude, allowing users to buy and sell stocks via API calls.Last updated -