Browser Mutation
FreeNot checkedMCP server that captures visual browser edits and converts them into structured code implementation patches.
About
MCP server that captures visual browser edits and converts them into structured code implementation patches.
README
Browser Mutation captures visual edits made in the Codex in-app browser and turns them into structured implementation intent for Codex.
It is intended for user-owned local development pages such as http://localhost:5174, http://127.0.0.1:3000, and similar loopback targets. Local HTML files can be served through the built-in loopback static server.
What It Includes
Browser Mutation is a community MIT project. It ships as:
- a standalone local collector/proxy
- a Codex skill
- a Codex plugin manifest
- an MCP server implementation
Why Browser Mutation
Browser Use can already highlight and annotate browser targets during automation. Browser Mutation is for a different step: turning a visual edit into implementation intent that Codex can apply to source code.
Use Browser Mutation when you need:
- before/after records for text, style, layout, icon, move, resize, reparent, reorder, note, and delete changes
- element identity, selector hints, neighboring layout context, and computed style snapshots
- optional React dev-mode source hints when available
- explicit selected-element or session notes for implementation instructions
- Canva-like move guidance with nearby DOM snapping, spacing labels, axis lock, and center-only snap controls
- a captured edit payload after the user presses Send
- repeatable handoff from a human visual edit to a source-code patch
In short: Browser Use is useful for opening, inspecting, and interacting with browser pages. Browser Mutation captures what changed and why, so Codex can translate a visual edit into code.
Move Mode
Move mode is designed for precise visual alignment without turning the page into a noisy layout editor.
- Snap lines align against nearby DOM elements, including center, edge, and spacing references.
- Spacing guides use a different color from snap lines and are included in the move payload.
- Hold
Shiftwhile dragging to lock the dominant axis. - Hold
Cwhile dragging to prefer center alignment when edge snaps are too close. - Hold
Altwhile dragging to bypass snapping temporarily. - Move edits are staged first. The move button changes to a check icon; click it to record the final position. Pressing Send also records one pending move before posting the payload.
- Elements moved across stacked surfaces are promoted during the drag so they can be positioned over headers, composers, and other higher layers.
Quick Start For Codex Users
In a new Codex thread, this should be enough:
Install this Codex skill/plugin:
https://github.com/JosPMSilva/Browser-mutation
Requirements: git, node, and Codex Desktop on Windows, macOS, or Linux.
Clone the repo into the standard local plugin location:
mkdir -p ~/plugins
git clone https://github.com/JosPMSilva/Browser-mutation.git ~/plugins/browser-mutation
cd ~/plugins/browser-mutation
node scripts/install-codex.mjs
node scripts/doctor.mjs
Restart Codex Desktop. In Codex, open Plugins > Local Codex Tools > Browser Mutation, click Add to Codex or enable Browser Mutation, and make sure both Browser_mutation and Mutation toggles are enabled.
Start a fresh Codex thread after enabling so the skill list and MCP config are reloaded.
Updating From Git
For an existing install, update the plugin files without rewriting Codex config:
cd ~/plugins/browser-mutation
git pull
node scripts/update-codex.mjs
Do not rerun node scripts/install-codex.mjs for normal updates. The installer is for first install or deliberate config repair only.
Then open a local app in the Codex in-app browser and ask:
Use Browser Mutation on this page.
Local Collector
node scripts/start-collector.mjs --target http://localhost:5174
For a static HTML file or folder:
node scripts/start-collector.mjs --file ./index.html
node scripts/start-collector.mjs --root ./dist
The local collector starts a browser proxy for the target page and records the edits sent from the Browser Mutation overlay. See the usage guide for the full workflow.
The overlay defaults to Interact mode so normal app clicks pass through. Use Select element, Alt+Click, or Ctrl+Alt+S only when selecting an element for mutation. Use Ctrl+Alt+I to return to Interact and Ctrl+Alt+D to dock the panel.
Documentation
Development
Run the MCP probe:
node scripts/doctor.mjs
License
MIT
Installing Browser Mutation
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/jospmsilva/browser-mutationFAQ
Is Browser Mutation MCP free?
Yes, Browser Mutation MCP is free — one-click install via Unyly at no cost.
Does Browser Mutation need an API key?
No, Browser Mutation runs without API keys or environment variables.
Is Browser Mutation hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Browser Mutation in Claude Desktop, Claude Code or Cursor?
Open Browser Mutation on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Browser Mutation with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
