Skip to main content
Glama
anfs-pain

NinjaTrader 8 MCP Server

by anfs-pain

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
nt_health_checkA

Verify the McpBridgeAddon is running inside NinjaTrader and return account count.

nt_connection_statusA

Get the status of all broker connections in NinjaTrader (Connected / Disconnected / Connecting). Local mode only.

nt_accountsA

List all trading accounts in NinjaTrader with balances and open position counts.

nt_account_infoA

Get full details for a specific account (name, connection, P&L, buying power).

nt_account_balanceB

Get cash value, net liquidation, realized P&L, unrealized P&L, and buying power for an account.

nt_positionsA

List all open positions across all accounts (or a specific account).

nt_positionA

Get a specific position by account and instrument.

nt_ordersA

List orders, optionally filtered by account and/or status (Working, Accepted, Filled, Cancelled, Rejected).

nt_place_orderB

Place a new order (Market, Limit, Stop, or StopLimit) for any instrument.

nt_modify_orderA

Modify an existing working order — change quantity, limit price, or stop price.

nt_cancel_orderB

Cancel a specific working order by its ID.

nt_cancel_all_ordersA

Cancel all working orders for an account (or all accounts).

nt_close_positionA

Flatten (close) a specific position by instrument. Submits a market order at NT8 side.

nt_flatten_allA

EMERGENCY STOP — flatten all open positions and cancel all working orders across all accounts.

nt_quoteA

Get the current bid, ask, last price, and volume for an instrument. Requires the instrument to be subscribed in NT8.

nt_historical_barsA

Request historical OHLCV bars. Note: NT8 historical bars are async — returns a placeholder; use nt_quote for live data.

nt_market_depthA

Get the Level 2 order book for an instrument. Requires L2 subscription in NT8.

nt_search_instrumentsA

Search for instruments by name or symbol (returns up to 50 matches from NT8 instrument database).

nt_instrument_infoA

Get instrument details: tick size, point value, exchange, currency, instrument type.

nt_chart_listA

List all open chart windows in NinjaTrader with their symbol, timeframe, and chart ID. Local mode only.

nt_chart_stateA

Get current chart state — symbol, timeframe, indicators, and strategies. Use nt_chart_list first to get chart IDs. Local mode only.

nt_chart_instrumentA

[Phase 2] Change the primary instrument on a chart (equivalent of right-click → Data Series → change symbol). Use for quarterly futures rolls. Local mode only.

nt_chart_reloadA

[Phase 2] Reload all NinjaScript on a chart (equivalent of pressing F5). Use after changing data series. Local mode only.

nt_strategies_runningA

List all currently running NinjaScript strategies with their state, chart ID, and symbol. Local mode only.

nt_strategy_stopA

Stop a running NinjaScript strategy by class name. Use nt_strategies_running first to get exact names. Local mode only.

nt_indicator_valuesA

Read the current output series values of a NinjaScript indicator on an open chart. Local mode only.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/anfs-pain/ninjatrader-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server