Anysphere · MCP · NinjaTrader 8

Connect Cursor to NinjaTrader 8

Cursor is the AI-coding IDE for NinjaScript projects. Multi-file workspace, native browser OAuth, and CrossTrade's compile loop in the chat panel.

See it in action
~/strategies/SampleEmaCross · cursor

Cursor calling CrossTrade MCP tools against a live NinjaTrader 8 account. Run this yourself in 5 minutes →

Why Cursor

Why pair Cursor with CrossTrade MCP

Cursor sees your project files and refactors across them. CrossTrade adds the part Cursor cannot do on its own: it lets the agent inspect your real NT8 install, compile against it, and drive Strategy Analyzer. The pair turns vibe coding into a verified compile-backtest loop.

Transport .cursor/mcp.json with mcpServers, native browser OAuth (callback cursor://anysphere.cursor-mcp/oauth/callback)
Highlights

What this combination unlocks

Multi-file refactor

Apply a spec change across every strategy in your workspace at once.

Native OAuth

Browser handles consent; token caches automatically.

Cursor Composer

Plan a multi-step compile workflow before any tool call.

How it works

The connection chain

Cursor
   │  OAuth-authorized tool call
   ▼
CrossTrade hosted MCP server   (https://app.crosstrade.io/v1/api/mcp)
   │
   ▼
CrossTrade Add-On running inside NT8 on your PC
   │
   ▼
NinjaTrader 8

One URL, one consent screen, one read-only first prompt. The MCP server is hosted by CrossTrade; you don't run anything beyond NT8 + the CrossTrade Add-On.

Ready to set up Cursor?

The full step-by-step setup lives on a dedicated page. Verified against Anysphere's current docs.

Open setup instructions →
Example prompts

Copy-paste prompts that work today

Cursor compile loop Draft SampleEmaCross.cs in this workspace. CompileNinjaScript(in_memory: true). Backtest on Sim101.
FAQ

Common questions

Is Cursor a good fit for NinjaScript development?

Yes — Cursor's strength is multi-file editor context plus a chat panel that can call MCP tools. CrossTrade adds what Cursor can't do alone: inspect your real NT8 install, compile NinjaScript against it, run Strategy Analyzer. The pair turns vibe coding into a verified compile-backtest loop.

Do I need Cursor, or does Claude Code / Cline / Continue work?

Cursor for multi-file IDE work (the typical NinjaScript project). Claude Code for terminal-first compile loops. Cline / Continue / Roo Code if you're staying in VS Code. Same CrossTrade tool surface for all of them; pick the editor you already use.

Pricing?

Hobby (free), Individual ($20/mo), Teams ($40/user/mo), Enterprise (custom). MCP support is on all tiers. Paid plans get more frontier-model usage; BYOK works across tiers.

Mac, Windows, and Linux?

All three. Cursor is a standalone fork of VS Code, downloaded from cursor.com.

Cursor vs Windsurf?

Both are AI-native IDE forks. Cursor has a longer track record and broader ecosystem. Windsurf's Cascade agent is built around multi-step planning (give one goal, let it plan the steps). Both support remote MCP via similar JSON configs; CrossTrade works in both.

Composer or chat?

Use Composer (⌘K) for single-shot "do this then that" instructions. Use chat for back-and-forth refinement. The CrossTrade tool calls work the same way from either — the agent sees the same tool surface.

How do I avoid the SSE fallback hanging?

Cursor's auto-fallback from Streamable HTTP to SSE has known bugs for some servers. CrossTrade serves Streamable HTTP natively, so the fallback shouldn't trigger. If you see hangs, restart Cursor and check that the server URL doesn't accidentally have "sse" in the path.

Static bearer token instead of OAuth?

Yes — put it in the headers field, not the auth field. The auth field expects an OAuth Dynamic Client Registration shape; a bare Bearer token there will silently fail. Use { "headers": { "Authorization": "Bearer YOUR_TOKEN" } } for static auth.

Connect Cursor to NinjaTrader 8 in 5 minutes

Free Sim101 walkthrough. Read-only first. Upgrade scope only when a real workflow needs it.