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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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