NinjaTrader 8 MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 26 tools
Most tools target distinct resources and actions (orders vs positions vs accounts vs charts). The main ambiguity is among the three account tools (nt_accounts, nt_account_info, nt_account_balance), which offer overlapping balance/position information.
All tools follow the 'nt_' prefix with snake_case, and the pattern is predictable: action verbs for mutations (place_order, cancel_order) and noun phrases for queries (orders, positions, account_info). No camelCase or mixed conventions.
26 tools is on the heavy side, but the broad domain of a trading platform justifies many of them. However, there is some redundancy (e.g., three account tools, two position tools) and the chart/strategy tools feel somewhat niche, making the set slightly over-scoped.
The surface covers core trading workflows: order CRUD, position management, account details, market data, and basic chart/strategy controls. Notable gaps include no tool to start a strategy and the historical bars tool is a non-functional placeholder, but most essential operations are present.