Pages Websites
Page Lighthouse Laboratory Evidence MCP
Run a Lighthouse audit on a page to get performance, accessibility and SEO scores. Call the Page Lighthouse Audit API via REST or MCP to automate SEO research.
Page Lighthouse Laboratory Evidence AI Prompts & Use Cases
After connecting this MCP tool to your AI assistant, you can ask the questions below. Replace bracketed placeholders with your own inputs and use the supported values in Arguments.
New to Nexscope MCP? Follow the connection guide, then use the prompts below. The Integration and Parameters & Response tabs contain the connection steps, call example, and technical reference.
1. Check Desktop Page Performance
Prompt: Run a desktop Lighthouse assessment of [public page URL]. Summarize the returned laboratory performance evidence and distinguish it from real-user field data.
2. Check The Mobile Page
Prompt: Run a mobile Lighthouse assessment of [public page URL]. Summarize the returned laboratory performance evidence and distinguish it from real-user field data.
3. Compare Desktop And Mobile Lab Evidence
Prompt: Run exactly two Lighthouse assessments of [public page URL], one desktop and one mobile. Compare returned largest-contentful-paint, layout shift and blocking-time metrics with device and fetch time. These are separate lab observations, not a controlled causal experiment or real-user field data.
What You Need to Provide
A submitted task is not a completed result. Keep its reference and check completion before summarizing output; do not create duplicate jobs.
Missing values are not zero. Interpret only returned evidence within its observation period and sample scope.
Step 1 · Connect
Connect Your AI Assistant
Connect a compatible MCP client to Nexscope, then select this tool from your assistant. Use the connection settings in your client to complete authentication.
POST https://api.nexscope.ai/mcp
MCP-Protocol-Version: 2025-11-25
Content-Type: application/jsonAuthentication
Use OAuth 2.1 Authorization Code with PKCE and the mcp:tools scope. API keys remain supported as a compatibility option.
Authorization: Bearer nk-xxxxxxxxxxxxxxxxxUsing an API key? Get your key from API Access and include it in the Authorization header shown above.
Call this MCP tool
nexscope_page_lighthousehttps://api.nexscope.ai/mcptools/callInitialize an MCP 2025-11-25 Streamable HTTP session at https://api.nexscope.ai/mcp, then use tools/call.
{
"jsonrpc": "2.0",
"id": "page-lighthouse-1",
"method": "tools/call",
"params": {
"name": "nexscope_page_lighthouse",
"arguments": {
"device": "DESKTOP",
"url": "nexscope"
}
}
}MCP 2025-11-25 · Streamable HTTPProgress is delivered on the original POST SSE response. GET SSE carries notifications; reconnecting must query existing asynchronous work rather than submit again.
Asynchronous task workflow
- 1. Create once
Keep the returned taskId.
- 2. Query with backoff
Use nexscope_media_task_result after 5 seconds, then 10, 20, and 30 seconds.
- 3. Use final result
Stop at success, failure, or timeout.
{
"jsonrpc": "2.0",
"id": "page-lighthouse-result-1",
"method": "tools/call",
"params": {
"name": "nexscope_media_task_result",
"arguments": {
"skillSlug": "page-lighthouse",
"taskId": "TASK_ID_FROM_THE_GENERATION_RESULT"
}
}
}Arguments
| Name | Type | Required | Description |
|---|---|---|---|
device | string | optional | - |
url | string | required | - |
Response fields
Treat structuredContent as the programmatic API response payload.
| Name | Type | Required | Description |
|---|---|---|---|
code | integer | required | 0 is a successful envelope; inspect data.status separately. Allowed: 0, 42008, 42009 |
cost | string | required | Elapsed processing milliseconds; not price. -1 for non-web context. |
data | object | required | Data value used by this API operation. |
data.callId | string | null | optional | Call id value used by this API operation. |
data.completedAt | string | integer | null | optional | Completed at value used by this API operation. |
data.coverage | object | optional | Coverage value used by this API operation. |
data.coverage.missing | array | optional | Missing value used by this API operation. |
data.coverage.missing[] | object | required | Item in data coverage missing. |
data.coverage.missing[].field | string | optional | Field value used by this API operation. |
data.coverage.missing[].reason | string | optional | Reason value used by this API operation. |
data.coverage.status | string | optional | Status value used by this API operation. |
data.requestedAt | string | integer | null | optional | Requested at value used by this API operation. |
data.result | object | null | required | Result value used by this API operation. |
data.result.coverage | object | required | Coverage value used by this API operation. |
data.result.coverage.invalidItemCount | integer | required | Invalid item count value used by this API operation. Minimum: 0 |
data.result.coverage.limit | integer | required | Limit value used by this API operation. Constant: 1 |
data.result.coverage.maxCrawlPages | integer | null | required | Max crawl pages value used by this API operation. Minimum: 0 |
data.result.coverage.offset | integer | required | Offset value used by this API operation. Constant: 0 |
data.result.coverage.pagesCrawled | integer | null | required | Pages crawled value used by this API operation. Minimum: 0 |
data.result.coverage.providerTotal | integer | null | required | Provider total value used by this API operation. Minimum: 0 |
data.result.coverage.returnedCount | integer | required | Returned count value used by this API operation. Minimum: 0 Maximum: 1 |
data.result.coverage.sampled | boolean | required | Sampled value used by this API operation. Constant: true |
data.result.coverage.stopReason | string | null | required | Stop reason value used by this API operation. |
data.result.coverage.truncated | boolean | required | Truncated value used by this API operation. |
data.result.items | array | required | Items value used by this API operation. Maximum items: 1 |
data.result.items[] | object | required | Item in data result items. |
data.result.items[].categories | object | required | Categories value used by this API operation. |
data.result.items[].categories.accessibility | number | null | required | Accessibility value used by this API operation. Minimum: 0 Maximum: 1 |
data.result.items[].categories.bestPractices | number | null | required | Best practices value used by this API operation. Minimum: 0 Maximum: 1 |
data.result.items[].categories.performance | number | null | required | Performance value used by this API operation. Minimum: 0 Maximum: 1 |
data.result.items[].categories.seo | number | null | required | Seo value used by this API operation. Minimum: 0 Maximum: 1 |
data.result.items[].device | string | required | Device value used by this API operation. Allowed: DESKTOP, MOBILE |
data.result.items[].fetchTime | integer | null | required | Fetch time value used by this API operation. Minimum: 0 |
data.result.items[].finalUrl | string | null | required | Final url value used by this API operation. |
data.result.items[].lighthouseVersion | string | null | required | Lighthouse version value used by this API operation. |
data.result.items[].metrics | object | required | Metrics value used by this API operation. |
data.result.items[].metrics.cumulativeLayoutShift | number | null | required | Cumulative layout shift value used by this API operation. Minimum: 0 |
data.result.items[].metrics.firstContentfulPaintMs | number | null | required | First contentful paint ms value used by this API operation. Minimum: 0 |
data.result.items[].metrics.largestContentfulPaintMs | number | null | required | Largest contentful paint ms value used by this API operation. Minimum: 0 |
data.result.items[].metrics.speedIndexMs | number | null | required | Speed index ms value used by this API operation. Minimum: 0 |
data.result.items[].metrics.totalBlockingTimeMs | number | null | required | Total blocking time ms value used by this API operation. Minimum: 0 |
data.result.items[].requestedUrl | string | required | Requested url value used by this API operation. |
data.result.missingFields | array | required | Missing fields value used by this API operation. |
data.result.missingFields[] | object | required | Item in data result missingFields. |
data.result.missingFields[].field | string | required | Field value used by this API operation. |
data.result.missingFields[].reason | string | required | Reason value used by this API operation. Allowed: UPSTREAM_FIELD_MISSING, UPSTREAM_FIELD_INVALID, DUPLICATE_UPSTREAM_ITEM, UPSTREAM_ITEM_MISSING |
data.result.source | object | required | Source value used by this API operation. |
data.result.source.candidateId | string | required | Candidate id value used by this API operation. Constant: MD-PW-15 |
data.result.source.collectedAt | integer | null | required | Collected at value used by this API operation. Minimum: 0 |
data.result.source.observationKind | string | required | Observation kind value used by this API operation. Constant: LAB_RUN |
data.result.source.product | string | required | Product value used by this API operation. Constant: on_page |
data.result.source.provider | string | required | Provider value used by this API operation. Constant: DATAFORSEO |
data.result.source.queriedAt | integer | required | Queried at value used by this API operation. Minimum: 0 |
data.result.source.sourceCallId | string | null | required | Source call id value used by this API operation. |
data.result.source.sourcePlanVersion | string | null | required | Source plan version value used by this API operation. |
data.result.source.sourceSchemaVersion | string | null | required | Source schema version value used by this API operation. |
data.result.warnings | array | required | Warnings value used by this API operation. |
data.result.warnings[] | string | required | Item in data result warnings. |
data.schemaVersion | string | null | optional | Schema version value used by this API operation. |
data.source | string | null | optional | Source value used by this API operation. |
data.status | string | optional | Status value used by this API operation. Allowed: SUCCESS, PARTIAL, EMPTY, PROCESSING, UNKNOWN, FAILED |
data.usage | object | null | optional | Usage value used by this API operation. |
data.usage.billingStatus | string | null | optional | Billing status value used by this API operation. |
data.usage.chargedCredits | string | integer | null | optional | Charged credits value used by this API operation. |
msg | string | null | required | Available upstream msg/errmsg/message is preferred for success and failure; Chinese is translated to English. Missing successful message is null. Platform-only errors and task states use platform English. Message text never determines success or retry. |
time | string | required | yyyy-MM-dd HH:mm:ss |
traceId | string | null | required | Trace id value used by this API operation. |
ts | string | required | Epoch milliseconds; global long serializer. |
Example Q&A
Based on a published documentation sample, not a live tool call.
Your Question
Run a desktop Lighthouse assessment of http://www.baidu.com/. Summarize the returned laboratory performance evidence and distinguish it from real-user field data.
Example Answer
The desktop sample for baidu.com reports a performance score of 0.38 and largest contentful paint of 2,748.666 milliseconds. These are Lighthouse laboratory observations from the recorded run, not real-user Core Web Vitals.
About this sample: Based on a published documentation sample, not a new or live tool call. Preserve its dates, source scope and missing values; sample metrics do not describe current performance. Required transport wrapper values (cost, time, traceId and ts) are illustrative additions for schema completeness, not published timings; the result data is preserved.
View the Published Sample Data (JSON)
Published REST data example. Use Parameters & Response for MCP arguments when calling this tool.
Data Example
Sample request and response
Request parameters
{
"url": "http://www.baidu.com/",
"device": "DESKTOP"
}Response
{
"code": 0,
"msg": null,
"data": {
"usage": {
"billingStatus": "CHARGED",
"chargedCredits": 8
},
"callId": "f4c76eda-8d3f-473d-ada8-cd98fad01877",
"result": {
"items": [
{
"device": "DESKTOP",
"metrics": {
"speedIndexMs": 4603.817398534154,
"totalBlockingTimeMs": 1153.360500000001,
"cumulativeLayoutShift": 0.0004414091001955462,
"firstContentfulPaintMs": 2508.5730000000003,
"largestContentfulPaintMs": 2748.666
},
"finalUrl": "https://www.baidu.com/",
"fetchTime": 1789640914298,
"categories": {
"seo": 0.92,
"performance": 0.38,
"accessibility": 0.73,
"bestPractices": 0.41
},
"requestedUrl": "http://www.baidu.com/",
"lighthouseVersion": "13.4.0"
}
],
"source": {
"product": "on_page",
"provider": "DATAFORSEO",
"queriedAt": 1789641147084,
"candidateId": "MD-PW-15",
"collectedAt": 1789640914298,
"sourceCallId": null,
"observationKind": "LAB_RUN",
"sourcePlanVersion": null,
"sourceSchemaVersion": null
},
"coverage": {
"limit": 1,
"offset": 0,
"sampled": true,
"truncated": false,
"stopReason": null,
"pagesCrawled": null,
"maxCrawlPages": null,
"providerTotal": null,
"returnedCount": 1,
"invalidItemCount": 0
},
"warnings": [
"Laboratory measurement; not real-user Core Web Vitals."
],
"missingFields": []
},
"source": "dataforseo",
"status": "SUCCESS",
"coverage": {
"status": "COMPLETE",
"missing": []
},
"completedAt": 1789641147084,
"requestedAt": 1789640663703,
"schemaVersion": "MDX-F2-PW15-1.0"
}
}View the MCP Request & Response Format
Examples
Based on a published documentation sample, not a live tool call.
The JSON-RPC envelope below illustrates how the shown arguments and payload fit into MCP. It is not captured network traffic or proof of a successful call. Workflow-only examples do not include a result.
MCP Request
{
"jsonrpc": "2.0",
"id": "page-lighthouse-example",
"method": "tools/call",
"params": {
"name": "nexscope_page_lighthouse",
"arguments": {
"url": "http://www.baidu.com/",
"device": "DESKTOP"
}
}
}MCP Response Format
{
"jsonrpc": "2.0",
"id": "page-lighthouse-example",
"result": {
"content": [
{
"type": "text",
"text": "{\"code\":0,\"msg\":null,\"data\":{\"usage\":{\"billingStatus\":\"CHARGED\",\"chargedCredits\":8},\"callId\":\"f4c76eda-8d3f-473d-ada8-cd98fad01877\",\"result\":{\"items\":[{\"device\":\"DESKTOP\",\"metrics\":{\"speedIndexMs\":4603.817398534154,\"totalBlockingTimeMs\":1153.360500000001,\"cumulativeLayoutShift\":0.0004414091001955462,\"firstContentfulPaintMs\":2508.5730000000003,\"largestContentfulPaintMs\":2748.666},\"finalUrl\":\"https://www.baidu.com/\",\"fetchTime\":1789640914298,\"categories\":{\"seo\":0.92,\"performance\":0.38,\"accessibility\":0.73,\"bestPractices\":0.41},\"requestedUrl\":\"http://www.baidu.com/\",\"lighthouseVersion\":\"13.4.0\"}],\"source\":{\"product\":\"on_page\",\"provider\":\"DATAFORSEO\",\"queriedAt\":1789641147084,\"candidateId\":\"MD-PW-15\",\"collectedAt\":1789640914298,\"sourceCallId\":null,\"observationKind\":\"LAB_RUN\",\"sourcePlanVersion\":null,\"sourceSchemaVersion\":null},\"coverage\":{\"limit\":1,\"offset\":0,\"sampled\":true,\"truncated\":false,\"stopReason\":null,\"pagesCrawled\":null,\"maxCrawlPages\":null,\"providerTotal\":null,\"returnedCount\":1,\"invalidItemCount\":0},\"warnings\":[\"Laboratory measurement; not real-user Core Web Vitals.\"],\"missingFields\":[]},\"source\":\"dataforseo\",\"status\":\"SUCCESS\",\"coverage\":{\"status\":\"COMPLETE\",\"missing\":[]},\"completedAt\":1789641147084,\"requestedAt\":1789640663703,\"schemaVersion\":\"MDX-F2-PW15-1.0\"},\"cost\":\"-1\",\"time\":\"2026-01-01 00:00:01\",\"traceId\":null,\"ts\":\"1767225601000\"}"
}
],
"structuredContent": {
"code": 0,
"msg": null,
"data": {
"usage": {
"billingStatus": "CHARGED",
"chargedCredits": 8
},
"callId": "f4c76eda-8d3f-473d-ada8-cd98fad01877",
"result": {
"items": [
{
"device": "DESKTOP",
"metrics": {
"speedIndexMs": 4603.817398534154,
"totalBlockingTimeMs": 1153.360500000001,
"cumulativeLayoutShift": 0.0004414091001955462,
"firstContentfulPaintMs": 2508.5730000000003,
"largestContentfulPaintMs": 2748.666
},
"finalUrl": "https://www.baidu.com/",
"fetchTime": 1789640914298,
"categories": {
"seo": 0.92,
"performance": 0.38,
"accessibility": 0.73,
"bestPractices": 0.41
},
"requestedUrl": "http://www.baidu.com/",
"lighthouseVersion": "13.4.0"
}
],
"source": {
"product": "on_page",
"provider": "DATAFORSEO",
"queriedAt": 1789641147084,
"candidateId": "MD-PW-15",
"collectedAt": 1789640914298,
"sourceCallId": null,
"observationKind": "LAB_RUN",
"sourcePlanVersion": null,
"sourceSchemaVersion": null
},
"coverage": {
"limit": 1,
"offset": 0,
"sampled": true,
"truncated": false,
"stopReason": null,
"pagesCrawled": null,
"maxCrawlPages": null,
"providerTotal": null,
"returnedCount": 1,
"invalidItemCount": 0
},
"warnings": [
"Laboratory measurement; not real-user Core Web Vitals."
],
"missingFields": []
},
"source": "dataforseo",
"status": "SUCCESS",
"coverage": {
"status": "COMPLETE",
"missing": []
},
"completedAt": 1789641147084,
"requestedAt": 1789640663703,
"schemaVersion": "MDX-F2-PW15-1.0"
},
"cost": "-1",
"time": "2026-01-01 00:00:01",
"traceId": null,
"ts": "1767225601000"
},
"isError": false
}
}