GuideLast updated

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 mcpServers block 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

  1. Install Qwen Chat Desktop from https://qwen.ai/home (Mac or Windows) and sign in. MCP is not available in the web chat.
  2. In the chat window click MCP → MCP settings → Add MCP.
  3. Prefer JSON. Paste the mcpServers block below (replace open_xxxxx with your OpenFinance key). On Windows use C:\\PROGRA~1\\nodejs\\npx.cmd instead of npx if plain npx fails.
  4. Click Save and Enable. Wait for a green/connected status.
  5. In chat, ask Qwen for the BTC price through OpenFinance to confirm the tools appear.
JSON
{
  "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

MarketWhat you can doExamples
Crypto spotBuy/sell on Solana, Base and 40+ EVM chainsBTC, ETH, SOL, HYPE
Crypto perps with leverageLong/short on HyperliquidBTC 5x, ETH 10x
Onchain stocks (spot)Tokenized stocks, incl. Robinhood ChainTSLA, NVDA, AAPL
ForexFX tokens onchain and Hyperliquid FX perpsEUR/USD
MemecoinsTrending Solana and Base tokensBONK, WIF, PEPE
Prediction marketsPolymarket odds, orders, positionselections, sports, crypto
OptionsIn 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

OpenFinanceAlpaca
KYCNone to start (onramp may verify ID)Brokerage account application with identity verification
SetupOne MCP URL, about 60 secondsMake an account and create your API key (under a minute)
FundingDebit card onramp, or send cryptoBank transfer / ACH
MarketsCrypto spot + perps, onchain stocks, forex, memecoins, PolymarketUS stocks, ETFs, options, crypto
Paper tradingNoYes

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.