Cover image
Try Now
2025-04-15

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

mcp-server-upstox-api

A MCP server for integrating with the Upstox trading API.

Quick Start

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/mcp-server-upstox-api.git
cd mcp-server-upstox-api
  1. Install dependencies:
npm install

Run the Server

To start the MCP server:

npm run start

Your MCP server will be running at http://localhost:8787

MCP Configuration

Claude Desktop Configuration

To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop settings:

{
  "mcpServers": {
    "mcp-server-upstox-api": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

Cursor MCP Configuration

To use this MCP server with Cursor, add the following configuration to your Cursor MCP settings (usually located at ~/.cursor/mcp.json):

{
  "mcpServers": {
    "mcp-server-upstox-api": {
      "url": "http://localhost:8787/sse"
    }
  }
}

These configurations allow Claude Desktop and Cursor to connect to your local MCP server and use the Upstox API endpoints.

Using with Claude and Cursor

You can interact with the Upstox API through natural language prompts. Here are some example prompts for each command:

Profile Information

  • "What's my Upstox profile information?"
  • "Show me my active segments and products in Upstox"
  • "What's my user ID and email in Upstox?"

Funds and Margin

  • "What's my available margin in Upstox?"
  • "Show me my equity segment funds and margin details"
  • "What's my commodity segment margin availability?"

Holdings

  • "What stocks do I currently hold in Upstox?"
  • "Show me my long-term holdings with their current values"
  • "What's the total value of my holdings in Upstox?"

Positions

  • "What are my current open positions in Upstox?"
  • "Show me my intraday positions with their P&L"
  • "What's my total unrealized P&L from current positions?"

MTF Positions

  • "What are my Margin Trade Funding positions?"
  • "Show me my MTF positions with their current values"
  • "What's the total MTF exposure in my account?"

Order Book

  • "Show me my current day's orders in Upstox"
  • "What are my pending orders in Upstox?"
  • "Show me my order history for today"
  • "What's the status of my recent orders?"
  • "List all my completed orders for today"

Order Details

  • "Show me the details of order ID xxxxxxxxxxxxxxx"
  • "What's the status of my order with ID xxxxxxxxxxxxxxx"
  • "Get the complete information for order xxxxxxxxxxxxxxx"
  • "Check the execution status of order xxxxxxxxxxxxxxx"
  • "View the details of my recent order xxxxxxxxxxxxxxx"

Order History

  • "Show me the history of order ID xxxxxxxxxxxxxxx"
  • "Get all status updates for order xxxxxxxxxxxxxxx"
  • "What's the progression of order xxxxxxxxxxxxxxx"
  • "Show me all stages of order xxxxxxxxxxxxxxx"
  • "Get order history for tag xxxxxxxxxxxxxxx"

Order Trades

  • "Show me the trades for order ID xxxxxxxxxxxxxxx"
  • "What trades were executed for order xxxxxxxxxxxxxxx"
  • "Get the trade details for my order xxxxxxxxxxxxxxx"
  • "List all trades associated with order xxxxxxxxxxxxxxx"
  • "Show me the execution details for order xxxxxxxxxxxxxxx"

Trades

  • "Show me my trades for today"
  • "What trades have I executed today?"
  • "Get my daily trade history"
  • "List all my completed trades for the day"
  • "Show me my trade details with execution prices"

Available Endpoints

Endpoint Method Description
/get-profile GET Fetch user profile information
/get-funds-margin GET Fetch user funds and margin information. Optional segment parameter can be 'SEC' (Equity) or 'COM' (Commodity)
/get-holdings GET Fetch user long-term holdings information
/get-positions GET Fetch user short-term positions information
/get-mtf-positions GET Fetch user Margin Trade Funding (MTF) positions information
/get-order-book GET Fetch user's current day orders and their status
/get-order-details GET Fetch detailed information about a specific order using order ID
/get-order-trades GET Fetch trades executed for a specific order using order ID
/get-order-history GET Fetch order history using either order ID or tag
/get-trades GET Fetch user's trades executed for the current day

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    2 (1)
    Avatar
    user_vG8s3w3G
    2025-04-16

    As a dedicated user of the mcp-server-upstox-api, I find it incredibly efficient and easy to integrate. Pradeep Jaiswar has done a phenomenal job in developing this tool. The API is robust, well-documented, and offers seamless functionality for server-side applications. Highly recommended for anyone looking to streamline their trading operations with Upstox!