quick-media-mcp
MCP server for screen recording and screenshots, bridging Claude Code with Chrome extensions.
README
quick-media-mcp
MCP server and Chrome extensions for screen recording and screenshots, designed for Claude Code.
Architecture
Claude Code
↓ MCP protocol (stdio)
quick-media-mcp server (Node.js)
↓ WebSocket (localhost:9876)
Chrome Extensions (Quick Video / Quick Screenshot)
↓ getDisplayMedia / captureVisibleTab
Browser
The MCP server is the bridge between Claude Code and the Chrome extensions. Claude calls MCP tools (video_start, screenshot_capture, etc.), the server forwards them to the extensions via WebSocket, and the extensions use Chrome APIs to capture media.
Packages
| Package | Description | npm |
|---|---|---|
packages/server |
MCP server — bridge between Claude Code and extensions | quick-media-mcp |
packages/chrome-video |
Chrome extension — screen/tab recording (WebM, MP4, GIF) | - |
packages/chrome-screenshot |
Chrome extension — screenshots (PNG, JPEG, WebP, GIF) | - |
Prerequisites
- Node.js >= 18
- Google Chrome (or Chromium)
- Claude Code (for MCP integration)
- ffmpeg (optional, for hardware-accelerated encoding detection)
Installation
1. Clone and build
git clone https://github.com/Fowerld/quick-media-mcp.git
cd quick-media-mcp
npm install
npm run build
This builds all three packages:
packages/server/dist/— compiled MCP serverpackages/chrome-video/dist/— video extension ready to loadpackages/chrome-screenshot/dist/— screenshot extension ready to load
2. Load extensions in Chrome
- Open
chrome://extensions - Enable Developer mode (toggle in the top right corner)
- Click Load unpacked → navigate to
packages/chrome-video/dist/→ select the folder - Click Load unpacked → navigate to
packages/chrome-screenshot/dist/→ select the folder
Both extensions should appear in the extensions list. Pin them to the toolbar for easy access.
3. Configure the MCP server for Claude Code
Option A — Local path (recommended for development):
Add to ~/.claude/settings.json:
{
"mcpServers": {
"quick-media": {
"command": "node",
"args": ["/absolute/path/to/quick-media-mcp/packages/server/dist/cli.js"]
}
}
}
Option B — Global install:
cd packages/server
npm install -g .
quick-media-mcp --install
This registers the server in ~/.claude/settings.json automatically. You can verify with quick-media-mcp --help.
Option C — Auto-install script:
quick-media-mcp --install # adds to Claude Code config
quick-media-mcp --uninstall # removes from Claude Code config
4. Connect the extensions
- Open a Chrome tab
- Click the Quick Video (or Quick Screenshot) extension icon
- Enable the MCP toggle in the popup
- The extension badge turns blue when connected to the server
The extensions auto-reconnect every 5 seconds if the server is not running. You can enable MCP mode once and it persists across browser restarts.
5. Verify
In Claude Code, check the connection:
Use the video_status tool to check if the video extension is connected.
Claude should report that the extension is connected and ready.
Usage
MCP tools (via Claude Code)
| Tool | Description | Parameters |
|---|---|---|
video_start |
Start screen recording | resolution (auto/4k/.../240p), format (mp4/webm/gif) |
video_stop |
Stop recording and save | — |
video_status |
Check extension connection | — |
screenshot_capture |
Take a screenshot | format (png/jpeg/webp/gif), quality (1-100), resolution (auto/720p/1080p/4k) |
screenshot_status |
Check extension connection | — |
system_info |
Display GPU/encoder capabilities | — |
All parameters are optional and have sensible defaults.
Keyboard shortcuts
| Shortcut | Action |
|---|---|
Alt+Shift+V |
Start/stop video recording |
Ctrl+Shift+S |
Take a screenshot (toggle preview) |
Standalone usage (without MCP)
Both extensions work without the MCP server for manual capture:
- Quick Video: click the extension icon → configure format/resolution/FPS → hit record
- Quick Screenshot: press
Ctrl+Shift+Sor click the extension icon
Without the MCP server, audio capture is limited to microphone only (no system audio on Linux).
Important notes
First recording requires a user gesture
Chrome requires a user gesture to authorize screen capture (getDisplayMedia). On the first recording of a browser session:
- Claude (or you) triggers
video_start - Chrome shows a picker dialog — you must click to select the tab/window/screen to share
- Subsequent recordings reuse the permission until the service worker resets
This is a Chrome security requirement and cannot be bypassed.
Screen capture permissions (Linux)
On Wayland, you may need to grant screen capture permissions through your compositor. With PipeWire-based compositors (GNOME, KDE), Chrome typically handles this via the portal API.
System audio (Linux)
Chrome's getDisplayMedia does not expose system audio on Linux (unlike Windows/macOS where tab audio is available). The MCP server bridges this gap using PipeWire:
- Requires
pw-recordandffmpeg(native) on the host - The server captures system audio with
pw-record --target=0 - After recording, the server merges video + audio with
ffmpeg - The extension popup shows a "System Audio (PipeWire)" option when the server detects PipeWire
This feature is under active development on the feat/pipewire-audio branch.
File output
Recordings and screenshots are saved to Chrome's Downloads folder. The file path is returned to Claude via the MCP response, so Claude knows exactly where the file is.
GPU and encoder detection
The MCP server auto-detects your GPU at startup and selects the best encoder:
| GPU | Encoder | Max capability |
|---|---|---|
| NVIDIA | h264_nvenc |
4K @ 60fps |
| Intel | h264_qsv / h264_vaapi |
Depends on model |
| AMD | h264_vaapi |
Radeon RX: 4K, others: 1080p |
| None / fallback | libx264 (software) |
720p @ 30fps |
Use system_info in Claude Code to see what was detected on your system.
Development
npm run build # build everything
npm run build:server # build MCP server only
npm run build:video # build video extension only
npm run build:screenshot # build screenshot extension only
For watch mode during development:
# In separate terminals:
cd packages/server && npm run dev # tsc --watch
cd packages/chrome-video && npm run watch # esbuild --watch
After rebuilding an extension, go to chrome://extensions and click the reload button on the extension card (or press Ctrl+R on the card).
Project structure
quick-media-mcp/
├── packages/
│ ├── server/ # MCP server (published to npm)
│ │ ├── src/
│ │ │ ├── server.ts # MCP tools + WebSocket bridge
│ │ │ ├── cli.ts # CLI entry point (start/install/uninstall)
│ │ │ ├── capabilities.ts # GPU detection + resolution presets
│ │ │ └── install.ts # Claude Code settings management
│ │ └── package.json
│ ├── chrome-video/ # Quick Video extension
│ │ ├── src/
│ │ │ ├── background.ts # Service worker, state, MCP WebSocket
│ │ │ ├── offscreen.ts # MediaRecorder (offscreen document)
│ │ │ ├── converter.ts # FFmpeg WASM (WebM → MP4/GIF)
│ │ │ ├── popup.ts/html # Extension popup UI
│ │ │ └── manifest.json
│ │ └── package.json
│ └── chrome-screenshot/ # Quick Screenshot extension
│ ├── src/
│ │ ├── background.ts # Service worker, capture logic, MCP WebSocket
│ │ ├── content.ts # Overlay UI, area selection
│ │ ├── popup.ts/html # Extension popup UI
│ │ └── manifest.json
│ └── package.json
├── docker/ # Docker setup for headless recording
├── package.json # Workspace root
└── README.md
Troubleshooting
Extension badge doesn't turn blue
- Is the MCP server running? Check with
quick-media-mcp --help - Is MCP mode enabled in the extension popup?
- Check Chrome DevTools console (right-click extension icon → Inspect popup → Console) for WebSocket errors
- Verify port 9876 is not in use:
lsof -i :9876
"Permission denied" on first recording
- This is normal — Chrome requires you to click the capture picker dialog at least once per session
- Make sure the browser window is focused when the dialog appears
Build fails with "Missing dependencies"
- Run
npm installfrom the repo root (not from a package subfolder) - npm workspaces hoists dependencies to the root
node_modules/
screenshot_capture returns an error
- Make sure a Chrome tab is active and focused
- The
<all_urls>host permission must be granted (checkchrome://extensions)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。