qutebrowser-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qutebrowser-mcp take a screenshot of the current tab"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qutebrowser-mcp
MCP (Model Context Protocol) server for qutebrowser browser automation.
Control qutebrowser from Claude Code or any MCP-compatible client.
Note: Linux only. Uses Unix domain sockets and XDG paths.
Features
CDP-First Design - Most tools operate on specific tabs via Chrome DevTools Protocol without changing focus
Tab Management - List, open, close, focus, and move tabs
Navigation - Go to URLs, back/forward, reload — all targetable to specific tabs
Screenshots - Capture any tab without switching to it
JavaScript Execution - Run JS in any tab and get return values
Authenticated Fetch - Make HTTP requests through the browser's logged-in sessions (cookies or Bearer tokens)
Bookmarks & History - Access bookmarks, quickmarks, and browsing history
Related MCP server: camofox-browser-mcp
CDP Setup (Recommended)
Most tools use Chrome DevTools Protocol to operate on tabs without changing focus. Enable remote debugging via environment variable:
QTWEBENGINE_REMOTE_DEBUGGING=9222 qutebrowserWithout CDP, tools fall back to IPC which operates on the currently focused tab and may cause tab switches.
Installation
npm install
npm run buildUsage
With Claude Code
Add to your ~/.claude.json:
{
"mcpServers": {
"qutebrowser": {
"command": "node",
"args": ["/path/to/qutebrowser-mcp/dist/index.js"]
}
}
}Run Directly
npm startAvailable Tools
CDP-Enabled Tools
These accept an optional tab parameter (URL or title substring) to target a specific tab via CDP without changing focus. Without tab, they fall back to IPC on the focused tab.
Tool | Description |
| List all tabs with indices, URLs, titles, active state (session file + CDP enrichment) |
| Close a tab by URL/title match (CDP) or by index (IPC) |
| Navigate a tab to a URL |
| Navigate back in history |
| Navigate forward in history |
| Reload a page |
| Capture a page as PNG |
| Run JavaScript and return the result (CDP) or fire-and-forget (IPC) |
IPC-Only Tools
These use qutebrowser's Unix domain socket for features CDP can't provide.
Tool | Description |
| Open a new background tab |
| Switch focus to a tab by index (intentionally changes focus) |
| Move the current tab to a new position |
| List bookmarks |
| List quickmarks |
| Search browsing history |
CDP-Only Tools
These always require CDP and a tab parameter.
Tool | Description |
|
|
| Capture auth headers from network traffic, make server-side requests |
browser_fetch vs browser_fetch_auth
browser_fetchrunsfetch()inside the tab's page context. Best for cookie-based auth (same-origin requests).browser_fetch_authintercepts Bearer tokens from the tab's network traffic, then makes the request server-side. Best for token-based auth (e.g. Outlook, which uses MSAuth tokens injected by JavaScript).
How It Works
The server communicates with qutebrowser through two channels:
CDP (Chrome DevTools Protocol WebSocket) - Primary channel. Bidirectional communication for JS evaluation, navigation, screenshots, tab close, reload, and network interception. Operates on specific tabs without changing focus.
IPC (Unix domain socket) - Secondary channel. Fire-and-forget commands for qutebrowser-specific features (tab open, focus, move, bookmarks, session save).
State is read from:
Session file (
~/.local/share/qutebrowser/sessions/_autosave.yml) - Tab indices, active state, pinned stateCDP targets - Fresh tab titles and URLs
SQLite database (
~/.local/share/qutebrowser/history.sqlite) - Browsing historyConfig files (
~/.config/qutebrowser/) - Bookmarks and quickmarks
Requirements
Linux (uses Unix domain sockets for IPC)
Node.js 18+
qutebrowser running with IPC enabled (default)
Recommended: qutebrowser started with
QTWEBENGINE_REMOTE_DEBUGGING=9222for CDP support
Respects XDG environment variables (XDG_DATA_HOME, XDG_CONFIG_HOME, XDG_RUNTIME_DIR) with standard fallbacks, so it should work across most Linux distributions.
License
MIT
Available Tools
16 toolsbrowser_fetchA
Make an authenticated HTTP request through a browser tab's session. Runs fetch() inside the page context of a tab matching the given domain, inheriting all cookies and auth tokens. Returns the response body.
Inputs: tab (required), url (required), body, method, +1 more.
browser_fetch_authA
Make an authenticated HTTP request using auth headers captured from a browser tab's network traffic. Reloads the tab to intercept fresh auth tokens, then makes the request server-side. Works for sites like Outlook that use Bearer tokens rather than cookies.
Inputs: tab (required), url (required), body, method, +2 more.
close_tabA
Close a tab by URL/title match via CDP (no focus change). Falls back to IPC index-based close.
Inputs: tab, index.
execute_jsA
Execute JavaScript in a page. If 'tab' is specified, uses CDP to run in that tab and return the result (no focus change). Without 'tab', uses IPC on the current tab (fire-and-forget, no return value).
Inputs: code (required), tab, quiet.
focus_tabA
Switch to a specific tab by index (IPC only — this intentionally changes focus)
Inputs: index (required).
get_bookmarksA
List all bookmarks saved in qutebrowser
Inputs: no named parameters.
get_quickmarksA
List all quickmarks (named bookmarks) in qutebrowser
Inputs: no named parameters.
go_backA
Navigate back in browser history. If 'tab' is specified, operates on that tab via CDP without changing focus.
Inputs: tab, count.
go_forwardA
Navigate forward in browser history. If 'tab' is specified, operates on that tab via CDP without changing focus.
Inputs: tab, count.
list_tabsA
List all open tabs with indices, URLs, titles, and active state. Uses CDP for fresh title/URL data enriched with session file indices, falling back to session file only.
Inputs: no named parameters.
move_tabA
Move the current tab to a new position (IPC only)
Inputs: position (required).
open_tabA
Open a new tab with the specified URL. Always opens in background (no focus change).
Inputs: url (required).
reload_pageA
Reload a page. If 'tab' is specified, reloads that tab via CDP without changing focus.
Inputs: tab, force.
screenshotA
Take a screenshot of a page. If 'tab' is specified, uses CDP to capture that specific tab without switching focus. Otherwise captures the currently focused tab via IPC.
Inputs: filename (required), tab, rect.
search_historyA
Search browsing history by URL or title
Inputs: limit, query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose: tab management, navigation, bookmarks/history, and fetch operations are all separate. Even the two fetch tools are differentiated by their auth mechanisms, and navigation tools like navigate, go_back, go_forward, and reload_page target different actions.
All tools follow a consistent lowercase snake_case verb_noun pattern (e.g., list_tabs, open_tab, close_tab, search_history). Even the phrasal go_back and go_forward fit the pattern, and browser_fetch/browser_fetch_auth are verb_noun compound names that remain consistent.
At 16 tools, the set is slightly over the ideal 3-15 range, but each tool serves a distinct function and covers a broad browser automation domain. The additional fetch and auth tools justify the count without feeling redundant.
The server covers core tab lifecycle, navigation, bookmarks/quickmarks, history search, screenshots, JS execution, and authenticated fetching. Minor gaps like missing tab pinning or direct URL retrieval are workable around via list_tabs, so the surface is strong overall.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
MCP server to assist with JxBrowser development.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for browser automation, exposing tools for tab management, navigation, CDP, action plans, and cleanup.1,059 npm421MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for controlling a local camofox-browser instance, enabling LLM agents to perform web automation tasks such as navigation, interaction, snapshotting, and content extraction.92 npmMIT
- AlicenseAqualityDmaintenanceMCP server for controlling Chromium/Chrome via Chrome DevTools Protocol. Supports cross-platform automation, auto-launch, and automatic reconnection.251MIT
- AlicenseAqualityDmaintenanceSelf-hosted MCP server for AI browser automation. Connects to your own Chromium instance via CDP, providing tools for browser control, navigation, interaction, and content extraction.191MIT