Hey everyone,
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.
I made a full video walkthrough (in Spanish, but the code and setup are universal):
youtube /watch?v=rGbYLrL105A
or Search : Conecté Claude AI a NinjaTrader 8 y esto pasó…
(nadie lo ha hecho en español).
Happy to answer any questions . This is early stage but fully functional — tested with MES futures.
— Tadeo / @Shinobi_Traders