upstox-mcp-server
Click on "Install 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., "@upstox-mcp-serverShow my current holdings and PnL."
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.
Upstox Model Context Protocol (MCP) Server 🚀
An open-source implementation of Anthropic's Model Context Protocol (MCP) for the Upstox API v2. This server allows LLM-powered development agents (like Claude Desktop, Cursor, or local custom setups) to securely analyze portfolios and execute orders on the Indian Stock Market (NSE/BSE) using natural language.
⚡ Features
Get Profile (
get_profile): Fetches active broker account metadata and verification status.Get Holdings (
get_holdings): Reads active long-term equity holdings and computes real-time PnL.Place Order (
place_order): Places standard or bracket orders (with optional Good Till Triggered (GTT) target and stop-loss legs) directly onto exchange servers.Fallback Sandbox Mode: Runs in dry-run mode automatically if API credentials are not set, allowing safe testing.
Related MCP server: Kite MCP Server
🛠️ Quick Start
1. Prerequisites
Python 3.10 or higher installed on your system.
An active Upstox Developer account (to obtain API credentials).
2. Installation
Clone the repository and install the dependencies:
git clone https://github.com/YOUR_USERNAME/upstox-mcp-server.git
cd upstox-mcp-server
pip install -r requirements.txt3. Setup Credentials
Copy the example environment file and fill in your Upstox credentials:
cp .env.example .envOpen .env and enter:
UPSTOX_ACCESS_TOKEN=your_real_access_token_here
UPSTOX_API_KEY=your_api_key_here
UPSTOX_API_SECRET=your_api_secret_here🤖 Client Integration
1. Claude Desktop
Add the server configuration to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"upstox-mcp": {
"command": "python3",
"args": ["/absolute/path/to/upstox-mcp-server/upstox_mcp_server.py"]
}
}
}2. Cursor IDE
Open Cursor and go to Settings > Features > MCP.
Click + Add New MCP Server.
Fill in:
Name:
upstox-mcpType:
stdioCommand:
python3 /absolute/path/to/upstox-mcp-server/upstox_mcp_server.py
Click Save.
💡 Example Prompt Queries
Once connected, you can query your agent using standard English:
"What is my current portfolio worth on Upstox?"
"Buy 5 shares of TATAMOTORS at market price."
"Buy 10 shares of HAL at 3150 with a stop-loss at 3100 and a profit target of 3250."
📄 License
MIT License. Feel free to modify, extend, and deploy.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables AI-powered trading and portfolio management through Upstox API integration. Supports portfolio rebalancing strategies with LLM inference for automated trading decisions.Last updated
- 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.Last updated24MIT
- Flicense-qualityDmaintenanceEnables AI models to interact with the Zerodha trading platform for portfolio management, trading, and account operations through natural language.Last updated3
- Flicense-qualityCmaintenanceEnables AI agents to interact with Angel One brokerage for live market data, portfolio management, and order placement using the SmartAPI.Last updated
Related MCP Connectors
Connect AI agents to bank accounts, transactions, balances, and investments.
Build, backtest, and deploy quantitative trading strategies from your AI agent.
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/XENOMORPH0/upstox-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server