I’ve been experimenting with connecting Claude Code (Anthropic’s AI) directly to NinjaTrader 8 via a custom MCP server, and I finally got it working end-to-end on Windows.
What it does: Claude reads your open charts in real time (OHLCV data) Gives you technical analysis in plain language Reads your account balance, positions and orders Can place and cancel orders directly from the terminal
How it works:
I built two NinjaScript components from scratch:
McpBridgeAddon — an HTTP server (port 7890) that runs inside NinjaTrader as an AddOn
QMcpChartIndicator — an indicator you add to each chart, which feeds live OHLCV data to the AddOn via shared memory
Then a Node.js MCP server connects Claude Code to the AddOn using the Model Context Protocol.
Hi Tadeo! Amazing work connecting Claude to NinjaTrader. I have everything set up — Node.js, the MCP server, Claude Desktop is recognizing NinjaTrader — but I’m missing the McpBridge AddOn zip file to install in NinjaTrader 8. Could you please share the download link? Thank you so much!
This is overengineered. LLMs are non-deterministic. Same candles, different answers. That is dangerous for execution.
You don’t need the MCP server at all. You can make it much simpler, but honestly it does not even make sense for trading.
A basic Java Spring Boot service does the same thing. NT8 sends candle data to RabbitMQ. Spring Boot picks it up and calls the Claude API directly. Parse the response and send the signal back to NT8.
No Node.js. No MCP layer. Just a direct API call. Way less moving parts.
you can find a chaptGPT connection to NT in free at the nexus site. same components, you just have to wiggle it abit. The guys crreated it in 2023. Its cool, just cool.