Chrome DevTools (MCP) for your AI agent | Blog | Chrome for Developers
Extracto
Public preview for the new Chrome DevTools MCP server, bringing the power of Chrome DevTools to AI coding assistants.
Resumen
Resumen Principal
Google ha lanzado una vista previa pública del nuevo servidor Chrome DevTools Model Context Protocol (MCP), una innovación significativa que integra las potentes capacidades de Chrome DevTools directamente en los agentes de codificación de Inteligencia Artificial. Este desarrollo aborda un desafío fundamental: la incapacidad de los agentes de IA para observar y comprender la ejecución real del código que generan en el navegador, lo que el texto describe como "programar con los ojos vendados". El servidor Chrome DevTools MCP cambia radicalmente esta situación al permitir que los asistentes de codificación de IA depuren páginas web en Chrome y aprovechen el análisis de rendimiento y las herramientas de depuración avanzadas. Esto no solo mejora drásticamente su precisión en la identificación y resolución de problemas, sino que también les otorga una visibilidad sin precedentes sobre el comportamiento del código en tiempo real, facilitando la creación de sitios web más robustos y eficientes.
Elementos Clave
- Integración Profunda de DevTools en Agentes de IA: El servidor Chrome DevTools MCP permite a los agentes de IA acceder directamente a las capacidades de depuración y análisis de rendimiento de Chrome DevTools. Esto elimina la "ceguera" que enfrentan actualmente, otorgándoles la habilidad de ver qué hace el código cuando se ejecuta en el navegador y cómo optimizarlo eficazmente.
- Estándar Abierto del Protocolo de Contexto del Modelo (MCP): El Model Context Protocol (MCP) es un estándar de código abierto diseñado para conectar grandes modelos de lenguaje (LLM) con herramientas y fuentes de datos externas. El servidor Chrome DevTools MCP extiende este protocolo para proporcionar capacidades de depuración cruciales, como la herramienta
performance_start_trace
, permitiendo a los LLM iniciar Chrome, registrar trazas de rendimiento y analizarlas para sugerir mejoras. - Casos de Uso Revolucionarios para la Depuración de IA: La implementación ofrece una amplia gama de aplicaciones prácticas, incluyendo la verificación automática de cambios de código, el diagnóstico de errores de red y consola (como problemas de CORS), la simulación de comportamiento del usuario para reproducir bugs, la depuración de estilos y diseño en vivo para resolver problemas de layout, y la automatización de auditorías de rendimiento para optimizar métricas como el LCP.
- Desarrollo Iterativo y Participación Comunitaria: El lanzamiento es una vista previa pública que busca activamente la retroalimentación de desarrolladores y proveedores para guiar el desarrollo incremental del proyecto. Esto subraya un enfoque colaborativo, donde la comunidad es invitada a contribuir con ideas y reportar incidencias a través de GitHub, asegurando que las futuras capacidades se alineen con las necesidades del ecosistema.
Análisis e Implicaciones
Esta iniciativa tiene el potencial de transformar la forma en que se desarrolla el software web con IA, moviendo a los agentes de codificación de ser meros generadores de código a colaboradores inteligentes capaces de depurar, refinar y optimizar en ciclos de desarrollo más eficientes y confiables. La capacidad de observar y diagnosticar problemas en tiempo real directamente en el navegador representa un avance significativo en la autonomía y la eficacia de la IA en la creación web.
Contexto Adicional
La publicación de esta vista previa pública el 23 de septiembre de 2025, muestra una visión ambiciosa y con visión de futuro, invitando a la comunidad a participar activamente en la configuración de la próxima generación de herramientas de desarrollo asistidas por IA.
Contenido
Chrome DevTools (MCP) for your AI agent
Published: September 23, 2025
We're launching today a public preview for the new Chrome DevTools Model Context Protocol (MCP) server, bringing the power of Chrome DevTools to AI coding assistants.
Coding agents face a fundamental problem: they are not able to see what the code they generate actually does when it runs in the browser. They're effectively programming with a blindfold on.
The Chrome DevTools MCP server changes this. AI coding assistants are able to debug web pages directly in Chrome, and benefit from DevTools debugging capabilities and performance insights. This improves their accuracy when identifying and fixing issues.
See for yourself how it works:
What is the Model Context Protocol (MCP)?
The Model Context Protocol (MCP) is an open-source standard for connecting large language models (LLMs) to external tools and data sources. The Chrome DevTools MCP server adds debugging capabilities to your AI agent.
For example, the Chrome DevTools MCP server provides a tool called
performance_start_trace
. When tasked to investigate the performance of your
website, an LLM can use this tool to start Chrome, open your website and use
Chrome DevTools to record a performance trace. The LLM can then analyze the
performance trace to suggest potential improvements. Using the MCP protocol, the
Chrome DevTools MCP server can bring new debugging capabilities to your coding
agent to make it better at building websites.
If you want to find out more about how MCP works, check out the MCP documentation.
What can you use it for?
Following are a few example prompts you can try out in the AI assistant of your choice like Gemini CLI.
Verify code changes in real-time
Generate a fix with your AI agent, and then automatically verify that the solution works as intended with Chrome DevTools MCP.
Prompt to try:
Verify in the browser that your change works as expected.
Diagnose network and console errors
Empower your agent to analyze network requests to uncover CORS issues or inspect console logs to understand why a feature isn't working as expected.
Prompt to try:
A few images on localhost:8080 are not loading. What's happening?
Simulate user behavior
Navigate, fill out forms, and click buttons to reproduce bugs and test complex user flows—all while inspecting the runtime environment.
Prompt to try:
Why does submitting the form fail after entering an email address?
Debug live styling and layout issues
Ask your AI agent to connect to a live page, inspect the DOM and CSS, and get concrete suggestions to fix complex layout problems like overflowing elements based on live data from the browser.
Prompt to try:
The page on localhost:8080 looks strange and off. Check what's happening there.
Automate performance audits
Instruct your AI agent to run a performance trace, analyze the results, and investigate specific performance issues like high LCP numbers.
Prompt to try:
Localhost:8080 is loading slowly. Make it load faster.
See our tool reference documentation for a list of all available tools.
Get started
To try this out, add the following config entry to your MCP client:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["chrome-devtools-mcp@latest"]
}
}
}
To check if it works, run the following prompt in your coding agent:
Please check the LCP of web.dev.
For more details, check out the Chrome DevTools MCP documentation on GitHub.
Get involved
We are building Chrome DevTools MCP incrementally, starting with the public preview version we're releasing today. We're actively looking for feedback from you and the community about which capabilities we should add next. Whether you're a developer using AI coding assistants or a vendor building the next generation of AI development tools, your insights will be invaluable and if something is missing or not working, please file an issue on GitHub.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-23 UTC."],[],[],null,[]]
Fuente: Chrome for Developers