Quey is available on desktop

MCP setup

Quey exposes browser captures to coding agents through the Model Context Protocol. Register the MCP server with your agent so it can read captures, make edits, and stream results back.

Register with your agent

If you ran quey init during setup and said yes when it asked about registering an agent, this is already done. Otherwise, use the quey mcp add command to auto-register, or add the entry to .mcp.json manually:

terminalbash
quey mcp add

Or manually create .mcp.json at your project root:

.mcp.jsonjson
{  "mcpServers": {    "quey": {      "command": "npx",      "args": ["-y", "@quey/mcp", "server"]    }  }}
Note
Claude Code auto-detects .mcp.json when it exists in the project root — no additional setup needed.
Cursor respects .mcp.json in the project root. You can also add it manually in Settings → MCP.

Other agents

For Codex, Windsurf, Zed, VS Code, Cline, Gemini CLI, and other MCP-aware agents, quey add delegates to add-mcp, which knows each agent's config file and format:

terminalbash
quey add all       # register with every agent add-mcp supports, after you confirm what it'll write and wherequey add other     # pick from add-mcp's full agent list interactivelyquey add codex     # or any other agent slug, e.g. windsurf, zed, vscode
Note
Some agents (Claude Desktop, Cline, Cline CLI, Goose, Windsurf, Antigravity) have no project-level config format — only a machine-wide one. quey add all/quey add <agent> always shows exactly what will be written and where, and asks you to confirm, before touching anything outside this project.
Tip
Auto-run is on by default but harmless without QUEY_CODEX_CWD — with no target repo set, a capture just records an error asking you to set it. See Configuration to point it at a repo.

The MCP server runs in combined mode by default: the HTTP bridge (for the extension) and MCP stdio (for agents) run in the same process, so captures are shared immediately.

Tools reference

These MCP tools are available to any connected agent:

ToolDescription
quey_list_sessionsList all capture sessions with counts.
quey_get_sessionGet a session with all its captures.
quey_get_pendingGet unacknowledged captures, optionally by session.
quey_get_captureGet full capture details including element context and thread.
quey_acknowledgeMark a capture as seen / in-progress.
quey_resolveMark a capture as resolved with a summary.
quey_dismissDismiss a capture with a reason.
quey_replyAdd a message to a capture's thread.
quey_watchBlock until new captures appear — use in loops for hands-free mode.

HTTP API

The HTTP bridge also exposes a REST API on port 4747. The extension uses this directly; you can also use it for debugging.

terminalbash
# Health checkcurl http://localhost:4747/health # List pending capturescurl http://localhost:4747/captures/pending # Get a specific capturecurl http://localhost:4747/captures/<id> # Subscribe to real-time events (SSE)curl -N http://localhost:4747/events