mcpField
M
MarkLayer

MarkLayer

Local
marklayer.appDeveloper Tools44Updated 1w ago

About MarkLayer

MarkLayer MCP connects webpage review rooms to AI coding agents. Agents can process human annotations, update their status, and leave comments or proposed text edits for reviewers.

Key features

  1. 01Read page structure and annotations
  2. 02Watch for incoming feedback
  3. 03Acknowledge, resolve, dismiss, or reply
  4. 04Create comments and copy-edit suggestions
  5. 05Share preview rooms and track next steps

Use cases

  1. 01Turn webpage feedback into an agent work queue
  2. 02Review an unannotated page and leave comments
  3. 03Track fixes across preview versions

MCP support

The server exposes MarkLayer room, page, and annotation tools to MCP clients. Clients can connect to a remote room endpoint or run the stdio package for room access.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"thevrus-marklayer": {
"command": "npx",
"args": [
"-y",
"marklayer-mcp"
],
"env": {
"MARKLAYER_ROOM": "<MARKLAYER_ROOM>",
"MARKLAYER_API_BASE": "<MARKLAYER_API_BASE>",
"MARKLAYER_AGENT": "<MARKLAYER_AGENT>"
}
}
}
}
Run commandnpx -y marklayer-mcp
Environment variables to set
MARKLAYER_ROOMSame as --room: the share URL or room id to join at startup.
MARKLAYER_API_BASEOverride the MarkLayer worker base URL. Defaults to https://marklayer.app; useful against a local dev worker.
MARKLAYER_AGENTName shown to the humans in the room for this agent. Defaults to claude-code.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmarklayer-mcp0.6.0

Tools

12

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

From the project README

marklayer-mcp

MCP (Model Context Protocol) server that bridges MarkLayer annotations to AI coding agents.

When users annotate any webpage with MarkLayer, your agent receives the comments as a structured work queue: it can acknowledge, resolve, dismiss, and reply to each one — and the human sees the status updates live. It also works the other way: point an agent at a room and ask it to review the page, and it can leave its own comments and copy-edit suggestions for the human to triage.

Install

You may not need to. Every MarkLayer share link is already a remote MCP server at the same address plus /mcp, so a client that supports remote (Streamable HTTP) servers connects with nothing installed:

claude mcp add --transport http marklayer https://marklayer.app/s/abc123/mcp

Append ?agent=cursor, or any name, so the people in the room see who is working; it defaults to agent. That endpoint is bound to its room, so it has every tool below except marklayer_connect_room.

This package is the stdio version of the same tools, with no Claude-specific wiring. Use it when a client cannot reach remote servers, or when you want one install that covers every room (Claude Code, Cursor, Windsurf, VS Code, Codex CLI, etc.):

# Claude Code:
claude mcp add marklayer -- npx -y marklayer-mcp

# Or pre-connect to a specific room:
claude mcp add marklayer -- npx -y marklayer-mcp --room https://marklayer.app/s/abc123

For any other MCP client, add a stdio server entry pointing at the same command (adjust the config file/key to your client — Cursor's ~/.cursor/mcp.json, Windsurf's mcp_config.json, VS Code's .vscode/mcp.json, etc.):

{
  "mcpServers": {
    "marklayer": {
      "command": "npx",
      "args": ["-y", "marklayer-mcp"],
      "env": { "MARKLAYER_AGENT": "cursor" }
    }
  }
}

Set MARKLAYER_AGENT (or --agent) to identify which agent this is — it's what humans see as the comment author and the "assigned to" badge, so a non-Claude client should not leave it at the default.

Usage

In your agent prompt:

Watch my MarkLayer annotations. For each one, acknowledge it, make the fix, then resolve it with a summary.

The agent will call marklayer_watch_annotations in a loop and process incoming feedback as it arrives.

Tools

ToolDescription
marklayer_connect_roomConnect to a room by share URL or bare id.
marklayer_room_infoPage URL, viewport width, timestamps.
marklayer_read_pageThe page's headings, text, links and controls, with selectors. Lets the agent review a page nobody has annotated yet.
marklayer_list_annotationsList annotations, optionally filtered by status.
marklayer_get_annotationFull detail + reply thread for one annotation.
marklayer_watch_annotationsBlock until new annotations arrive, return a batch.
marklayer_acknowledgeMark in-progress and tag with this agent.
marklayer_resolveMark resolved, optionally posting a reply with the summary.
marklayer_dismissMark dismissed with a reason the human will see.
marklayer_replyPost a reply without changing status (e.g. clarifying questions).
marklayer_create_annotationLeave a new comment yourself — proactive feedback rather than a response.
marklayer_suggest_editPropose an exact copy/grammar fix for a piece of text, as a diff the human can accept.
marklayer_share_previewOpen a new review room on a URL you built and connect to it. Same repo + branch as the room you are in (or previous) makes it the next version.
marklayer_set_next_stepsPublish an ordered checklist, each step linked to annotation ids. Replaces the previous list.
marklayer_complete_next_stepTick a step off; reviewers see it live.
marklayer_askPut a 2-6 option poll to the room. One vote per reviewer, revotable.
marklayer_get_feedbackOne read: annotation counts by status, open annotations, checklist progress, poll tallies.

Options

--room <url-or-id>   Connect at startup; otherwise call marklayer_connect_room.
--api-base <url>     Override worker URL (default https://marklayer.app).
--agent <name>       Identifier shown to humans (default "claude-code").

Equivalent env vars: MARKLAYER_ROOM, MARKLAYER_API_BASE, MARKLAYER_AGENT.

Troubleshooting

"Connection closed" on first start. npx -y downloads the package on the first run, and a cold download can outlast the MCP client's startup timeout. Prime the cache once (npx -y marklayer-mcp --help) and reconnect, or install it up front with npm i -g marklayer-mcp and point the client at the binary.

Tools return "room is not connected". The WebSocket dropped — rooms are held open by a Durable Object and a long-idle agent can be disconnected. Call marklayer_connect_room with the same URL to reattach.

Creating rooms programmatically

This server consumes an existing share link. To mint one (or many) from code — e.g. seed a room per page in a batch of URLs before pointing the agent at it — POST directly to the public HTTP API:

curl -X POST https://marklayer.app/api/$ID \
  -H 'Content-Type: application/json' \
  -d '{"ops":[],"url":"https://example.com/page-1","width":1440,"expires_in":2592000}'
# Share link: https://marklayer.app/s/$ID

For a review room on a preview build, POST /api/$ID/preview takes { url, title, repo?, branch?, sha?, note?, questions?, previous? } and never overwrites an existing id. Versions chain only through previous, a room you already hold: two rooms are never linked by repo and branch alone, because the version switcher shows each room's neighbours. marklayer_share_preview calls this route over stdio; over HTTP (/s/:id/mcp) it creates the room in the Worker, chains from the room in the URL, and returns an mcpUrl to reconnect to, since that endpoint stays bound to its own room.

$ID is caller-supplied (use nanoid / crypto.randomUUID() — it's the access token). No auth, no SDK. Full details: https://marklayer.app/llms-full.txt

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.