mcp-qmedia

mcp-qmedia

Enables text-only AI agents to ask questions about images, audio, and video by passing file paths or URLs to a multimodal model and returning text answers.

Category
Visit Server

README

mcp-qmedia

Self-written MCP server that lets text-only agents ask questions about media — images, audio, video. The agent passes file paths (or URLs) plus a question and gets the answer as text. Used from both opencode and Claude Code.

It is a thin client of mcp-caption (the captioning service on :8937). That service owns the models, the API keys, the ffmpeg handling and the caption queue the chat daemons share. This process only speaks MCP on stdio and HTTP to loopback — 148 lines, no keys, no web page.

It used to carry all of that itself, alongside mcp-signal and signal-backup-merge carrying their own copies. One place to configure a model beats three.

Tools (prefix qmedia_ in opencode, mcp__qmedia__ in Claude Code)

  • ask(files, question, backend="", system="") — the main tool. files is a list of absolute local paths (~/… ok; this is a shared daemon, its cwd is not your project) or http(s):// URLs; several files in one call so the model can relate them. Returns a short header ([openrouter · mimo-v2.5/xiaomi/mimo-v2.5 · 1 file(s) · 11.1s] + per-file type/size) and the answer.
  • describe(files, backend="") — no question needed: thorough description; images incl. all visible text verbatim, audio as verbatim transcript, video scene-by-scene with timestamps.
  • backends() — the models available for these tools, which is default, and whether a key resolves for each (never prints a key).

Permission: all three are read-only and cheap → allow in both agents. Note they upload the given files to a configured provider (a paid API by default), so an allow-list wildcard means an agent can do that without asking, plan mode included.

These tools always call a model. They do not answer from the captioning service's archive, even when the file is in it: those captions are two searchable lines, while ask/describe are asked for everything, verbatim. Different question, different call.

Configuration

There is none here worth the name. Models, API keys, ffmpeg presets and limits all belong to the captioning service — open http://127.0.0.1:8937/, Models tab (mcp-qmedia ui just prints that URL now). The service re-reads its store on every call, so changes apply immediately.

var default meaning
QMEDIA_SERVICE http://127.0.0.1:8937 where the captioning service lives
QMEDIA_TIMEOUT 600 how long to wait for an answer (it may transcode a large video first)
MCP_QMEDIA_PYTHON .venv/bin/python in the checkout launcher: interpreter override
MCP_QMEDIA_ENV ~/.config/mcp-qmedia/env launcher: settings file to source (optional)

If the service is down, every tool says so and names the unit to start: systemctl --user start mcp-caption.

Setup

Layout: server.py (stdio MCP server), deploy/bin/mcp-qmedia (launcher), deploy/env.example. No systemd unit: on one machine with several agent sessions, run it once via mcp-proxy (ai-agent-setup's mcp-bridge.service) or let each client spawn it. Wire it in with symlinks so a git pull updates the machine.

git clone git@github.com:spookysys/mcp-qmedia.git ~/.local/src/mcp-qmedia
cd ~/.local/src/mcp-qmedia
uv venv .venv --python 3.14 && uv pip install --python .venv/bin/python -r requirements.txt
ln -s "$PWD/deploy/bin/mcp-qmedia" ~/.local/bin/

It needs mcp-caption running (systemctl --user status mcp-caption); that is where ffmpeg and the API keys live now.

opencode (opencode.jsonc):

"qmedia": { "type": "local", "command": ["/home/YOU/.local/bin/mcp-qmedia"], "enabled": true }
// or, shared through mcp-bridge: { "type": "remote", "url": "http://127.0.0.1:8939/servers/qmedia/mcp" }
// permission: "qmedia_*": "allow"

Claude Code (user scope):

claude mcp add -s user qmedia --transport stdio -- ~/.local/bin/mcp-qmedia
# or, shared through mcp-bridge: claude mcp add -s user qmedia --transport http http://127.0.0.1:8939/servers/qmedia/mcp
# settings.json permissions.allow: "mcp__qmedia__*"

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured