NubraNubra API
Back to Blogs

nubra-mcp-server

Nubra

title: "Nubra MCP Server: Connect Codex to Historical Data, Backtests, and UAT Trading" summary: "A practical introduction to the Nubra MCP Server, how it connects Nubra workflows into Codex, and how traders can use it for historical data, backtesting, option analysis, and safe UAT execution." tags: ["MCP", "Codex", "Algo Trading", "Historical Data", "Backtesting", "UAT Trading"] readTime: "8 min" publishDate: "2026-04-17" author: "Suboth Sundar: Algo Trader & Analyst"#

Nubra MCP Server on GitHub
Nubra MCP Server on GitHub

Nubra MCP Server brings Nubra workflows directly into Codex through the Model Context Protocol.

Instead of switching between terminals, docs, notebooks, and broker dashboards, traders and developers can ask for:

  • historical market data
  • CSV exports
  • chart summaries
  • option-chain snapshots
  • simple strategy backtests
  • UAT order previews and order placement

Repository:

https://github.com/socials-zanskar/nubra-mcp-server


Demo Video#


What the Nubra MCP Server Enables#

The Nubra MCP Server acts like a bridge between Codex and Nubra functionality.

That means a user can stay inside a Codex conversation and still do practical trading work such as:

  • logging in to PROD for market data
  • logging in to UAT for safe order testing
  • fetching historical candles for equities or indices
  • exporting local CSV files
  • running backtest simulations on Nubra historical data
  • inspecting option-chain structure, OI, IV, and strategy snapshots
  • previewing and placing UAT orders with guardrails

The point is not just API access.

The point is a smoother operator workflow where research, validation, and UAT execution happen in one assistant-driven environment.


Why This Matters#

Most trader tooling is fragmented.

Data comes from one place, strategy validation happens somewhere else, notes live in another tool, and execution testing often sits in a separate interface entirely.

That fragmentation slows down iteration and increases the chance of mistakes.

The Nubra MCP Server reduces that friction by letting Codex become a more practical trading workstation for:

  • market-data lookup
  • historical analysis
  • indicator-based scanning
  • backtesting
  • UAT execution testing

For a trader, that means a shorter path from:

idea -> data -> signal -> preview -> UAT validation


Historical Data Becomes Easier to Work With#

One of the most useful parts of the MCP is how naturally it handles historical market data inside chat.

A user can ask for candles and get a table preview directly in the conversation, then export the same dataset as a CSV when needed.

Example prompts:

Fetch 1 month daily historical data for RELIANCE and display the latest 10 candles as a table
Export historical data as CSV for NIFTY on 5m candles for the last 2 trading days

This is useful for quickly checking:

  • candle quality
  • recent trend structure
  • export-ready datasets for deeper review

Backtesting Moves Closer to the Research Loop#

The MCP can also run simple simulations on Nubra historical data instead of forcing the user into a separate script-first workflow every time.

Example prompt:

Run a moving average crossover backtest for RELIANCE on 1d candles with fast_window 5 and slow_window 20

That makes it easier to review:

  • total return
  • drawdown
  • trade count
  • basic strategy sanity checks

without leaving the Codex conversation.


Options Workflows Become More Interactive#

The MCP is also useful for option-first workflows where traders want fast visibility into structure and context before they decide how to act.

Example prompts:

Summarize option chain for NIFTY and show the top call and put OI strikes
Find the ATM straddle for NIFTY in the nearest expiry
Estimate margin for a NIFTY ATM short straddle

This is especially useful for traders thinking in terms of:

  • straddles
  • strangles
  • OI walls
  • expiry comparisons
  • delta-neutral setups

UAT Execution Becomes Safer to Validate#

One of the most practical parts of the stack is UAT-only trading support.

That means a user can:

  • log in to UAT
  • preview an order in a clean table
  • place the order
  • inspect order state
  • modify or cancel in UAT

without risking live capital.

Example prompt:

Preview a UAT order for RELIANCE with quantity 1, limit price 1500, and CNC

Then after confirmation:

Place the same UAT order

This is valuable for teams building:

  • execution logic
  • testing scripts
  • automation flows
  • strategy deployment pipelines

Setup Is Simple for Source-Based Users#

If a user wants the full source-based workflow, the easiest path is to clone the repo and open it directly in Codex.

git clone https://github.com/socials-zanskar/nubra-mcp-server.git
cd nubra-mcp-server
powershell -ExecutionPolicy Bypass -File .\bootstrap.ps1

Then they can:

  1. fill their local .env
  2. open the repo folder in Codex
  3. let Codex pick up .mcp.json
  4. start chatting with the Nubra MCP tools

That keeps the setup close to how repo-based MCP servers are typically used in developer workflows.


Final Takeaway#

The Nubra MCP Server is not just another wrapper around trading APIs.

It turns Codex into a more useful trading operations surface where market data, analysis, backtesting, and UAT execution can happen in one conversation.

If your workflow already involves Nubra data and trading APIs, this is one of the cleanest ways to make that workflow more interactive and easier to demonstrate.

Repository:

https://github.com/socials-zanskar/nubra-mcp-server