How to trade with Qwen (Alibaba)
Short answer: Qwen Chat Desktop (Mac/Windows) can add any remote MCP server. In the chat window open MCP → MCP settings → Add MCP, then either Quick Add a StreamableHTTP URL or paste a JSON
mcpServersblock with your OpenFinance API key in headers. MCP is desktop-only — not the web chat. Ask for the BTC price to confirm it works.
MCP URL: https://api.openfinance.tech/agent/mcp · HTTP streamable · works with any MCP client · one URL, no SDK · no KYC · fund with a debit card.
How Qwen connects to tools
Qwen is Alibaba's consumer assistant. The Qwen Chat Desktop app (Mac and Windows, download from qwen.ai/home) supports custom MCP servers; the web chat does not. From the chat window open MCP → MCP settings → Add MCP. There are two add modes: Quick Add (pick StreamableHTTP or SSE and paste a server URL) and JSON (paste an mcpServers block). Quick Add without auth returns 401 against OpenFinance until you add credentials, so prefer the JSON path with npx mcp-remote and an x-api-key header (or Bearer if you use that style). Node.js 20+ is required for the mcp-remote bridge. Prefer the in-app UI over editing settings.json by hand (Electron may overwrite file edits). Parameter/env text areas are reported to have ~1000-character limits when editing, so delete and recreate the entry if a long JWT or key gets truncated. No explicit "no trading" policy was found in the setup guides checked; treat Qwen's own ToS as before publishing.
Set up Qwen in under 60 seconds
- Install Qwen Chat Desktop from https://qwen.ai/home (Mac or Windows) and sign in. MCP is not available in the web chat.
- In the chat window click MCP → MCP settings → Add MCP.
- Prefer JSON. Paste the
mcpServersblock below (replaceopen_xxxxxwith your OpenFinance key). On Windows useC:\\PROGRA~1\\nodejs\\npx.cmdinstead ofnpxif plainnpxfails. - Click Save and Enable. Wait for a green/connected status.
- In chat, ask Qwen for the BTC price through OpenFinance to confirm the tools appear.
{
"mcpServers": {
"openfinance": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.openfinance.tech/agent/mcp",
"--header",
"x-api-key: ${API_KEY}"
],
"env": {
"API_KEY": "open_xxxxx"
}
}
}
}
Get an API key at openfinance.tech (sidebar → External AI). Then fund: open the OpenFinance app, tap Add funds, pay with a debit card, or send crypto to your agent wallet. No brokerage application, no KYC on OpenFinance.
What Qwen can trade through OpenFinance
| Market | What you can do | Examples |
|---|---|---|
| Crypto spot | Buy/sell on Solana, Base and 40+ EVM chains | BTC, ETH, SOL, HYPE |
| Crypto perps with leverage | Long/short on Hyperliquid | BTC 5x, ETH 10x |
| Onchain stocks (spot) | Tokenized stocks, incl. Robinhood Chain | TSLA, NVDA, AAPL |
| Forex | FX tokens onchain and Hyperliquid FX perps | EUR/USD |
| Memecoins | Trending Solana and Base tokens | BONK, WIF, PEPE |
| Prediction markets | Polymarket odds, orders, positions | elections, sports, crypto |
| Options | In the OpenFinance app only, through your connected IBKR or Robinhood account (not through the MCP) | HYPE |
Prompts to try in Qwen
- “Using OpenFinance, what's my balance, and what are BTC, ETH and SOL doing today?”
- “Using OpenFinance, go long BTC 5x with $50 on Hyperliquid and set a stop 4% below entry.”
- “Using OpenFinance, buy $25 of tokenized NVDA and $25 of TSLA.”
- “Using OpenFinance, show the top trending Solana memecoins and buy $10 of the one with the most volume.”
- “Using OpenFinance, what are the Polymarket odds on the next Fed decision? Bet $10 on the favourite.”
OpenFinance vs Alpaca for Qwen users
| OpenFinance | Alpaca | |
|---|---|---|
| KYC | None to start (onramp may verify ID) | Brokerage account application with identity verification |
| Setup | One MCP URL, about 60 seconds | Make an account and create your API key (under a minute) |
| Funding | Debit card onramp, or send crypto | Bank transfer / ACH |
| Markets | Crypto spot + perps, onchain stocks, forex, memecoins, Polymarket | US stocks, ETFs, options, crypto |
| Paper trading | No | Yes |
Alpaca is a regulated US broker with its own MCP server and paper trading, a good fit if you want US-listed shares and listed options. OpenFinance is faster for Qwen: no account approval, one URL, and onchain markets Alpaca doesn't offer (perps, memecoins, Polymarket).
Frequently asked questions
Can Qwen trade crypto? Yes, once OpenFinance is added as an MCP server in Qwen Chat Desktop. Qwen calls OpenFinance's MCP tools to quote, buy, sell and open perps.
Does the Qwen web chat support MCP? No. MCP is available only in the Qwen Chat Desktop app on Mac and Windows, not in the web chat.
Where do I add an MCP server in Qwen? Chat window → MCP → MCP settings → Add MCP. Use Quick Add (StreamableHTTP URL) or paste a JSON mcpServers block.
Should I use Quick Add or JSON? JSON with mcp-remote and an x-api-key header. Quick Add without credentials gets a 401 from OpenFinance.
Do I need Node.js? Yes, Node.js 20+ if you use the mcp-remote bridge in the JSON config. Install it before enabling the connector.