概要
What is mcp-server-upstox-api?
mcp-server-upstox-api is an MCP server that integrates with the Upstox trading API, allowing users to interact with their Upstox account through natural language prompts in Claude Desktop or Cursor.
How to use mcp-server-upstox-api?
Clone the repository, install dependencies with npm install, start the server with npm run start, then configure Claude Desktop or Cursor to connect to http://localhost:8787/sse using the provided JSON settings.
Key features of mcp-server-upstox-api
- Fetch user profile information from Upstox
- Retrieve funds and margin details (equity/commodity)
- View long-term holdings with current values
- Access short-term positions and unrealized P&L
- Manage Margin Trade Funding (MTF) positions
- Query order book, order details, history, and trades
- Natural language interaction with Upstox through MCP clients
Use cases of mcp-server-upstox-api
- Ask "What's my available margin in Upstox?" without manual API calls
- Check current holdings and positions during trading hours
- Review order status and trade history for the day
- Monitor Margin Trade Funding positions and exposure
- Get detailed order information using order IDs
FAQ from mcp-server-upstox-api
How do I connect this server to Claude Desktop?
Add the provided mcpServers configuration to your Claude Desktop settings, using npx mcp-remote http://localhost:8787/sse as the command.
What endpoints does this server expose?
The server exposes ten GET endpoints: /get-profile, /get-funds-margin, /get-holdings, /get-positions, /get-mtf-positions, /get-order-book, /get-order-details, /get-order-trades, /get-order-history, and /get-trades.
How do I start the server locally?
Clone the repository, run npm install to install dependencies, then execute npm run start. The server will run on http://localhost:8787.