leantrading-mcp

OAuth MCP for LeanTrading Pro, Elite, Blueprint, Admin, and Product Tester (first 14 days of the tester grant).

Community: Submitted by a user or imported; check the owner before granting accessOnlineNo sign-inGlobalFreeRead-only

What it can do

  • Lt System Context: Load redacted LeanTrading system context for strategy research. Read-only; webhook secrets are redacted.
  • Lt Intelligence Snapshot: Read the intelligence health snapshot for one owned LeanTrading system.
  • Lt Risk Evaluate Preview: Run a dry-run Risk Manager evaluation. It does not persist rules and does not place orders.

What data it sees

Do you need an account

No: the server works without sign-in

OAuth MCP for LeanTrading Pro, Elite, Blueprint, Admin, and Product Tester (first 14 days of the tester grant). After that window, Pro is required. . Access strategy context, intelligence, risk preview, and TradingView Charting Agent tools from Cursor or Claude. Requires eligible paid account; TV chart actions need a paired ChartingBridge.

How to connect

How to connect leantrading-mcp to Claude

The server address to paste into Claude settings:

https://leantrading-mcp--info-3fh4.run.tools

  1. Open Claude (claude.ai or the desktop app).
  2. Go to Settings → Connectors.
  3. Click Add custom connector.
  4. Paste the server address copied below into Remote MCP server URL and click Add.
  5. In a chat, click + → Connectors and switch the new connector on.

Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.

Authorization

After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.

How to connect leantrading-mcp to ChatGPT

The server address to paste into ChatGPT settings:

https://leantrading-mcp--info-3fh4.run.tools

  1. Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
  2. Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
  3. Open Settings → Connectors and click Create.
  4. Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
  5. Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
  6. In a new chat open + → Apps/Connectors and enable the connector.

OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.

Authorization

On first use ChatGPT opens the service's sign-in window. Sign in and approve access.

How to connect leantrading-mcp to Cursor

The server address to paste into Cursor settings:

https://leantrading-mcp--info-3fh4.run.tools

Fastest: click Open in Cursor below and confirm the prompt.

Manually:

  1. In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
  2. Paste the JSON copied below into ~/.cursor/mcp.json (per project: .cursor/mcp.json in the repo root).
  3. Save the file. The server appears in the MCP list; authorize it there if asked.

Authorization

If the service needs sign-in, an authorize button appears next to the server in the MCP list.

Server tool list (60)

Raw names from tools/list. Only developers need these.

lt_system_contextLoad redacted LeanTrading system context for strategy research. Read-only; webhook secrets are redacted.
lt_intelligence_snapshotRead the intelligence health snapshot for one owned LeanTrading system.
lt_risk_evaluate_previewRun a dry-run Risk Manager evaluation. It does not persist rules and does not place orders.
lt_portfolio_rankingRead owned systems sorted by portfolio intelligence ranking.
lt_recent_blocked_signalsRead recent signals blocked by LeanTrading risk or intelligence gates.
lt_knowledge_searchSearch curated LeanTrading Pine, MQL5, webhook, and execution lessons.
lt_charting_agent_chatUse the LeanTrading Charting Agent for high-level strategy, Pine, backtest, and chart workflows. Live order sending remains confirmation-gated.
lt_wire_leantrading_alertPrepare LeanTrading strategy webhook wiring for owned systems and, only after explicit confirmation, create TradingView strategy alerts through the paired ChartingBridge. Raw webhook secrets are never returned.
lt_charting_job_statusRead the status, progress, and optional details of an asynchronous ChartingBridge job.
tv_backtest_summaryRead Strategy Tester metrics and recent trades from the strategy on the chart. No LeanTrading LLM is called.
tv_backtest_optimizeRun a direct ChartingBridge parameter optimization. Cursor supplies the axes; no LeanTrading LLM is called. Supports random sampling and eligibility constraints.
tv_adaptive_researchRun direct multi-context Adaptive Research through ChartingBridge. No LeanTrading LLM is called.
tv_layout_listList saved TradingView chart layouts.
tv_layout_switchSwitch to a saved chart layout by name or numeric ID.
tv_layout_newCreate a new named blank chart layout (opens in a new tab). Use when user asks for a new chart layout.
tv_tab_listList open TradingView chart tabs.
tv_tab_newOpen a new chart tab. Pass layout "new" for a blank layout, or a saved layout name.
tv_tab_closeClose the current chart tab.
tv_tab_switchSwitch to a chart tab by 0-based index from tv_tab_list.
tv_pane_listList chart panes in the current layout.
tv_pane_set_layoutChange multi-chart grid: s, 2h, 2v, 4, 6, 8 (or single/2x2/quad).
tv_pane_focusFocus a pane by 0-based index.
tv_pane_set_symbolSet symbol on a specific pane.
tv_chart_get_stateGet chart symbol, timeframe, type, and indicator entity IDs.
tv_chart_set_typeChange chart type (Candles, HeikinAshi, Renko, …).
tv_chart_manage_indicatorAdd or remove a study. For add use full names e.g. Relative Strength Index.
tv_chart_get_visible_rangeGet visible unix time range on the chart.
tv_chart_set_visible_rangeZoom chart to unix from/to.
tv_chart_scroll_to_dateCenter chart on a date (ISO or unix string).
tv_symbol_infoMetadata for the current symbol.
tv_symbol_searchSearch symbols by keyword.
tv_data_ohlcvOHLCV bars from the open chart. For S/R without user prices: call this (count≈200, summary=false); server/agent then draws swing levels via tv_draw.
tv_data_indicatorIndicator inputs by entity_id from chart state.
tv_data_strategy_resultsStrategy Tester metrics (raw). Prefer tv_backtest_summary for KPIs+trades.
tv_data_tradesStrategy Tester trade list.
tv_data_equityEquity curve from Strategy Tester.
tv_quote_getRealtime quote; optional symbol switches chart briefly.
tv_depth_getDOM / order book (open DOM panel first).
tv_data_study_valuesCurrent values of all visible studies.
tv_data_pine_linesPine line.new price levels; pass study_filter when known.
tv_data_pine_labelsPine label.new text+price.
tv_data_pine_tablesPine table.new rows.
tv_data_pine_boxesPine box.new zones.
tv_indicator_searchSearch Indicators dialog (Technicals/Community/My scripts).
tv_indicator_addSearch and add indicator/strategy/community script.
tv_indicator_set_inputsChange study inputs by entity_id.
tv_indicator_toggle_visibilityShow/hide a study.
tv_draw_removeRemove one drawing by entity_id from tv_draw_list.
tv_draw_propertiesGet properties of one drawing.
tv_pine_getRead Pine source from editor (can be large).
tv_pine_compileCompile current Pine to chart.
tv_pine_smart_compileSmart compile + error check.
tv_pine_errorsRead Monaco compile errors.
tv_pine_saveSave current Pine (Ctrl+S).
tv_pine_consoleRead Pine console/log output.
tv_pine_newCreate blank Pine script.
tv_pine_openOpen saved Pine by name.
tv_pine_listList saved Pine scripts.
tv_pine_analyzeStatic Pine analysis offline (no CDP).
tv_pine_checkServer-side Pine compile check without chart inject.