leantrading-mcp
OAuth MCP for LeanTrading Pro, Elite, Blueprint, Admin, and Product Tester (first 14 days of the tester grant).
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
- Open Claude (claude.ai or the desktop app).
- Go to Settings → Connectors.
- Click Add custom connector.
- Paste the server address copied below into Remote MCP server URL and click Add.
- 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
- Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
- Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
- Open Settings → Connectors and click Create.
- Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
- Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
- 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:
- In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
- Paste the JSON copied below into
~/.cursor/mcp.json(per project:.cursor/mcp.jsonin the repo root). - 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_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. |
| lt_portfolio_ranking | Read owned systems sorted by portfolio intelligence ranking. |
| lt_recent_blocked_signals | Read recent signals blocked by LeanTrading risk or intelligence gates. |
| lt_knowledge_search | Search curated LeanTrading Pine, MQL5, webhook, and execution lessons. |
| lt_charting_agent_chat | Use the LeanTrading Charting Agent for high-level strategy, Pine, backtest, and chart workflows. Live order sending remains confirmation-gated. |
| lt_wire_leantrading_alert | Prepare 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_status | Read the status, progress, and optional details of an asynchronous ChartingBridge job. |
| tv_backtest_summary | Read Strategy Tester metrics and recent trades from the strategy on the chart. No LeanTrading LLM is called. |
| tv_backtest_optimize | Run a direct ChartingBridge parameter optimization. Cursor supplies the axes; no LeanTrading LLM is called. Supports random sampling and eligibility constraints. |
| tv_adaptive_research | Run direct multi-context Adaptive Research through ChartingBridge. No LeanTrading LLM is called. |
| tv_layout_list | List saved TradingView chart layouts. |
| tv_layout_switch | Switch to a saved chart layout by name or numeric ID. |
| tv_layout_new | Create a new named blank chart layout (opens in a new tab). Use when user asks for a new chart layout. |
| tv_tab_list | List open TradingView chart tabs. |
| tv_tab_new | Open a new chart tab. Pass layout "new" for a blank layout, or a saved layout name. |
| tv_tab_close | Close the current chart tab. |
| tv_tab_switch | Switch to a chart tab by 0-based index from tv_tab_list. |
| tv_pane_list | List chart panes in the current layout. |
| tv_pane_set_layout | Change multi-chart grid: s, 2h, 2v, 4, 6, 8 (or single/2x2/quad). |
| tv_pane_focus | Focus a pane by 0-based index. |
| tv_pane_set_symbol | Set symbol on a specific pane. |
| tv_chart_get_state | Get chart symbol, timeframe, type, and indicator entity IDs. |
| tv_chart_set_type | Change chart type (Candles, HeikinAshi, Renko, …). |
| tv_chart_manage_indicator | Add or remove a study. For add use full names e.g. Relative Strength Index. |
| tv_chart_get_visible_range | Get visible unix time range on the chart. |
| tv_chart_set_visible_range | Zoom chart to unix from/to. |
| tv_chart_scroll_to_date | Center chart on a date (ISO or unix string). |
| tv_symbol_info | Metadata for the current symbol. |
| tv_symbol_search | Search symbols by keyword. |
| tv_data_ohlcv | OHLCV 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_indicator | Indicator inputs by entity_id from chart state. |
| tv_data_strategy_results | Strategy Tester metrics (raw). Prefer tv_backtest_summary for KPIs+trades. |
| tv_data_trades | Strategy Tester trade list. |
| tv_data_equity | Equity curve from Strategy Tester. |
| tv_quote_get | Realtime quote; optional symbol switches chart briefly. |
| tv_depth_get | DOM / order book (open DOM panel first). |
| tv_data_study_values | Current values of all visible studies. |
| tv_data_pine_lines | Pine line.new price levels; pass study_filter when known. |
| tv_data_pine_labels | Pine label.new text+price. |
| tv_data_pine_tables | Pine table.new rows. |
| tv_data_pine_boxes | Pine box.new zones. |
| tv_indicator_search | Search Indicators dialog (Technicals/Community/My scripts). |
| tv_indicator_add | Search and add indicator/strategy/community script. |
| tv_indicator_set_inputs | Change study inputs by entity_id. |
| tv_indicator_toggle_visibility | Show/hide a study. |
| tv_draw_remove | Remove one drawing by entity_id from tv_draw_list. |
| tv_draw_properties | Get properties of one drawing. |
| tv_pine_get | Read Pine source from editor (can be large). |
| tv_pine_compile | Compile current Pine to chart. |
| tv_pine_smart_compile | Smart compile + error check. |
| tv_pine_errors | Read Monaco compile errors. |
| tv_pine_save | Save current Pine (Ctrl+S). |
| tv_pine_console | Read Pine console/log output. |
| tv_pine_new | Create blank Pine script. |
| tv_pine_open | Open saved Pine by name. |
| tv_pine_list | List saved Pine scripts. |
| tv_pine_analyze | Static Pine analysis offline (no CDP). |
| tv_pine_check | Server-side Pine compile check without chart inject. |