qjtrader-mcp
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qjtrader-mcpPlace a simulated buy order for 1 CRAU26 at 97.00"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qjtrader-mcp
Model Context Protocol server for the QJ Trader AI Trading APIs. Point your LLM at your QJ credential and it can watch live Canadian market data and place simulated orders — no code, no manual API testing.
Built on the official qjtrader Python SDK. Talk to
it from Claude Code, Claude Desktop, or any MCP-capable client:
"Subscribe to CA:RY and MX:CRAU26, show me the books, then buy 1 CRAU26 at 97 in the sandbox and tell me the fill."
Safety model — AI trades simulated by default
Order-mutating tools (place_order, cancel_order, replace_order, cancel_all) run against a
sandbox credential by default and return simulated fills. A live credential is refused
unless you explicitly opt in. The server never sniffs this off the wire (the protocol doesn't
expose it) — you declare it:
| Read tools (quotes/depth/status) | Order tools |
| ✅ | ✅ simulated |
| ✅ | ⛔ unless |
(unset) | ✅ | ⛔ (fail-safe: unknown is treated as live) |
Every tool result is prefixed with an environment tag ([SANDBOX] / [LIVE — REAL MONEY] /
[ENV UNKNOWN]), and order quantity is capped client-side by QJ_MCP_MAX_QTY (default 25).
Related MCP server: Aster MCP Server
Install
Get a free sandbox credential (no approval) at console.qjtrader.ai.
Once published to PyPI, the zero-install path is:
uvx qjtrader-mcp # or: pipx run qjtrader-mcpUntil then (or for local development against the SDK checkout):
# from the qjtrader-mcp/ directory, with the qjtrader-python sibling checked out:
uv sync && uv run qjtrader-mcp # uv resolves qjtrader from ../qjtrader-python
# — or with pip —
pip install -e ../qjtrader-python -e .
qjtrader-mcpConfigure your client
Claude Code
claude mcp add qjtrader -- uvx qjtrader-mcp
# then set the credential + environment for the server:
claude mcp add qjtrader \
-e QJ_CLIENT_ID=your-client-id \
-e QJ_CLIENT_SECRET=your-client-secret \
-e QJ_ENV=sandbox \
-- uvx qjtrader-mcpClaude Desktop / generic stdio
Add to your MCP config (claude_desktop_config.json or equivalent):
{
"mcpServers": {
"qjtrader": {
"command": "uvx",
"args": ["qjtrader-mcp"],
"env": {
"QJ_CLIENT_ID": "your-client-id",
"QJ_CLIENT_SECRET": "your-client-secret",
"QJ_ENV": "sandbox"
}
}
}
}The console's "Connect your AI" panel generates these blocks pre-filled, including
QJ_ENV=sandbox.
Tools
Tool | Kind | Description |
| read | Environment, whether order actions are allowed, endpoints, authenticated user. Call first. |
| read | Top-of-book (best bid/ask) for one or more symbols |
| read | Level-2 order book for a symbol (venue-tagged on consolidated books) |
| read | Sample the live stream for a bounded window; returns a digest + last messages |
| read | Open orders + session state |
| write | Submit a limit order and wait for a terminal state |
| write | Cancel a working order by |
| write | Amend a working order's qty/price |
| write | Cancel every working order (kill switch) |
| util | Parse/explain a symbol (prefix + root + venue), offline |
| read | Order journal — cross-order event history; post-trade analysis & strategy debugging |
| read | Historical OHLCV bars (1s/1m); sandbox = deterministic synthetic days |
| read | Server digest for a symbol: VWAP, spread, volume, realized vol (a digest, not a dump) |
| read | Options chain snapshot for an underlying/expiry (latest or historical) |
| read | Rank a digest metric (vwap/volume/realized_vol/spread_mean) across symbols |
The read_*/get_* research tools make the LLM a quant developer: analyse the
market and debug the strategy it wrote, without touching the production order path.
Configuration reference
Env var | Purpose | Default |
| credential | — (required) |
|
| unset → treated as live |
| set | off |
| client-side max order quantity |
|
| endpoint overrides | public QJ hosts |
| pin a CA/cert (pilot order endpoint) | none |
License
Apache-2.0. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/QJTrader/qjtrader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server