

How to Use Qwen Code with the 2Slides MCP Server (2026 Guide)
Quick answer (≤60 words): Alibaba's Qwen Code CLI can generate real PowerPoint files via the 2Slides MCP server. Get a key at 2slides.com/api, then add a
entry tomcpServers—~/.qwen/settings.json,command: "npx",args: ["2slides-mcp"]for stdio, orenv.API_KEYfor Streamable HTTP. Or runhttpUrl: "https://2slides.com/api/mcp?apikey=KEY". Then ask Qwen to build a deck.qwen mcp add
Qwen Code is Alibaba's open-source terminal coding agent (a fork of Gemini CLI), tuned for the Qwen model family. It is a native Model Context Protocol (MCP) client, so connecting the 2Slides MCP server lets Qwen Code turn a brief — or a file in your repo — into a finished, editable
.pptxThis guide gives the exact
~/.qwen/settings.jsonqwen mcp addWhy connect Qwen Code to 2Slides?
Qwen Code reasons over code and content but doesn't emit binary slide files. The 2Slides MCP server is the generator that does:
- Qwen Code reads your source, plans the deck, and writes the copy — strong on both English and Chinese content.
- The 2Slides MCP server renders the real PowerPoint — theme-based Fast PPT, or image-designed slides with optional AI narration and an exportable bundle.
2Slides supports 20 output languages including Simplified and Traditional Chinese, so a Qwen-planned, Chinese-language deck renders with correct CJK line-breaking.
What you need first
- Qwen Code installed (on your PATH).
qwen - A 2Slides API key from 2slides.com/api.
- Node.js for the stdio transport (). The HTTP transport needs nothing local.
npx 2slides-mcp
Stdio vs Streamable HTTP: which transport?
Both expose the same tools; the difference is the config key.
| Stdio (local) | Streamable HTTP (remote) | |
|---|---|---|
| Config key | commandargsenv | httpUrl |
| Local Node.js | Required | Not required |
| Best for | Local dev | Remote/CI, thin setups |
Key name matters: Qwen Code (like Gemini CLI) uses
for Streamable HTTP andhttpUrlfor legacy SSE. Useurlfor the 2Slides Streamable HTTP endpoint.httpUrl
Method 1: stdio in settings.json
Qwen Code reads
~/.qwen/settings.json.qwen/settings.jsonmcpServers{ "mcpServers": { "2slides": { "command": "npx", "args": ["2slides-mcp"], "env": { "API_KEY": "YOUR_2SLIDES_API_KEY" } } } }
env$VAR_NAMEMethod 2: Streamable HTTP in settings.json
For the hosted endpoint, use
httpUrl{ "mcpServers": { "2slides-remote": { "httpUrl": "https://2slides.com/api/mcp?apikey=YOUR_2SLIDES_API_KEY" } } }
Optional header auth:
"headers": { "Authorization": "Bearer YOUR_2SLIDES_API_KEY" }Or use the qwen mcp add command
qwen mcp add# stdio qwen mcp add -e API_KEY=YOUR_2SLIDES_API_KEY 2slides npx 2slides-mcp # Streamable HTTP qwen mcp add --transport http 2slides-remote "https://2slides.com/api/mcp?apikey=YOUR_2SLIDES_API_KEY"
Related commands:
qwen mcp listqwen mcp remove <name>qwen mcpVerify the connection
Inside an interactive
qwen/mcp
It displays connection status, config details, and the discovered tools per server. Use
/mcp authGenerate your first deck
Just ask — in English or Chinese:
读取 ./季度总结.md,生成一个 10 页的季度业务回顾。 先从 2slides 搜索一个简洁的商务主题,再生成 PowerPoint, 最后把下载链接给我。
Qwen Code runs
themes_searchslides_generateresponseLanguage: "Simplified Chinese"downloadUrlslides_create_pdf_slidesjobs_getThe 2Slides MCP tool surface
| Tool | What it does | Credits |
|---|---|---|
themes_search | Find a themeId | Free |
slides_generate | Theme-based PowerPoint (Fast PPT), sync/async | 10 / page |
slides_create_pdf_slides | Custom image-designed slides from text (Nano Banana) | 100 / page (1K/2K), 200 (4K) |
slides_create_like_this | Slides matching a reference image's style | 100 / page (1K/2K), 200 (4K) |
slides_generate_narration | Add AI voice narration to a Nano Banana job | 210 / page |
slides_download_pages_voices | Export pages + audio as a ZIP | Free |
jobs_get | Poll an async job to completion | Free |
Common mistakes and troubleshooting
- Used for Streamable HTTP. Qwen Code treats
urlas SSE. Useurlfor the 2Slides Streamable HTTP endpoint.httpUrl - Server DISCONNECTED in . Verify the API key; for stdio confirm Node.js is present.
/mcp - Tools missing after edit. Restart the session, or re-run .
qwen mcp add - Expecting a from Qwen alone. It plans the deck; 2Slides renders the file.
.pptx - Wrong output language. Set the deck language explicitly so CJK content renders correctly (Qwen passes to
responseLanguage).slides_generate
Frequently asked questions
Does Qwen Code support MCP servers?
Yes. Qwen Code is an MCP client (forked from Gemini CLI). Configure servers under
mcpServers~/.qwen/settings.jsonqwen mcp addWhat's the config key for a Streamable HTTP server?
httpUrlurlhttpUrlIs Qwen Code good for Chinese-language decks?
Yes — Qwen models have strong Chinese coverage, and 2Slides supports Simplified and Traditional Chinese output with proper CJK rendering. The pairing is well suited to bilingual and Chinese business decks.
Does it produce a real PowerPoint?
Yes —
slides_generate.pptxWhere do I get the key and config?
At 2slides.com/api?tab=mcp: your key, a copy-paste config, and the Streamable HTTP endpoint.
The takeaway
One
entry —mcpServersfor local,commandfor remote — turns Qwen Code into a slide generator, in English or Chinese. Verify withhttpUrl, then just ask./mcp
For the wider picture, see how MCP is changing presentation workflows and the PowerPoint MCP server ecosystem map. Using another agent? See Gemini CLI, Claude Code, and OpenAI Codex with the same server.
Get your key and config at 2slides.com/api?tab=mcp and generate your first Qwen-built deck today.
Sources:
About 2Slides
Create stunning AI-powered presentations in seconds. Transform your ideas into professional slides with 2slides AI Agent.
Try For Free