---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/seo/use-cases/analyze-core-web-vitals/claude
---
# How to Analyze Core Web Vitals with Claude

Claude helps you understand Core Web Vitals by explaining each metric in the context of your specific page. After running the analysis, ask Claude to prioritize which issues to fix first based on their ranking impact, and get concrete code suggestions for improving LCP, CLS, and INP right in your terminal session.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Check the Core Web Vitals for mysite.com using the SEO tool"
3. Claude runs check_vitals and reports LCP, CLS, and INP scores with pass/fail status
4. For failing metrics, ask: "What's causing the high LCP and how can I fix it?"
5. Claude provides specific optimization recommendations based on the data

## Example Prompt

```
Check Core Web Vitals for mysite.com/homepage. If any are failing, explain what's causing the issue and how to fix it.
```

## Tips

- Run vitals checks on your top 5 landing pages — they matter most for SEO
- Ask Claude to compare vitals before and after code changes
- Claude can suggest specific code optimizations for framework-specific issues
