Qwen 2 MCP logo

Qwen 2 MCP

Runs Qwen 2 image-generation and image-editing tasks through RunAPI, with polling and pricing lookup over MCP.

Install Qwen 2 MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "qwen-2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/qwen-2-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env RUNAPI_API_KEY=YOUR_VALUE_HERE --transport stdio qwen-2-mcp -- npx -y @runapi.ai/qwen-2-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

qwen-2-mcp connects MCP-compatible assistants to RunAPI’s Qwen 2 image endpoints for text-to-image and image-editing tasks. Agents can submit asynchronous jobs, optionally wait for completion, retrieve task status, and receive output URLs. The server also exposes current model and endpoint pricing without authentication. Use it when an assistant should access Qwen 2 without loading the broader RunAPI model catalog.

Use cases

  • Generate images from text through RunAPI
  • Edit images with the Qwen 2 editing endpoint
  • Submit asynchronous image jobs and poll their status
  • Check Qwen 2 pricing before creating a task

Key features

  • Qwen 2 text-to-image task creation
  • Qwen 2 image-editing task creation
  • Optional waiting for terminal task status
  • Task status and payload retrieval
  • Unauthenticated pricing lookup
  • Standard MCP stdio configuration

Tools5

What Qwen 2 MCP lets your agent do. Expand a tool for its parameters.

Verified live~877 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 88d

What it can do

From the 5 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age131 days
Maintainers1

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @runapi.ai/qwen-2-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads803Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Qwen 2 MCP works

What qwen-2-mcp does

qwen-2-mcp exposes RunAPI’s Qwen 2 model line through the Model Context Protocol. It focuses on two image operations: generating an image from text and editing an existing image. The server supports the qwen-2-text-to-image and qwen-2-edit-image model variants.

Alongside task creation, the server provides task lookup and pricing inspection. A completed or polled task can return its identifier, state, latest payload, and output URLs. Pricing lookup is available without signing in, which lets an agent inspect cost before submitting an authenticated job.

This per-model package is intended for assistants that need Qwen 2 specifically. RunAPI also offers a separate broader MCP package for agents that need to discover other model lines.

How it works

The server communicates with MCP hosts over standard input/output. Hosts start the package with npx, and agents invoke the exposed tools as needed. Image requests create asynchronous RunAPI tasks rather than requiring the operation to finish during submission.

edit_image and text_to_image can optionally wait for a terminal task state. When waiting is disabled, the create operation returns the task ID so the agent can continue later with get_task. That lookup tool fetches the current status and most recent task payload.

The available model is tied to the operation: image editing uses qwen-2-edit-image, while text-to-image requests use qwen-2-text-to-image. Model availability may change, so check_pricing or the Qwen 2 model page can be used to inspect the current catalog.

Setup and configuration

For Claude Code, install the server with:

Terminal
claude mcp add qwen-2 -s user -- npx -y @runapi.ai/qwen-2-mcp

Project scope can be selected instead when the MCP configuration should be associated with a repository. Other compatible hosts can use the same stdio command through an MCP configuration:

config.json
{
  "mcpServers": {
    "qwen-2": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/qwen-2-mcp"]
    }
  }
}

Authentication is resolved from RUNAPI_API_KEY first, then from ~/.config/runapi/config.json. The configuration file may be created through the RunAPI login flow or runapi login; a headless setup can provide an object containing an apiKey value. Keep real credentials out of source control. Pricing requests work without a key, while task creation and status retrieval require authentication.

Tools and capabilities

  • edit_image: Starts a Qwen 2 image-editing task and can wait for a terminal result.
  • text_to_image: Starts a Qwen 2 text-to-image task and can wait for a terminal result.
  • get_task: Retrieves the current state and latest payload for an existing task.
  • check_pricing: Looks up pricing for a Qwen 2 model and endpoint without authentication.

The task tools return IDs, statuses, and output URLs where available. Agents can first inspect pricing, submit a task without waiting, and poll it later.

Limitations and notes

The package is limited to the Qwen 2 model line and its two documented image endpoints. It does not provide the complete RunAPI catalog. Authentication is required for creating tasks and checking their progress, and asynchronous jobs may require a later get_task call when submitted without waiting. Model availability and pricing can change between releases, so agents should query pricing when current catalog information matters.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Qwen 2 MCP

qwen-2-mcp is an MCP server that connects AI assistants to RunAPI’s Qwen 2 image endpoints. Its main tools create text-to-image and image-editing tasks, retrieve task status and payloads, and check current model pricing. Tasks can return IDs, statuses, and output URLs.

Install it with `npx -y @runapi.ai/qwen-2-mcp` in your MCP host configuration. Claude Code users can run `claude mcp add qwen-2 -s user -- npx -y @runapi.ai/qwen-2-mcp`; other hosts can use the same stdio command.

Set `RUNAPI_API_KEY` for headless or CI use, or use the RunAPI login flow to save credentials in `~/.config/runapi/config.json`. Task creation and status polling require authentication, while `check_pricing` works without a key.

Yes, qwen-2-mcp works with Cursor through its standard stdio MCP configuration. Add an entry that starts `npx` with `-y @runapi.ai/qwen-2-mcp`; the same command is also documented for Windsurf, VS Code, Roo Code, Codex, and other MCP hosts.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewQwen 2 MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/qwen-2-mcp?style=directory)](https://allmcps.com/mcp/qwen-2-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/qwen-2-mcp"><img src="https://allmcps.com/api/badge/qwen-2-mcp?style=directory" alt="Qwen 2 MCP on AllMCPs" /></a>