跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 TradingView,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
通过 TradingView 官方 MCP 服务器,在 Claude、ChatGPT 或 Copilot 中查询行情、历史价格、技术评级、基本面、新闻、公司公告和财经日历,运行 TradingView 筛选器,并管理你的自选列表和价格提醒。
试试这样问
TradingView 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录后打开 Connectors → TradingView 并安装,点击 Authorize with Provider 并在 TradingView 中批准,然后生成 MCP API key。无 Docker、无
git clone、无本地服务器。
TradingView + Gemini
通过 TradingView 官方 MCP 服务器,在 Claude、ChatGPT 或 Copilot 中查询行情、历史价格、技术评级、基本面、新闻、公司公告和财经日历,运行 TradingView 筛选器,并管理你的自选列表和价格提醒。
前提条件
- TradingView Essential 或更高的付费套餐。免费账号和试用套餐不包含 MCP 访问权限。
- 无需粘贴任何内容:此连接器没有环境变量,也不需要 API 密钥。安装后使用 TradingView 登录即可。
- 如果多人使用此连接器:谁登录,谁的 TradingView 账号就供所有人使用。
步骤 1 — 使用 TradingView 登录
TradingView 运营着自己的官方远程 MCP 服务器,自 2026 年 9 月起处于公开测试阶段。此连接器把它桥接进来:工具来自 TradingView(交易代码搜索、行情和历史价格、筛选器、技术评级、基本面和分析师预测、新闻、公司公告和财报电话会议记录、财报、分红和经济日历、经济指标,以及你的自选列表和价格提醒),AnythingMCP 把它们放在你的 AnythingMCP 服务器之后,使用它的 API 密钥、按工具划分的角色和审计日志,与你的其他连接器并列。
- 从目录安装连接器。无需粘贴任何内容:不需要 API 密钥、客户端 ID 或客户端密钥。
- 在连接器页面点击 Authorize with Provider。AnythingMCP 会在 TradingView 注册,并把你带到 TradingView 登录页。
- 使用你的 TradingView 付费账号登录并批准访问。回到 AnythingMCP 后,工具列表会从 TradingView 的服务器重新加载。测试期间 TradingView 会陆续添加工具:在连接器上点击 Discover tools 可以获取新工具。
套餐和测试期限制:TradingView Essential 及以上的付费套餐包含 MCP 访问权限;免费账号和试用套餐会被拒绝。测试期间,TradingView 提供的是延迟行情数据,每位用户每分钟约可调用 100 次工具,并且可能限制每日请求数。达到上限时,请等待一分钟。
用的是谁的账号:登录的人就是所有使用此连接器的人的 TradingView 用户。所有人读取的都是该账号的自选列表和提醒,并以该账号的身份修改它们,所以如果多人共用此连接器,请在授权之前决定用谁的账号。如果原本正常的调用开始因授权错误而失败,请再次点击 Authorize with Provider。
不能交易:TradingView 的服务器没有交易工具,因此这里不会下任何订单。结果是行情数据,不构成投资建议,AI 会把新闻报道和公司公告视为不可信文本。
安装时默认关闭:tradingview_delete_watchlist、tradingview_remove_from_watchlist 和 tradingview_delete_alert(同时会删除该提醒的历史记录)。创建自选列表和提醒、添加交易代码、重命名、暂停和恢复提醒保持开启。AI 创建的提醒会通知账号所有者,所以 AI 在大量创建提醒之前会先询问。Webhook 提醒无法通过这种方式创建或编辑。
先调用哪些工具:交易代码写作 EXCHANGE:TICKER,例如 NASDAQ:AAPL、BINANCE:BTCUSDT 或 XETR:SAP。当你提到某家公司时,AI 会先调用 tradingview_search_symbols,而 tradingview_get_symbol_data_batch 一次调用最多可读取 50 个交易代码。登录后返回 401 或 403,通常说明该账号没有付费套餐或授权已过期。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Gemini 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Gemini CLI 从 ~/.gemini/settings.json(Windows 上为 %USERPROFILE%\.gemini\settings.json)读取 MCP 服务器。添加:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换
YOUR_MCP_API_KEY。 - 保存文件并重启
gemini。 - 在 Gemini CLI 中运行
/mcp(或在终端运行gemini mcp list),anythingmcp应显示为已连接。 - 开始输入提示,Gemini CLI 现在可以调用
TradingView的工具。
可用工具
| Tool | What it does |
|---|---|
tradingview_list_watchlists | List the signed-in user's TradingView watchlists with their ids and names |
tradingview_get_watchlist | Get one watchlist and its symbols by id |
tradingview_get_active_watchlist | Get the active watchlist with its symbols |
tradingview_create_watchlist | Create a new watchlist in the user's TradingView account, optionally with a name and initial symbols |
tradingview_delete_watchlist | Delete a watchlist from the user's TradingView account |
tradingview_add_to_watchlist | Add symbols to a watchlist |
tradingview_remove_from_watchlist | Remove symbols from a watchlist in the user's TradingView account |
tradingview_update_watchlist | Rename a watchlist and/or change its description |
tradingview_get_ohlcv | Historical OHLCV bars for a symbol at an interval: an aggregate summary plus, unless summary is true, the raw bars [{t (unix seconds, UTC)… |
tradingview_get_economic_data | Time series of an economic indicator such as ECONOMICS:USIRYY (US inflation rate): [{date, value}] with the released value, plus unit and… |
tradingview_get_economic_symbols | Catalog of the economic tickers tradingview_get_economic_data accepts |
tradingview_search_symbols | Turn a ticker or company name into TradingView symbols (EXCHANGE:TICKER) with a fuzzy search: symbol, description, type, exchange and logo… |
tradingview_get_symbol_data | Any TradingView screener columns for one symbol: stocks, ETFs, crypto, forex, futures, indices, bonds and government bond yields |
tradingview_run_screener | Run the TradingView Screener with filters ({field: [min, max]} plus index, sector, industry and analyst_rating), sorting, presets and… |
tradingview_get_symbol_data_batch | Quotes or screener columns for up to 50 symbols in one call |
tradingview_get_screener_columns | Catalog of the screener column names accepted by tradingview_get_symbol_data, tradingview_get_symbol_data_batch and tradingview_run_screener |
tradingview_get_technicals_rating | Technical indicator snapshot for one symbol and timeframe: RSI, Stochastic K/D, CCI20, ADX, MACD, Momentum, AO, EMA and SMA 10 to 200… |
tradingview_get_news | Latest news headlines for a symbol: id, title, published (unix), provider, urgency (1 top, 2 normal), story path, link, permission, related… |
tradingview_get_news_story | Full text of a news story by the id from tradingview_get_news: description, short description, summary, permission, provider and copyright |
tradingview_get_forecasts | Analyst consensus for a symbol: recommendation and score, buy, hold and sell distribution, price targets with upside_pct, EPS and revenue… |
tradingview_get_financials | Current fundamentals of a symbol: P/E, P/B, margins, ROE and ROA, TTM revenue, net income, EBITDA and free cash flow, and year-over-year… |
tradingview_get_financial_history | Quarterly or annual history of fundamentals (revenue, gross profit, operating income, net income, free cash flow, EPS, EBITDA, total debt)… |
tradingview_get_documents | Filings and transcripts for a symbol (10-K, 10-Q, 8-K, earnings calls, presentations, press releases) with the view ids that… |
tradingview_get_document_view | Text of one document view (summary or transcript) by the views[].id returned by tradingview_get_documents |
tradingview_get_earnings_calendar | Earnings dates for a list of symbols: per symbol only the next scheduled report and the most recent one, with consensus EPS and revenue for… |
tradingview_get_economic_calendar | Macro events (CPI, GDP, rate decisions and more) filtered by country, currency, category and importance |
tradingview_get_dividends_calendar | Dividend data: ex-dates, amount, yield and payment date |
tradingview_create_alert | Create a TradingView price alert on a symbol (price plus cross, cross_up, cross_down, greater or less) |
tradingview_update_alert | Change the message, name, expiration or notifications of an existing alert and restart it |
tradingview_delete_alert | Delete alerts by id, together with their fire history |
tradingview_stop_alerts | Pause alerts without deleting them: id, history and settings are kept and tradingview_restart_alerts resumes them |
tradingview_restart_alerts | Resume paused alerts without creating them again; id, history and settings stay as they were |
tradingview_list_alerts | List all of the user's alerts, active and inactive: alert_id, name, symbol, active, condition type, threshold, resolution and timestamps |
tradingview_get_alerts | Full settings of specific alerts by id, including the raw conditions, which you need to recreate an alert with changed conditions |
tradingview_get_alerts_log | Alert fire history: when each alert fired, with symbol, message and webhook delivery status |
示例提示
- “NVIDIA、AMD 和 Intel 本周走势如何?把价格变动和成交量并排列出来。”
- “筛选 P/E 低于 15、营收增长超过 10% 的美国大盘股。”
- “总结一下 Microsoft 最近一次财报电话会议的记录。”
- “设置一个 Bitcoin 突破 120,000 USD 时的提醒,并把 BINANCE:ETHUSDT 加入我的加密货币自选列表。”
FAQ
Gemini CLI 从哪里读取 MCP 服务器? 用户级配置位于 ~/.gemini/settings.json,项目级配置位于项目内的 .gemini/settings.json。gemini mcp list 会列出每个服务器及其连接状态。
下一步
这份指南对你有帮助吗?