{
  "markdown": "<p align=\"center\">\n  <img src=\"logo.jpg\" alt=\"Tradernet\" width=\"120\" />\n</p>\n\n<h1 align=\"center\">Tradernet MCP Server</h1>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/tradernet-mcp\"><img src=\"https://img.shields.io/npm/v/tradernet-mcp\" alt=\"npm version\" /></a>\n  <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\" /></a>\n</p>\n\nMCP server for the [Tradernet](https://tradernet.com) / [Freedom24](https://freedom24.com) trading platform API. Manage your portfolio, place orders, get quotes, search tickers, set alerts — all through AI assistants like Claude, ChatGPT, and others.\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `get_user_data` | Account info, portfolio summary, open positions |\n| `get_portfolio` | Current positions, balances, P&L |\n| `place_order` | Place buy/sell/short/margin orders |\n| `cancel_order` | Cancel an active order |\n| `set_stop_loss_take_profit` | Set SL/TP for a position |\n| `get_security_info` | Ticker details (currency, exchange, min step) |\n| `get_quotes_history` | Historical OHLCV candlestick data |\n| `search_tickers` | Search securities by name or symbol |\n| `add_price_alert` | Set a price alert with notifications |\n| `delete_price_alert` | Remove a price alert |\n| `get_security_sessions` | List open security sessions |\n| `raw_api_call` | Call any Tradernet API command directly |\n\n## Setup\n\n### 1. Get API Keys\n\n1. Log in to [Tradernet](https://tradernet.com) or [Freedom24](https://freedom24.com)\n2. Go to your profile settings\n3. Generate API keys (Public Key and Private Key)\n\n### 2. Configure\n\n#### Claude Desktop\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"tradernet\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"tradernet-mcp\"],\n      \"env\": {\n        \"TRADERNET_PUBLIC_KEY\": \"your_public_key\",\n        \"TRADERNET_PRIVATE_KEY\": \"your_private_key\"\n      }\n    }\n  }\n}\n```\n\n#### Claude Code\n\n```bash\nclaude mcp add tradernet -- npx -y tradernet-mcp\n```\n\nThen set environment variables `TRADERNET_PUBLIC_KEY` and `TRADERNET_PRIVATE_KEY`.\n\n#### ChatGPT\n\nChatGPT only supports remote MCP servers over HTTP. To connect this stdio server, use [supergateway](https://github.com/supercorp-ai/supergateway) as a bridge and [ngrok](https://ngrok.com) to expose it publicly:\n\n1. Start the server with HTTP transport:\n\n```bash\nTRADERNET_PUBLIC_KEY=your_public_key \\\nTRADERNET_PRIVATE_KEY=your_private_key \\\nnpx -y supergateway --stdio \"npx -y tradernet-mcp\" --outputTransport streamableHttp --port 8000\n```\n\n2. Expose it via ngrok:\n\n```bash\nngrok http 8000\n```\n\n3. In ChatGPT: **Settings → Connectors → Add Connector**, enter your ngrok URL with `/mcp` path (e.g. `https://abc123.ngrok-free.app/mcp`)\n\n> Requires ChatGPT Pro, Team, or Enterprise plan with Developer Mode enabled.\n\n## Usage Examples\n\nOnce connected, you can ask your AI assistant things like:\n\n- \"Show my portfolio\"\n- \"What are my open positions?\"\n- \"Buy 10 shares of AAPL\"\n- \"Set stop-loss for SBER at 250\"\n- \"Search for Tesla stock\"\n- \"Show AAPL price history for the last month\"\n- \"Set an alert when MSFT crosses $400\"\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `TRADERNET_PUBLIC_KEY` | Yes | Your Tradernet API public key |\n| `TRADERNET_PRIVATE_KEY` | Yes | Your Tradernet API private key |\n| `TRADERNET_API_URL` | No | API base URL (default: `https://tradernet.com/api`) |\n\n## API Documentation\n\nThis server implements the [Tradernet API](https://tradernet.com/tradernet-api). For the full API reference, see the [official documentation](https://github.com/tradernet/tn.api).\n\n## License\n\nMIT\n",
  "bytes": 3817,
  "sha": "830857bf8f97f0d0353ae1120b3166082ad89b72312ff901416517a3439b4e64",
  "repo_slug": "verbart/tradernet-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_verbart_tradernet_mcp_server_04aa016b/readme"
}