MCP server
@extension.dev/mcp gives a coding agent hands on a real browser and on the platform: 35 tools that scaffold, run, inspect, test and build an extension on your machine, and ship it through extension.dev. Reach for it when the agent should debug from evidence, instead of fixing a content script that never injected without noticing it never injected.
Quick start
claude mcp add extension-dev npx @extension.dev/mcpThen ask the agent to run your extension: it starts a dev session and a browser opens with the extension loaded. The same server works with Claude Desktop, Cursor, VS Code, Codex and any MCP client, and every client's block is on Install in your client.
How it works
The server does not reimplement Extension.js. It wraps the CLI and the local agent bridge. Tools that run a build or launch a browser shell out to the extension command, and so do the act verbs (eval, storage, reload, open), doctor, dom_snapshot and assert. The rest run in process and read the session's ready.json contract and the bridge's local channel as any other client would. The agent and the CLI always behave the same way, and the agent never holds anything the CLI does not.
Two tool groups
Without --features the server starts with the local group alone, the 24 tools that work on this machine. The 11 platform tools (account, workspace, builds, share, release and store) come on with --features=local,platform or EXTENSION_DEV_FEATURES=local,platform:
claude mcp add extension-dev -- npx @extension.dev/mcp --features=local,platformOr install it as a plugin, which adds the server plus the /extension, /extension-add, /extension-debug and /extension-publish commands. The plugin starts the server with the default local group:
/plugin marketplace add extensiondev/mcp
/plugin install extension-mcp@extensiondev-mcpThe server is listed in the MCP registry as io.github.extensiondev/mcp. The same shape works in any client configured by hand:
{
"mcpServers": {
"extension-dev": {
"command": "npx",
"args": ["@extension.dev/mcp", "--features=local,platform"]
}
}
}Session gates
extension_dev is the entry point, and the session it starts decides what the act tools may do.
extension_storage,extension_reload,extension_openandextension_dom_snapshotride the local control channel, which a dev session carries by default. Start it withallowControl: falsefor a read-only session (logs, inspect, wait, doctor).extension_evalis the one gate that stays off. It needs a session started withallowEval: true, which writes a session token file with0600permissions and implies control.
A session does not grow a gate on a second call: that call is refused so the session does not fork. Call extension_dev again with the flag you need plus replace: true, which stops the first session.
Reading is always free. Running code inside the extension is opt-in per session. The control verbs act on the extension this machine already runs, which is why they are on unless you turn them off.
Engine pinning for scaffolds
A project scaffolded by extension_create declares its Extension.js version in its own package.json. That project-local pin wins over the server's environment, so later sessions build with the version the scaffold declared.
Pair with the skill
The server pairs with @extension.dev/skill, which teaches the agent when to reach for each tool. The server without the skill gives an agent hands with no instructions.
Reference
The server registers 35 tools, one page each, generated from the schemas the server registers so the pages cannot drift from the code. The 24 local tools need no account. The 11 platform tools come on with --features=local,platform and are described on Platform tools. Every page carries the inputs, whether the tool only reads, the gate it needs, and a prompt that reaches for it.
Create and build
| Tool | What it does | |
|---|---|---|
extension_add_feature | Plan the surface before adding an options page, a popup, a side panel, a content script, a devtools panel, a new tab page or a background script. | reads |
extension_build | Build the extension on this machine into dist/<browser>/; never for sharing (extension_builds). | acts |
extension_create | Create an extension project from a template (extension_templates); it may init git. | acts |
extension_docs_search | Find the docs page to cite before answering about a WebExtension API, a manifest key, a permission or a browser difference. | reads |
extension_templates | Browse the template catalog or read a template's files. | reads |
Run
| Tool | What it does | |
|---|---|---|
extension_dev | Run the extension while you edit it (dev build, hot reload, browser): the first call for "run my extension". | acts |
extension_start | Run the PRODUCTION build in a browser (extension_dev is for writing code); no hot reload or extension_logs. | acts |
extension_stop | Stop a dev or start session, naming the server and browser pid it ended. | acts |
extension_try | Run a published extension.dev build in a fresh profile on this machine, no install, and screenshot it; warn the person about what it can reach. | acts |
extension_wait | Wait for a session to be ready, or for: "rebuild" after an edit; only after wait:false, a ready.status not "ready", or noBrowser; answers port, controlPort and cdpPort or rdpPort. | reads |
See
| Tool | What it does | |
|---|---|---|
extension_analyze | Analyze a BUILT extension in dist/<browser>: sizes, entries, permissions, store checks (not on a dev build). | reads |
extension_doctor | Diagnose a dev session leg by leg, each with its remediation; run it first when an act tool errors unexpectedly. | reads |
extension_dom_snapshot | Take a shallow DOM snapshot of one open surface or targetId, or list what is open (listTargets on the debug port, listTabs). | reads |
extension_inspect | Inspect a web page (or targetId) over the debugger protocol: HTML, DOM, console, probes, closed shadow roots. | acts |
extension_list_extensions | List the extensions in a session's browser; its own carries ownExtension:true. | reads |
extension_logs | Read a dev session's logs from every context in one timeline, or follow:true for live frames after the replayed ring. | reads |
extension_manifest_validate | Validate a manifest.json across browsers; buildBlocking lists the errors that make extension_build refuse. | reads |
extension_screenshot | Take a .png of one open surface, page or targetId in a live session (Safari: pages only); open it with extension_open first. | acts |
extension_theme_verify | Verify a Chrome theme manifest headless: the colors Chrome would paint and the keys it discards. | reads |
Test
| Tool | What it does | |
|---|---|---|
extension_assert | Run a test stage on an extension_dev or extension_start session: pass, fail, not ready (a precondition) or inconclusive per expectation. | acts |
Act
| Tool | What it does | |
|---|---|---|
extension_eval | Evaluate JavaScript in a running extension's background, surface, content script, page or targetId. | acts |
extension_open | Open an extension surface or a url, or replay the toolbar action or a shortcut, over the control channel (by hand: --allow-control). | acts |
extension_reload | Reload the extension's background, or a tab, over the control channel (allowControl); a background reload waits up to 5 s. | acts |
extension_storage | Read or write one chrome.storage key from the background, over the control channel. | acts |
Browsers
| Tool | What it does | |
|---|---|---|
extension_browsers | Find, install and remove browsers Extension.js launches. | acts |
Platform
| Tool | What it does | |
|---|---|---|
extension_approvals | Read or revoke one approval on extension.dev; revoke a pending or unused one approved by mistake (owner token). | acts |
extension_auth | Sign in to an existing extension.dev project (a code for extension.dev/device, then deviceCode and waitSeconds), list stored logins, or clear them. | acts |
extension_builds | Read, download, rebuild and configure platform builds. | acts |
extension_preview_web | Preview a build in the web emulator; share:true returns a link anyone opens with no install (the preview://build default is for developing extension.dev itself). | acts |
extension_project_create | Create an extension.dev project from its GitHub repository, BEFORE extension_auth. | acts |
extension_publish | Publish a build on extension.dev: the link for testers, with a download and a run command for each browser; use it first to share or ship (no project yet: extension_project_crea... | acts |
extension_release_promote | Release a build to a channel on extension.dev. | acts |
extension_release_status | Read where a project stands on extension.dev: channels, builds, store submissions and reviews, history, rollout, listings. | reads |
extension_shares | List, create and revoke emulator preview links for a tester, and list and revoke build links (a build link or channel link comes from extension_publish). | acts |
extension_submit | Submit a platform build to the Chrome, Firefox, Edge and Safari stores through extension.dev. | acts |
extension_submit_check | Read a store submission or ask for an approval, under a read-only hint; it executes nothing. | reads |
extension_workspace | Read the workspace; change a project's settings. | acts |
extension_workspace_create | Create a missing extension.dev workspace, before extension_project_create. | acts |
The flags, the approvals that wait for a person and the one telemetry event are on Server flags and telemetry. What works against Safari is on Run on Safari.
When it fails
- A platform tool returns an auth error: the stored device login lives at most 7 days. Log in again with
extension_auth, or setEXTENSION_DEV_TOKEN. - The device page says the project does not exist: login mints a code for any name, and the check happens at approval. Create the project at extension.dev/new, then log in again.
extension_evalanswerseval-disabled: the session was started withoutallowEval: true, and no route of the tool runs without that token. On a Chromium MV3 session the context defaults topage, the active tab. Passcontext: "background"to reach the service worker over the debug port.- An act tool refuses: eval and control are session opt-in. Call
extension_devagain with the gate you need plusreplace: true, then retry. extension_list_extensionsmisses an extension: a dormant MV3 service worker with no open page is absent until it wakes.
Next
- Install in your client, Server flags and telemetry, Platform tools, Run on Safari
- Pair with Chrome DevTools MCP says which server to reach for
- Agent bridge is the capability behind the local tools
- Agent logs and Inspect and act in depth
- Publish a build links a project's build page
- Access tokens