Skip to main content
Glama

Quick Start Guide - Upstox MCP Server

Step 1: Get Upstox API Credentials

  1. Visit https://upstox.com/developer/

  2. Create/login to your account

  3. Generate API Key and API Secret

  4. Set Redirect URI: http://localhost:3000/callback

Step 2: Clone/Create Project

Note Edit .env with your credentials:

Step 3: Run with Docker

docker-compose up

Note: Replace the environment variable values in the docker-compose.yml

Related MCP server: vibetrader-mcp

References

  • MCP Protocol and Server concepts

  • Integration with Perplexity and other LLM APIs

  • Portfolio rebalancing strategies with AI inference

  • Perplexity Local MCP integration

Architecture

  • Node.js MCP Server: Implements MCP Protocol for communication.

  • LLM Integration Module: Handles calls to external LLMs such as Perplexity for inference.

  • Docker Container: Provides isolated, reproducible run environment.

Development

Running Locally

  1. Install dependencies:

    npm install

  2. Start the application:

    npm run start / dev

Testing

Run tests with:

npx @modelcontextprotocol/inspector node dist/server.js

Connecting a Locally Running MCP to Perplexity

Configure Perplexity to Connect to MCP

  1. Go to below path Settings -> Connectors -> + Add Connector

  2. Provide a Name "Robinhood" so your LLM targets the mcp

  3. Under advanced tab

    Copy paste the perplexity.config.json content in Advanced tab in connectors

    Update your Perplexity environment variables to point to your MCP instance

  4. Save and exit. You should be able to see your MCP showing runnng with number of tools.

Start Using and happy trading

Once connected, you can use Perplexity to send commands and queries to your local MCP seamlessly. and you should be able to see the mcp under sources

Note: Replace the environment variable values in perplexity.config.json

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Integrates with Robinhood API and LLMs like Perplexity to provide AI-powered portfolio rebalancing recommendations and trading analytics without executing trades directly.
    39 npm
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables LLM agents to analyze portfolios and execute orders on the Indian stock market via Upstox API v2 using natural language.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with the Upstox trading API via natural language to fetch user profile, funds, holdings, positions, orders, and trades.
    -