Chrome DevTools MCP Performance logo

Chrome DevTools MCP Performance

Community
PramodDutta
Chrome DevTools MCP Performance

Teach agents to use the Chrome DevTools MCP server for performance testing with traces, Core Web Vitals, throttling, and evidence-based analysis.

Overview

PublisherPramodDutta
Repositoryqaskills
Skill nameChrome DevTools MCP Performance
Stars
239
Forks
31
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by PramodDutta on GitHub. Read the source before you install it.

Installation

Install the Chrome DevTools MCP Performance AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/PramodDutta/qaskills/tree/main/seed-skills/chrome-devtools-mcp-performance
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PramodDutta/qaskills.git /tmp/qaskills
mkdir -p .claude/skills
cp -r /tmp/qaskills/seed-skills/chrome-devtools-mcp-performance .claude/skills/pramoddutta-chrome-devtools-mcp-performance
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chrome DevTools MCP Performance in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chrome DevTools MCP Performance on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chrome DevTools MCP Performance is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Chrome DevTools MCP Performance Skill

You are a web performance engineer who drives Chrome DevTools through an MCP server to capture traces, measure Core Web Vitals, analyze network and CPU bottlenecks, and turn observations into targeted fixes.

Core Principles

  1. Measure before changing code: Every optimization starts with a reproducible trace or metric snapshot.
  2. Throttle like real users: Use network and CPU profiles that match the target user base.
  3. Separate lab and field data: DevTools traces explain causes, while real-user monitoring confirms customer impact.
  4. Optimize the critical path: Prioritize LCP resources, render blocking scripts, hydration, and long tasks.
  5. Keep evidence attached: Save trace files, screenshots, and metric summaries with the issue.
  6. Compare against a baseline: A single trace is less useful than before and after evidence.
  7. Avoid vanity tuning: Improve user-visible waits, not only synthetic scores.
  8. Turn findings into budgets: Convert recurring problems into CI or monitoring thresholds.

Setup

Install the MCP server and prepare a local performance target.

bash
npm install --save-dev @playwright/test typescript
npm pkg set scripts.perf:serve='vite --host 127.0.0.1'
npm pkg set scripts.perf:smoke='tsx scripts/perf-smoke.ts'

Configure your agent to expose Chrome DevTools MCP according to your MCP client.

json
{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["chrome-devtools-mcp@latest"]
    }
  }
}

Project Structure

Keep performance evidence and scripts outside normal E2E tests.

text
performance/
  traces/
  budgets/
    web-vitals.json
  notes/
    checkout-lcp.md
scripts/
  perf-smoke.ts
  summarize-trace.ts

Agent Workflow

Use this loop when asked to investigate performance.

  1. Open the target URL in Chrome through the MCP tool.
  2. Clear cache or define whether the run is warm or cold.
  3. Apply network and CPU throttling.
  4. Start a performance trace.
  5. Reload or perform the critical journey.
  6. Stop the trace and export it.
  7. Extract LCP, CLS, INP-related long tasks, requests, and main-thread blocks.
  8. Identify the largest contributor.
  9. Make one focused code change.
  10. Capture the same trace again.
  11. Compare before and after.
  12. Recommend a budget if the issue can regress.

Metric Smoke Script

Use Playwright to collect browser-side performance entries for quick checks.

typescript
// scripts/perf-smoke.ts
import { chromium } from '@playwright/test';

const url = process.env.PERF_URL || 'http://127.0.0.1:5173';
const browser = await chromium.launch();
const page = await browser.newPage();

await page.goto(url, { waitUntil: 'networkidle' });

const metrics = await page.evaluate(() => {
  const nav = performance.getEntriesByType('navigation')[0] as PerformanceNavigationTiming;
  const resources = performance.getEntriesByType('resource') as PerformanceResourceTiming[];
  return {
    domContentLoaded: Math.round(nav.domContentLoadedEventEnd - nav.startTime),
    load: Math.round(nav.loadEventEnd - nav.startTime),
    transferKb: Math.round(resources.reduce((sum, item) => sum + item.transferSize, 0) / 1024),
    resourceCount: resources.length,
  };
});

console.log(JSON.stringify(metrics, null, 2));
await browser.close();

Budget Check

Turn repeated findings into a simple local budget.

typescript
// scripts/check-performance-budget.ts
type Metrics = {
  domContentLoaded: number;
  load: number;
  transferKb: number;
  resourceCount: number;
};

const budget = {
  domContentLoaded: 2000,
  load: 3500,
  transferKb: 900,
  resourceCount: 90,
};

export function assertBudget(metrics: Metrics): void {
  const failures = Object.entries(budget).filter(([key, limit]) => {
    return metrics[key as keyof Metrics] > limit;
  });

  if (failures.length > 0) {
    throw new Error(`Performance budget failed: ${JSON.stringify(failures)}`);
  }
}

Trace Review Guide

When reviewing a trace, inspect these areas in order.

  1. Largest Contentful Paint element and its resource.
  2. Render blocking CSS and synchronous scripts.
  3. Main-thread long tasks over 50 ms.
  4. Hydration work and repeated layout.
  5. Image sizing, compression, and priority.
  6. Font loading behavior.
  7. Third-party script cost.
  8. Cache headers.
  9. JavaScript bundle chunks.
  10. Network waterfall gaps.

Reference Table

SignalDevTools EvidenceLikely Fix
Slow LCPLCP element and waterfallPreload image, reduce server time, optimize hero
High CLSLayout shift recordsReserve dimensions, avoid late banners
Poor INPLong tasks near inputSplit JavaScript and reduce handler work
High TTFBNavigation timingCache, optimize backend, use edge
Large JSCoverage and networkCode split and remove unused libraries
Slow fontsWaterfall and renderingPreload, swap, subset fonts

Common Mistakes

  1. Taking one unthrottled trace on a fast laptop and calling it done.
  2. Optimizing Lighthouse score without checking user journeys.
  3. Ignoring third-party scripts.
  4. Comparing cold cache before with warm cache after.
  5. Missing the actual LCP element.
  6. Shipping a budget without stakeholder agreement.
  7. Treating Playwright timing as Core Web Vitals field data.
  8. Forgetting mobile CPU cost.
  9. Making many changes before retesting.
  10. Not saving trace artifacts.

Checklist

  • The run used a documented URL and environment.
  • Cache state was defined.
  • Network and CPU throttling were selected intentionally.
  • A trace was captured before changes.
  • LCP, CLS, and input-related long tasks were reviewed.
  • One primary bottleneck was identified.
  • A focused change was made.
  • A matching after trace was captured.
  • Results were compared against baseline.
  • A recurring risk was converted into a budget.

Frequently asked questions

What does the Chrome DevTools MCP Performance AI skill do?

Teach agents to use the Chrome DevTools MCP server for performance testing with traces, Core Web Vitals, throttling, and evidence-based analysis.

Why use Chrome DevTools MCP Performance on TypingMind?

Because you install it once and use it with any model. Chrome DevTools MCP Performance is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chrome DevTools MCP Performance in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/PramodDutta/qaskills/tree/main/seed-skills/chrome-devtools-mcp-performance. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Chrome DevTools MCP Performance?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chrome DevTools MCP Performance?

As many as you like. As long as a model supports skills, you can use Chrome DevTools MCP Performance with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chrome DevTools MCP Performance AI skill free?

Yes. It is published on GitHub by PramodDutta under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇