MCP (Model Context Protocol) server for NinjaTrader 8 — AI-native trading via Claude, Hermes, or any MCP client. Read positions, place orders, get quotes, backtest strategies.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"nt-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP (Model Context Protocol) server for NinjaTrader 8 — AI-native trading via Claude, Hermes, or any MCP client. Read positions, place orders, get quotes, backtest strategies.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / finance
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
An open-source AI agent that brings the power of Gemini directly into your terminal.
Just a Better Chatbot. Powered by Agent & MCP & Workflows.
MCP Security Weekly
Get CVE alerts and security updates for Nt Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Connect AI agents (Claude, Hermes, ChatGPT, Cursor, Cline) to NinjaTrader 8 via the Model Context Protocol (MCP).
Your AI can read positions, check balances, place and cancel orders, fetch real-time quotes, pull historical bars, search instruments, and run NinjaScript strategies — through a single stdio interface.
AI Client (MCP stdio) → nt-mcp-server.js → HTTP :7890 → NT8 McpBridgeAddOn
Three layers, zero external APIs, everything runs locally on your machine.
New → NinjaScript Editor (F11)AddOns in the left panel → New AddOn...nt8-addon/McpBridgeAddOn.csAlternatively, copy nt8-addon/McpBridgeAddOn.cs to:
Documents\NinjaTrader 8\bin\Custom\AddOns\
and compile via NinjaScript Editor (F5).
Verify the AddOn is running:
curl http://localhost:7890/api/health
# {"status":"ok","timestamp":"...","version":"0.1.0"}
node nt-mcp-server.js
Expected output:
[nt-mcp] Server started — NT8 at http://127.0.0.1:7890
[nt-mcp] Waiting for MCP messages on stdin...
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"ninjatrader": {
"command": "node",
"args": ["C:/path/to/nt-mcp-server.js"]
}
}
}
Hermes Agent (~/.hermes/config.yaml):
mcpServers:
ninjatrader:
command: node
args: ['C:\path\to\nt-mcp-server.js']
transport: stdio
| Tool | Description |
|---|---|
nt_health | Check connection to NinjaTrader 8 |
nt_accounts | List accounts, balances, buying power |
nt_positions | List open positions with PnL |
nt_orders | List working orders with status |
nt_place_order | Place Market / Limit / StopMarket / StopLimit orders |
nt_cancel_order | Cancel an order by ID or name |
nt_cancel_all_orders | Cancel all working orders across all accounts |
nt_quote | Real-time quote (bid, ask, last, volume, daily high/low) |
nt_bars | Historical OHLCV bars (Minute, Day, Tick, Volume, Range) |
nt_search | Search instruments by name or symbol |
nt_execute_strategy | Launch a NinjaScript strategy on a chart |
Environment variables:
| Variable | Default | Description |
|---|---|---|
NT8_HOST | 127.0.0.1 | NT8 AddOn hostname |
NT8_PORT | 7890 | NT8 AddOn HTTP port |
nt_backtest — run Strategy Analyzer, return full trade list + performance metricsnt_compile — compile NinjaScript source in memory (incremental, no disk write)nt_chart_state — read chart state (symbol, timeframe, indicators)nt_indicator_values — pull live indicator values from open chartsnt_deploy_strategy — deploy, verify, and monitor a strategy in productionMIT — do what you want, no strings attached. See LICENSE.
Built by Igor and his AI agent Hermes.