# tradernet-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/verbart/tradernet-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 230  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tradernet-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **get_user_data** — Get initial user data (account info, portfolio summary, open positions). This is the primary command to check your account status.
- **get_portfolio** — Get current portfolio positions and account balances. Returns account funds, open positions with P&L, market values, and settlement info.
- **place_order** — Place a new trading order (buy, sell, short, margin). Returns order_id on success.
- **cancel_order** — Cancel an active order by its ID
- **set_stop_loss_take_profit** — Set stop-loss and/or take-profit for a position. Pass null to leave unchanged.
- **get_security_info** — Get detailed information about a security/ticker (name, currency, exchange, min step, etc.)
- **get_quotes_history** — Get historical candlestick (OHLCV) data for a ticker. Returns arrays of high/low/open/close prices with timestamps.
- **search_tickers** — Search for securities/tickers by name or symbol. Supports market filter with @ syntax, e.g. "AAPL@FIX" for NYSE/NASDAQ.
- **add_price_alert** — Set a price alert for a ticker. You'll be notified when the price condition is met.
- **delete_price_alert** — Delete an existing price alert by its ID
- **get_security_sessions** — Get list of currently open security sessions (for two-factor authentication operations)
- **raw_api_call** — Make a raw API call to any Tradernet command. Use this for commands not covered by other tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tradernet-mcp": {
    "command": "npx",
    "args": ["-y","tradernet-mcp"],
    "env": {
      "TRADERNET_PUBLIC_KEY": "",
      "TRADERNET_PRIVATE_KEY": ""
    }
  }
}
```

**Requires environment variables:** `TRADERNET_PUBLIC_KEY`, `TRADERNET_PRIVATE_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What tradernet-mcp MCP server does

The tradernet-mcp MCP server exposes Tradernet and Freedom24 account and market operations as MCP tools. It can retrieve account information, portfolio balances, open positions, profit and loss, security details, historical candlestick data, and available security sessions.

Trading actions are also available. An assistant can submit buy, sell, short, or margin orders, cancel active orders, and set stop-loss or take-profit values for a position. Separate tools create and remove price alerts with notifications. The ticker search tool accepts a security name or symbol, while the raw API tool provides access to Tradernet API commands beyond the dedicated tools.

This makes the server suitable for conversational portfolio checks, security lookup, historical price requests, alert management, and account actions. Order placement and other mutating operations should be used with appropriate review because they affect a connected trading account.

## How it works

The package is launched with npx and communicates with an MCP client over stdio. The client sends tool requests, and the server calls the configured Tradernet API. A typical launch uses `npx -y tradernet-mcp` and passes credentials through the process environment.

Claude Desktop can start the package directly from its MCP configuration. Claude Code can register the same command with `claude mcp add`. ChatGPT does not connect to the stdio process directly in the documented setup; Supergateway can wrap the process with streamable HTTP, and ngrok can expose that HTTP endpoint. The resulting `/mcp` URL is then added as a ChatGPT connector.

## Setup and configuration

Create a Tradernet or Freedom24 account API key pair from the platform profile settings. The tradernet-mcp MCP server requires these environment variables:

- `TRADERNET_PUBLIC_KEY`: the API public key.
- `TRADERNET_PRIVATE_KEY`: the API private key.
- `TRADERNET_API_URL`: optional API base URL; the documented default is `https://tradernet.com/api`.

For Claude Desktop, add an MCP entry that runs `npx -y tradernet-mcp` and supplies the two required keys in its `env` object. For Claude Code, register the npx command and then set the same environment variables. Keep the credentials in the client or process environment rather than putting them into prompts.

## Tools and capabilities

The available tools cover these areas:

- Account and portfolio: `get_user_data` and `get_portfolio`.
- Trading: `place_order`, `cancel_order`, and `set_stop_loss_take_profit`.
- Market data: `get_security_info`, `get_quotes_history`, and `search_tickers`.
- Alerts and sessions: `add_price_alert`, `delete_price_alert`, and `get_security_sessions`.
- API access: `raw_api_call` for a Tradernet API command directly.

Historical quotes are returned as OHLCV candlestick data. Security information includes fields such as currency, exchange, and minimum trading step, according to the tool description.

## Limitations and notes

The tradernet-mcp MCP server depends on valid Tradernet or Freedom24 API credentials and access to the corresponding API.

The package is documented as a stdio server. Connecting it to ChatGPT requires an additional HTTP bridge and public tunnel rather than a direct local stdio connection. The raw API tool extends coverage, but using it requires knowledge of the relevant Tradernet API command and its parameters. Consult the official Tradernet API documentation for command-level details.

_Full upstream README: https://allmcps.com/mcp/tradernet-mcp/readme_

