Tradernet Mcp Server

io.github.verbart由 GitHub 帳號 verbart 發布v1.0.2更新於 Oct 24, 2026

MCP server for Tradernet/Freedom24 trading API — portfolio, orders, quotes, and more

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

讓助理透過 Tradernet API 讀取 Tradernet/Freedom24 券商帳戶,並下單、取消委託與設定停損停利。

可以做什麼
把 AI 助理連接到 Tradernet/Freedom24 交易 API。工具涵蓋帳戶與持倉資料(get_user_data、get_portfolio)、交易操作(place_order、cancel_order、set_stop_loss_take_profit)、行情資料(get_security_info、get_quotes_history、search_tickers、get_security_sessions)、價格提醒(add_price_alert、delete_price_alert),以及可直接呼叫任意 Tradernet API 指令的 raw_api_call。
適用情境
適合想用對話方式查看持倉、餘額與損益,查詢報價與標的細節,或下單與管理委託,而不想使用券商自帶介面的使用者。對象是已擁有 Tradernet 或 Freedom24 帳戶、並願意讓助理代為操作的人。
執行需求
以 stdio 方式在本機執行,通常透過 npm 套件 tradernet-mcp 以 npx 啟動,因此需要 Node.js。需要 Tradernet/Freedom24 帳戶,並以環境變數 TRADERNET_PUBLIC_KEY 與 TRADERNET_PRIVATE_KEY 提供 API 金鑰。選用環境變數 TRADERNET_API_URL 可覆寫預設 API 位址。需要能連線至 Tradernet API 的網路。
安裝前請注意
這些 API 金鑰屬於交易憑證:TRADERNET_PRIVATE_KEY 與 TRADERNET_PUBLIC_KEY 可存取真實券商帳戶,須謹慎保管。place_order、cancel_order、set_stop_loss_take_profit 等工具會動用真實資金、改變或平掉持倉,raw_api_call 還能呼叫任意 API 指令,助理可能在未進一步確認下操作帳戶。README 中面向 ChatGPT 的方式會透過通道把此伺服器公開暴露,擴大可存取的範圍。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tradernet Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Tradernet]

Tradernet MCP Server

[npm version] [License: MIT]

MCP server for the Tradernet / Freedom24 trading platform API. Manage your portfolio, place orders, get quotes, search tickers, set alerts — all through AI assistants like Claude, ChatGPT, and others.

Available Tools

ToolDescription
get_user_dataAccount info, portfolio summary, open positions
get_portfolioCurrent positions, balances, P&L
place_orderPlace buy/sell/short/margin orders
cancel_orderCancel an active order
set_stop_loss_take_profitSet SL/TP for a position
get_security_infoTicker details (currency, exchange, min step)
get_quotes_historyHistorical OHLCV candlestick data
search_tickersSearch securities by name or symbol
add_price_alertSet a price alert with notifications
delete_price_alertRemove a price alert
get_security_sessionsList open security sessions
raw_api_callCall any Tradernet API command directly

Setup

1. Get API Keys

  1. Log in to Tradernet or Freedom24
  2. Go to your profile settings
  3. Generate API keys (Public Key and Private Key)

2. Configure

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "tradernet": {      "command": "npx",      "args": ["-y", "tradernet-mcp"],      "env": {        "TRADERNET_PUBLIC_KEY": "your_public_key",        "TRADERNET_PRIVATE_KEY": "your_private_key"      }    }  }}
Claude Code
bash
claude mcp add tradernet -- npx -y tradernet-mcp

Then set environment variables TRADERNET_PUBLIC_KEY and TRADERNET_PRIVATE_KEY.

ChatGPT

ChatGPT only supports remote MCP servers over HTTP. To connect this stdio server, use supergateway as a bridge and ngrok to expose it publicly:

  1. Start the server with HTTP transport:
bash
TRADERNET_PUBLIC_KEY=your_public_key \TRADERNET_PRIVATE_KEY=your_private_key \npx -y supergateway --stdio "npx -y tradernet-mcp" --outputTransport streamableHttp --port 8000
  1. Expose it via ngrok:
bash
ngrok http 8000
  1. In ChatGPT: Settings → Connectors → Add Connector, enter your ngrok URL with /mcp path (e.g. https://abc123.ngrok-free.app/mcp)

Requires ChatGPT Pro, Team, or Enterprise plan with Developer Mode enabled.

Usage Examples

Once connected, you can ask your AI assistant things like:

  • "Show my portfolio"
  • "What are my open positions?"
  • "Buy 10 shares of AAPL"
  • "Set stop-loss for SBER at 250"
  • "Search for Tesla stock"
  • "Show AAPL price history for the last month"
  • "Set an alert when MSFT crosses $400"

Environment Variables

VariableRequiredDescription
TRADERNET_PUBLIC_KEYYesYour Tradernet API public key
TRADERNET_PRIVATE_KEYYesYour Tradernet API private key
TRADERNET_API_URLNoAPI base URL (default: https://tradernet.com/api)

API Documentation

This server implements the Tradernet API. For the full API reference, see the official documentation.

License

MIT

來源:README.md,提交 7061eb4

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。