leantrading-mcp
OAuth MCP for LeanTrading Pro, Elite, Blueprint, Admin, and Product Tester (first 14 days of the tester grant).
Что умеет
- 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.
Какие данные видит
Нужен ли аккаунт
Не нужен: сервер работает без входа
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.
Как подключить
Как подключить leantrading-mcp к Claude
Адрес сервера, который нужно вставить в настройках Claude:
https://leantrading-mcp--info-3fh4.run.tools
- Откройте Claude (сайт claude.ai или приложение для компьютера).
- Перейдите в Настройки → Коннекторы (в английском интерфейсе: Settings → Connectors).
- Нажмите Добавить пользовательский коннектор (Add custom connector).
- Вставьте адрес сервера, скопированный ниже, в поле URL удалённого MCP-сервера и нажмите Добавить.
- В чате нажмите + → Коннекторы и включите новый коннектор.
Пользовательские коннекторы доступны на тарифах Free, Pro, Max, Team и Enterprise. На Free можно добавить только один. В Team и Enterprise коннектор сначала добавляет владелец организации в Настройки организации → Коннекторы.
Авторизация
После нажатия Добавить откроется окно входа в сервис. Войдите под своим аккаунтом и подтвердите доступ. Пароль Claude не видит.
Как подключить leantrading-mcp к ChatGPT
Адрес сервера, который нужно вставить в настройках ChatGPT:
https://leantrading-mcp--info-3fh4.run.tools
- Откройте ChatGPT в браузере (chatgpt.com). Нужен тариф Plus, Pro, Business, Enterprise или Edu.
- Один раз включите режим разработчика: Настройки → Приложения → Дополнительные настройки → Режим разработчика (Settings → Apps → Advanced settings → Developer mode).
- Откройте Настройки → Коннекторы и нажмите Создать (Create).
- Заполните форму: Название (любое), Описание (одна фраза, что делает сервис), URL MCP-сервера (скопируйте ниже).
- В поле Аутентификация выберите OAuth, если сервис требует вход, иначе Нет. Нажмите Создать.
- В новом чате откройте + → Приложения/Коннекторы и включите коннектор.
Название раздела у OpenAI менялось (Connectors → Apps/Plugins). Если пункт называется иначе, ищите «режим разработчика» в настройках. В рабочих пространствах Business/Enterprise администратор должен разрешить пользовательские коннекторы.
Авторизация
При первом использовании ChatGPT откроет окно входа в сервис. Войдите и подтвердите доступ.
Как подключить leantrading-mcp к Cursor
Адрес сервера, который нужно вставить в настройках Cursor:
https://leantrading-mcp--info-3fh4.run.tools
Быстрый способ: нажмите кнопку Открыть в Cursor ниже, Cursor сам предложит добавить сервер.
Вручную:
- В Cursor откройте Settings → Cursor Settings → MCP и нажмите Add new global MCP server.
- Вставьте JSON, скопированный ниже, в открывшийся файл
~/.cursor/mcp.json(для одного проекта:.cursor/mcp.jsonв корне проекта). - Сохраните файл. Сервер появится в списке MCP; при необходимости пройдите авторизацию по кнопке рядом с ним.
Авторизация
Если сервис требует вход, рядом с сервером в списке MCP появится кнопка авторизации.
Список инструментов сервера (60)
Технические названия из tools/list. Нужны только разработчикам.
| 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. |