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 分

    请在仓库或注册中心条目中声明许可证。