- Home
- MCP servers
- Tradernet
Tradernet
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"verbart-tradernet-mcp": {
"command": "npx",
"args": [
"-y",
"tradernet-mcp"
],
"env": {
"TRADERNET_API_URL": "https://tradernet.com/api",
"TRADERNET_PUBLIC_KEY": "your_public_key",
"TRADERNET_PRIVATE_KEY": "your_private_key"
}
}
}
}You set up and run the Tradernet MCP Server to enable AI assistants to securely access your Tradernet or Freedom24 trading data and actions. This server exposes tools to view accounts, manage portfolios, place and manage orders, get quotes, search tickers, and set price alerts, all through your preferred MCP clients.
How to use
Install and run the MCP server alongside your MCP client. You will provide your Tradernet API keys to authorize access. Once running, you connect your MCP client to the Tradernet MCP endpoint, then issue natural language requests like showing your portfolio, checking open positions, placing orders, or setting price alerts. The server translates those requests into Tradernet API calls and returns results to your assistant.
How to install
Prerequisites: ensure you have a supported runtime environment for MCP servers, typically Node.js and npm or npx installed on your system.
If you plan to use the stdio-based MCP server via the Tradernet package, you will run commands that invoke npm tools directly. The following practical setup steps reflect the available configurations.
{
"mcpServers": {
"tradernet": {
"command": "npx",
"args": ["-y", "tradernet-mcp"],
"env": {
"TRADERNET_PUBLIC_KEY": "your_public_key",
"TRADERNET_PRIVATE_KEY": "your_private_key"
}
}
}
}
Additional configuration and setup
There are multiple ways to connect your MCP client to Tradernet depending on your workflow.
Configure in Claude Desktop using a local MCP entry to run the Tradernet MCP server in your environment.
Configure in ChatGPT by running a bridge that exposes the MCP over HTTP, then connect the ChatGPT connector to the public URL.
# Claude Desktop example (as JSON configuration)
{
"mcpServers": {
"tradernet": {
"command": "npx",
"args": ["-y", "tradernet-mcp"],
"env": {
"TRADERNET_PUBLIC_KEY": "your_public_key",
"TRADERNET_PRIVATE_KEY": "your_private_key"
}
}
}
}
# ChatGPT bridge example (HTTP transport via a stdio server)
TRADERNET_PUBLIC_KEY=your_public_key \
TRADERNET_PRIVATE_KEY=your_private_key \
npx -y supergateway --stdio "npx -y tradernet-mcp" --outputTransport streamableHttp --port 8000
- If you opt to expose the MCP endpoint publicly with a tunnel, you can use a service like ngrok to forward port 8000 and provide the public URL to your ChatGPT connector settings.
## Security and keys
Keep your Tradernet API keys secure. Do not share your public or private keys. Configure access only for trusted MCP clients and update keys if you suspect any compromise.
## Tools and actions available
The Tradernet MCP Server exposes a set of actions to manage your trading activity and retrieve data. You can perform account inquiries, view portfolios, place and cancel orders, manage risk via stop-loss and take-profit settings, retrieve security details and quotes, search tickers, and manage price alerts.
## Environment variables
The server requires your Tradernet API keys to operate. You should set the following environment variables in your MCP client configuration or startup command.
## API access notes
This MCP server provides programmatic access to Tradernet APIs through your MCP client. Use secure channels for any HTTP exposure and limit access to trusted automation tools.
## Troubleshooting
If you cannot connect, verify that your API keys are correct, the MCP server process is running, and the client is configured to point to the correct local or bridged endpoint. Check environment variable propagation in your shell or IDE, and ensure no firewall rules block localhost or exposed URLs.
## Available tools
### get\_user\_data
Fetch account information, portfolio summary, and open positions.
### get\_portfolio
Retrieve current positions, balances, and profit/loss data.
### place\_order
Place buy, sell, short, or margin orders against your portfolio.
### cancel\_order
Cancel an active order in your trading account.
### set\_stop\_loss\_take\_profit
Set stop-loss and take-profit levels for a position.
### get\_security\_info
Get details about a security, including currency, exchange, and minimum price step.
### get\_quotes\_history
Return historical OHLCV candlestick data for a security.
### search\_tickers
Search securities by name or symbol.
### add\_price\_alert
Create a price alert with notifications.
### delete\_price\_alert
Remove an existing price alert.
### get\_security\_sessions
List open trading sessions for a security.
### raw\_api\_call
Directly call any Tradernet API command.