0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

chrome-devtools-mcp を試したら

Posted at

Cursor インストール

ボタンを押すだけ

スクリーンショット 2025-10-05 15.36.07.png

なんかよくなさそうなステータス

スクリーンショット 2025-10-05 15.36.57.png

画面に出ているコマンドを叩いてみる

### Macの環境の Nove のバージョンが v20.11.0 で良くないっぽい
$ npx -y chrome-devtools-mcp@latest 
ERROR: `chrome-devtools-mcp` does not support Node v20.11.0. 
Please upgrade to Node 20.19.0 LTS or a newer LTS.


### バージョン変わらず。やり方間違えてたのかな
$ node -v
v20.11.0
$ brew upgrade node
〜〜〜〜〜
$ node -v
v20.11.0


### node の場所を確認
$ which -a node
/Users/〜/.volta/bin/node
/Users/〜/.nodenv/shims/node
/usr/local/bin/node
/Users/〜/.volta/bin/node
/Users/〜/.nodenv/shims/node


### 一番最初に volta が表示されているので、volta に合わせる
$ node -v      
v20.11.0
$ volta install node@20.19.0
success: installed and set node@20.19.0 (with npm@10.8.2) as default
$ node -v                   
v20.19.0

やっと叩ける

$ npx -y chrome-devtools-mcp@latest 
chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
debug, and modify any data in the browser or DevTools.
Avoid sharing sensitive or personal information that you do not want to share with MCP clients.


### 動くけどインストールからやりたかったので、以下を実施
$ npm install -g chrome-devtools-mcp
added 176 packages in 10s
29 packages are looking for funding
  run `npm fund` for details

スクリーンショット 2025-10-05 15.58.51.png

### npx -y とか叩いてた時と同じ感じになる
$ chrome-devtools-mcp
chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
debug, and modify any data in the browser or DevTools.
Avoid sharing sensitive or personal information that you do not want to share with MCP clients.


### 出力結果を mcp.json に記述
$ which chrome-devtools-mcp


### 別ターミナルで chorme を起動
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --no-first-run --no-default-browser-check

cursor のタブで指示をすると動く

が、めちゃめちゃ重い。カス。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?