npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

qwen-omni-mcp

v0.3.1

Published

MCP server for video/image/audio understanding via Bailian (DashScope) Qwen3.8-Max + Qwen3.5-Omni

Downloads

440

Readme

qwen-omni-mcp

An MCP server that gives Claude Code and other AI agents video, image, audio, and audio-video understanding via Bailian (DashScope) using the multimodal Qwen3.8-Max and Qwen3.5-Omni models.

Qwen3.8-Max reads video natively — no client-side frame extraction. Qwen3.5-Omni adds native audio understanding (and audio-track awareness for video). Pass a public media URL or a local file path; the model does the rest. The server also ships MCP instructions that teach text-only agents to reach for these tools when they need to view/read media — while telling natively multimodal agents to prefer their own vision.

Highlights

  • Native video understanding — send a video URL or local file, get grounded analysis
  • Image understanding — describe, Q&A, OCR; doubles as the "eyes" for text-only agents whose file reader can't display images
  • Audio understanding — transcribe, summarize, analyze speech/sound (mp3/wav/flac/ogg/m4a/aac)
  • Audio-video understanding — analyze a video's visuals and its sound track together
  • Thinking control — optional per-call thinking_budget on every media tool; omitted = provider default
  • Local file support — pass a local path; files are sent inline as base64 (25MB guardrail)
  • npx-launchable — one line in your MCP client config

Install

No global install needed. Run directly with npx:

npx -y qwen-omni-mcp

For local development:

git clone <this-repo>
cd qwen-omni-mcp
npm install            # also installs husky git hooks
cp .env.example .env   # fill in DASHSCOPE_API_KEY
npm run dev            # run from source via tsx

Configuration

All config is via environment variables (loaded from .env by dotenv):

| Variable | Required | Default | Description | | ---------------------- | -------- | --------------------------------------------------- | ----------------------------------- | | DASHSCOPE_API_KEY | yes | — | Bailian API key | | QWEN_MODEL | no | qwen3.8-max | Model id for video/image analysis | | QWEN_OMNI_MODEL | no | qwen3.5-omni-plus | Omni model id for audio/audio-video | | DASHSCOPE_BASE_URL | no | https://dashscope.aliyuncs.com/compatible-mode/v1 | OpenAI-compatible endpoint | | QWEN_REQUEST_TIMEOUT | no | 300 | Per-request timeout in seconds |

Get a key at https://bailian.console.aliyun.com/cn-beijing?tab=model#/api-key.

The Anthropic-compatible /apps/anthropic endpoint does not support video input, so this server uses the OpenAI-compatible endpoint.

Use with Claude Code

Add to your MCP client config:

{
  "mcpServers": {
    "qwen-omni-mcp": {
      "command": "npx",
      "args": ["-y", "qwen-omni-mcp"],
      "env": {
        "DASHSCOPE_API_KEY": "your-key"
      }
    }
  }
}

For local development without publishing:

{
  "mcpServers": {
    "qwen-omni-mcp": {
      "command": "npx",
      "args": ["tsx", "src/index.ts"],
      "env": { "DASHSCOPE_API_KEY": "your-key" }
    }
  }
}

Tools

| Tool | Description | | ----------------------- | --------------------------------------------------------------------- | | analyze_video | Analyze a video (URL or local file) with a custom prompt | | analyze_image | Analyze an image (URL or local file) with a custom prompt | | analyze_audio | Analyze an audio file (URL or local) with a custom prompt (Omni) | | analyze_audio_video | Analyze a video's visuals + sound (URL or local) with a prompt (Omni) | | check_endpoint_status | Show configured endpoint/model (key redacted) |

Each media tool accepts a public http/https URL or a local file path. Local files are read and sent inline as base64, with a 25MB guardrail (verified up to a 14MB video / ~18MB body on Qwen3.7-Plus, and an 8.8MB video / ~11.7MB base64 body on Qwen3.5-Omni, both HTTP 200). Files larger than 25MB must be hosted at a public URL instead. Local input is validated by extension + magic-byte signature before encoding, so non-media files are rejected.

Each media tool also accepts an optional thinking_budget (positive integer): the maximum tokens the model may spend thinking before answering. Omit it to use the provider default (thinking on at full budget for Qwen3.8 hybrid-thinking models). Thinking tokens are billed but do not count against max_tokens, which limits the answer itself.

analyze_audio / analyze_audio_video use the omni model (QWEN_OMNI_MODEL, default qwen3.5-omni-plus) and force text-only output. Audio is sent as an input_audio block in the data:;base64,<b64> form with a format field (mp3/wav/flac/ogg/m4a/aac).

Development

npm run typecheck     # strict tsc
npm run lint          # eslint, --max-warnings 0
npm run format:check  # prettier
npm test              # unit + mocked e2e (no API cost)
npm run build         # emit dist/
LIVE=1 npm run test:live   # real API calls (costs tokens)

CI (.github/workflows/ci.yml) runs the same gates on Node 20/22. secrets-scan.yml runs gitleaks. smoke-live.yml (manual / weekly) runs one real image call.

See AGENTS.md for the full set of agent rules (never bypass hooks, never commit secrets, etc.).

License

MIT