DOMShell MCP server
✓ 인증됨Chrome 브라우저를 가상 파일 시스템으로 변환하여, AI agent가 표준 Linux 명령어를 통해 웹 페이지를 탐색하고 상호작용할 수 있게 합니다.
다른 이름 apireno/DOMShell, @apireno/domshell
- 스타
- 60
- Tools
- —
- 다운로드, 30일
- 1,374
- 최신 버전
- 2.0.10
- 마지막 커밋
- 2026년 8월 14일
- 라이선스
- MIT
DOMShell MCP란?
DOMShell은(는) MCP server입니다. Chrome 브라우저를 가상 파일 시스템으로 변환하여, AI agent가 표준 Linux 명령어를 통해 웹 페이지를 탐색하고 상호작용할 수 있게 합니다.
프로젝트 README에서 생성된 요약
DOMShell MCP server 정보
DOMShell은 Accessibility Tree를 디렉토리 구조로 매핑하여 Chrome 브라우저를 가상 파일 시스템으로 변환합니다. 이를 통해 AI agent는 복잡한 CSS selector나 좌표에 의존하는 대신 ls, cd, grep, find와 같은 익숙한 Linux 명령어를 사용하여 웹 페이지를 탐색할 수 있습니다. Claude Desktop, Cursor, Windsurf와 같은 MCP client를 사용하는 개발자가 웹 자동화 및 데이터 추출을 더욱 효율적으로 수행할 수 있도록 설계되었습니다.
사용자는 npm을 사용하는 네이티브 CLI를 통해 서버를 설치하거나, 프로세스 격리를 위해 Docker 컨테이너 내에서 실행하거나, ToolHive를 통해 관리할 수 있습니다. MCP server와 브라우저 간의 통신을 원활하게 하기 위해 필수적인 Chrome extension이 필요합니다. 이 시스템은 보안 토큰 기반 인증 모델을 사용하며 read, navigate, write, sensitive operations를 포함한 다양한 권한 계층을 지원합니다. 파일 시스템 메타포를 통해 페이지의 개념적 지도를 제공함으로써 복잡한 웹 작업을 수행하는 데 필요한 API 호출 횟수를 줄여줍니다.
활용 사례
- 1Linux 명령어로 웹 페이지 탐색AI agent가 표준 터미널 명령어를 사용하여 웹사이트 요소를 브라우징하고 특정 정보를 찾을 수 있습니다.
- 2write 도구를 통한 웹 상호작용 자동화개발자는 write 권한을 활성화하여 agent가 버튼을 클릭하고, 텍스트를 입력하며, 양식을 제출할 수 있도록 설정할 수 있습니다.
- 3다단계 웹 워크플로우 실행탐색 후 검색과 같이 전체 작업을 수행하기 위해 단일 요청에 일련의 명령어를 전달할 수 있습니다.
- 4여러 agent를 위한 브라우저 세션 격리서버는 격리된 lane을 지원하므로 서로 다른 AI client가 별도의 Chrome tab 그룹에서 동시에 작업할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
DOMShell MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 DOMShell MCP 설치
$ claude mcp add domshell -- npx -y @apireno/domshellCursor에 DOMShell MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"domshell": {
"command": "npx",
"args": [
"-y",
"@apireno/domshell"
]
}
}
}VS Code에 DOMShell MCP 설치
.vscode/mcp.json
{
"servers": {
"domshell": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@apireno/domshell"
]
}
}
}Claude Desktop에 DOMShell MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"domshell": {
"command": "npx",
"args": [
"-y",
"@apireno/domshell"
]
}
}
}Codex에 DOMShell MCP 설치
~/.codex/config.toml
[mcp_servers.domshell] command = "npx" args = ["-y", "@apireno/domshell"]
Gemini CLI에 DOMShell MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"domshell": {
"command": "npx",
"args": [
"-y",
"@apireno/domshell"
]
}
}
}자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음통과
README
GitHub에서 보기@apireno/domshell
MCP server that turns your browser into a filesystem. AI agents use ls, cd, grep, find, click, and type to browse the web — the same way you'd navigate a Linux filesystem.
DOMShell maps Chrome's Accessibility Tree to a virtual filesystem. Every DOM element becomes a file or directory. Agents work with familiar commands instead of raw selectors and coordinates.
Install
DOMShell supports three install paths — pick whichever fits your setup. Path 1 is the documented default and what 99% of users want; Paths 2 and 3 exist if you want lifecycle management across several MCP servers.
Path 1 — Native CLI (default, simplest)
npm install -g @apireno/domshell
Or run directly without installing:
npx @apireno/domshell
Works on macOS, Linux, and Windows with Node 18+. Nothing else required.
Path 2 — Dockerized (optional)
Run DOMShell in a container — useful if you don't want a global Node install or you want process isolation. Requires Docker Desktop. The token is persisted to a gitignored .env file so it survives container restarts and host reboots:
git clone https://github.com/apireno/DOMShell && cd DOMShell/mcp-server
cp .env.example .env
# Edit .env and set DOMSHELL_TOKEN to: $(openssl rand -hex 24)
docker compose build # produces domshell-mcp-server:latest
docker compose up -d
docker compose logs -f
The container maps ports 3001 (MCP HTTP) and 9876 (WebSocket bridge to the Chrome extension) to your loopback interface, so the Chrome extension reaches it exactly as it would the native install. restart: unless-stopped brings the container back automatically when Docker Desktop starts (toggle "Start Docker Desktop when you log in" in Docker Settings to make Path 2 fully reboot-resilient).
Path 3 — ToolHive-managed (optional)
Use ToolHive (thv) to manage the container's lifecycle alongside any other MCP servers you're running. Same .env file Path 2 uses, just sourced by thv:
brew tap stacklok/tap && brew install thv # one-time
cd DOMShell/mcp-server
cp .env.example .env # edit DOMSHELL_TOKEN if you haven't already
docker compose build # produces domshell-mcp-server:latest
thv run \
--name domshell-mcp-server \
--transport streamable-http \
--target-port 3001 \
-p 9876:9876 \
--env-file .env \
domshell-mcp-server:latest
thv list # workload status (URL on the proxy port)
thv logs domshell-mcp-server # tail logs
The container is reachable on http://127.0.0.1:3001/mcp because --target-port 3001 auto-publishes that port to host loopback — your existing MCP client config (Claude Desktop, Cursor, …) keeps working without changes.
Path 3 needs a one-time launchd agent for reboot autostart (Path 2 survives reboot through Docker Desktop alone). Full reboot table, launchd plist template, autostart script, and a simulated-reboot verification: docs/deploy/container-and-toolhive.md.
Chrome extension (required for all three paths)
You also need the DOMShell Chrome Extension — the MCP server talks to the browser through it.
Quick Start
npx @apireno/domshell init
The setup wizard detects installed MCP clients (Claude Desktop, Cursor, Windsurf), generates a secure token, and writes the config. Use --yes for non-interactive mode.
Then:
- Install the DOMShell Chrome Extension
- Open Chrome's side panel and start a DOMShell session
- Restart your MCP client — DOMShell tools will appear
- In the DOMShell terminal, run
connect <token>(printed by the wizard)
Claude Desktop Config
Add this to your Claude Desktop MCP settings (claude_desktop_config.json):
{
"mcpServers": {
"domshell": {
"command": "npx",
"args": ["-y", "@apireno/domshell", "--allow-write"]
}
}
}
For the stdio proxy (required if your client needs command/args format):
{
"mcpServers": {
"domshell": {
"command": "npx",
"args": ["-y", "-p", "@apireno/domshell", "domshell-proxy", "--port", "3001", "--token", "YOUR_TOKEN"]
}
}
}
Benchmarks
We tested DOMShell against Computer-in-the-Cloud (CiC) — both using Claude as the underlying model — across 4 web tasks over 8 trials.
| Metric | DOMShell | CiC |
|---|---|---|
| Avg API calls per task | 4.3 | 8.6 |
| Hardest task (T4) | 6.0 calls | 13.0 calls |
| Cold start vs CiC warm cache | 4.5 calls | 5.5 calls |
DOMShell uses 2× fewer API calls to complete the same tasks. The filesystem metaphor gives the model a mental map of the page, so it spends less time exploring and more time extracting.
Full experiment data: experiments/claude_domshell_vs_cic
MCP Interface
Default (recommended): the single domshell_execute tool. Pass any DOMShell command as a string — "ls", "cd tabs/123", "open https://example.com" — or pass several newline-separated for a whole workflow in one call. One tool, one approval, the full command vocabulary in the tool description.
Multi-line semantics: when command contains newlines, each line runs in order in the same MCP session and lane, so cwd, env, and history persist between lines. An error on one line does not halt the rest — its message is included in the combined output and subsequent lines still run. This is the right shape for cleanup-line idioms like "cd path\ngrep pattern\ncd back": the trailing restore runs even if the middle step errors. Implementation: mcp-server/index.ts:1115-1136.
Lanes & multi-agent. Every reply ends with [lane: <id>]. Multiple MCP clients can connect simultaneously, each in its own isolated Chrome tab group. To carve sub-lanes within a single client (e.g. two Claude Desktop chats), pass group_id: "new" on the first call and carry the returned id thereafter. See CHANGELOG.md.
Granular mode — --granular
Start the server with --granular and the 38 per-command tools are exposed alongside domshell_execute. Use it when you want per-operation approval in the client UI.
Read tier (always available): ls, cd, pwd, cat, find, grep, tree, text, read, tabs, here, refresh, diff, eval, functions, watch, for, script, each, extract_links, extract_table
Write tier (--allow-write): click, focus, type, scroll, navigate, open, submit, back, forward, close, select, js, screenshot, wait, call
Sensitive tier (--allow-sensitive): whoami
CLI Flags
| Flag | Description |
|---|---|
--allow-write |
Enable write-tier tools (click, type, navigate, etc.) |
--allow-sensitive |
Enable sensitive-tier tools (whoami) |
--allow-all |
Enable all tiers |
--granular |
Expose the 38 per-command tools alongside domshell_execute |
--port N |
WebSocket port (default: 9876) |
--mcp-port N |
HTTP MCP port (default: 3001) |
--domains a.com,b.com |
Restrict to specific domains |
--token TOKEN |
Set auth token (auto-generated if omitted) |
--log-file PATH |
Audit log location (default: audit.log) |
--confirm |
Opt in to per-action y/n prompts in the server terminal before each write. Off by default. |
--no-confirm |
No-op (kept for backward compatibility — per-action prompts are off by default). |
Security
Every command goes through a 4-tier security model:
- Read — always allowed (ls, find, grep, text)
- Navigate — requires
--allow-write(navigate, open, back, forward) - Write — requires
--allow-write(click, type, js, select) - Sensitive — requires
--allow-sensitive(whoami, cookie access)
All commands are logged to an audit file. Domain allowlists restrict which sites the agent can access. Auth tokens protect the HTTP endpoint.
Architecture
MCP Client (Claude, Cursor, etc.)
↓ HTTP :3001/mcp
DOMShell MCP Server (Express + WebSocket)
↓ WebSocket :9876
DOMShell Chrome Extension (CDP 1.3)
↓ Chrome Debugger Protocol
Browser DOM + Accessibility Tree
Links
- Chrome Web Store: pireno.com/domshell
- GitHub: github.com/apireno/DOMShell
- Blog: Why I Built a Filesystem for the Browser
- Project home: pireno.com/domshell
Built by Pireno.
License
MIT
DOMShell MCP 질문
DOMShell MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add domshell -- npx -y @apireno/domshell를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
DOMShell MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
DOMShell은 어떻게 작동하나요?
Chrome의 Accessibility Tree를 가상 파일 시스템에 매핑하여, agent가 ls, cd, grep과 같은 명령어로 웹을 탐색할 수 있도록 합니다.
AI agent가 접속하는 도메인을 제한할 수 있나요?
네, --domains 플래그를 사용하여 agent가 특정 도메인에만 접속하도록 제한할 수 있습니다.
단일 명령 도구 대신 세분화된 도구를 사용할 수 있나요?
네, 서버를 --granular 플래그와 함께 실행하면 38개의 개별 per-command 도구를 노출하여 더욱 정밀한 제어가 가능합니다.