Skip to content
mcp-chrome-devtools logo

Chrome DevTools MCP

mcp-chrome-devtools

This skill provides guidance for using Chrome DevTools MCP for browser debugging and automation. Use when debugging web pages, analyzing performance, inspecting network requests, viewing console messages, or interacting with Chrome DevTools features programmatically.

SKILL.md

Full skill instructions

Chrome DevTools MCP

Overview

This skill enables browser debugging and automation using Chrome DevTools through MCP. It provides access to Chrome DevTools features including page interaction, network analysis, console inspection, and performance tracing.

When to Use This Skill

  • Debugging web page issues
  • Analyzing network requests and responses
  • Inspecting console messages and errors
  • Performance profiling and tracing
  • Automated page interaction and testing
  • Taking screenshots and snapshots

Quick Start Workflow

  1. List pages: list_pages
  2. Select a page: select_page
  3. Take snapshot: take_snapshot
  4. Interact using uids from snapshot

Core Tools

Page Management

list_pages - Get all open pages

mcp__chrome-devtools__list_pages({})

select_page - Select a page for operations

mcp__chrome-devtools__select_page({ pageIdx: 0 })

new_page - Create a new page

mcp__chrome-devtools__new_page({ url: "https://example.com" })

close_page - Close a page

mcp__chrome-devtools__close_page({ pageIdx: 1 })

navigate_page - Navigate the selected page

mcp__chrome-devtools__navigate_page({ type: "url", url: "https://example.com" })
mcp__chrome-devtools__navigate_page({ type: "back" })
mcp__chrome-devtools__navigate_page({ type: "reload", ignoreCache: true })

Snapshots and Screenshots

take_snapshot - Get accessibility tree (preferred for interaction)

mcp__chrome-devtools__take_snapshot({})

take_screenshot - Capture visual screenshot

mcp__chrome-devtools__take_screenshot({
  format: "png",
  fullPage: true,
  filePath: "./​screenshot.png"
})

Element Interaction

click - Click an element

mcp__chrome-devtools__click({ uid: "element-uid" })
mcp__chrome-devtools__click({ uid: "element-uid", dblClick: true })

fill - Fill input or select option

mcp__chrome-devtools__fill({ uid: "input-uid", value: "text" })

fill_form - Fill multiple form elements

mcp__chrome-devtools__fill_form({
  elements: [
    { uid: "username-uid", value: "user" },
    { uid: "password-uid", value: "pass" }
  ]
})

hover - Hover over an element

mcp__chrome-devtools__hover({ uid: "element-uid" })

drag - Drag and drop

mcp__chrome-devtools__drag({ from_uid: "source", to_uid: "target" })

Debugging Tools

list_console_messages - Get console messages

mcp__chrome-devtools__list_console_messages({})
mcp__chrome-devtools__list_console_messages({ types: ["error", "warn"] })

get_console_message - Get specific message details

mcp__chrome-devtools__get_console_message({ msgid: 1 })

list_network_requests - Get network requests

mcp__chrome-devtools__list_network_requests({})
mcp__chrome-devtools__list_network_requests({ resourceTypes: ["fetch", "xhr"] })

get_network_request - Get request details

mcp__chrome-devtools__get_network_request({ reqid: 1 })

Performance Tools

performance_start_trace - Start performance trace

mcp__chrome-devtools__performance_start_trace({
  reload: true,
  autoStop: true
})

performance_stop_trace - Stop performance trace

mcp__chrome-devtools__performance_stop_trace({})

performance_analyze_insight - Analyze performance insight

mcp__chrome-devtools__performance_analyze_insight({
  insightSetId: "insight-set-id",
  insightName: "LCPBreakdown"
})

Advanced Tools

evaluate_script - Execute JavaScript

mcp__chrome-devtools__evaluate_script({
  function: "() => document.title"
})

press_key - Press keyboard key

mcp__chrome-devtools__press_key({ key: "Enter" })
mcp__chrome-devtools__press_key({ key: "Control+A" })

emulate - Emulate conditions

mcp__chrome-devtools__emulate({
  networkConditions: "Slow 3G",
  cpuThrottlingRate: 4
})

handle_dialog - Handle browser dialog

mcp__chrome-devtools__handle_dialog({ action: "accept" })

wait_for - Wait for text

mcp__chrome-devtools__wait_for({ text: "Loading complete" })

Best Practices

  1. Always snapshot first: Use take_snapshot before interacting to get uids
  2. Select page first: Use select_page before page-specific operations
  3. Check console for errors: Use list_console_messages for debugging
  4. Inspect network: Use list_network_requests to debug API issues
  5. Use emulation: Test with throttling for performance issues

References

For complete tool parameters, see references/​tools.md.

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View