mcpField
L
Lighthouse & Accessibility Audit for AI Agents

Lighthouse & Accessibility Audit for AI Agents

远程服务
apify.com开发工具04 天前更新

关于 Lighthouse & Accessibility Audit for AI Agents

面向 AI Agent 的远程审计服务,使用 Lighthouse 和 axe 检查网页,并汇总三次运行的中位结果。适用于评估性能、Core Web Vitals 和无障碍状况,提供通过/失败结论及优先修复项。

主要功能

  1. 01Lighthouse 评分与 Core Web Vitals
  2. 02axe 无障碍问题报告
  3. 03三次运行结果的中位数
  4. 04通过/失败状态与优先修复项

适用场景

  1. 01发布前检查网页性能
  2. 02查找网页无障碍问题

MCP 相关

通过远程流式 HTTP MCP 服务提供审计能力。MCP 客户端可提交网页 URL 并获取审计结果。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apify.com/?tools=fluidfaith/lighthouse-gate
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.apify.com/?tools=fluidfaith/lighthouse-gate需要授权

工具

详细介绍

面向 AI Agent 的 Lighthouse 与无障碍审核

Lighthouse 评分、Core Web Vitals 和 axe 无障碍问题,取 3 次运行的中位数,提供 PASS/FAIL 结果和主要修复建议。

  • Apify Store:https://apify.com/fluidfaith/lighthouse-gate
  • MCP 服务(远程、可流式传输的 HTTP):https://mcp.apify.com/?tools=fluidfaith/lighthouse-gate
  • 价格:每个网址、每种设备类型收费 $0.02。失败项目免费,且单次运行的最高收费不会超出上限。

Claude Code、Cursor、VS Code(MCP 配置)

{
  "mcpServers": {
    "lighthouse-gate": {
      "url": "https://mcp.apify.com/?tools=fluidfaith/lighthouse-gate",
      "headers": { "Authorization": "Bearer ${APIFY_TOKEN}" }
    }
  }
}

Claude Code 单行命令:claude mcp add --transport http lighthouse-gate "https://mcp.apify.com/?tools=fluidfaith/lighthouse-gate" --header "Authorization: Bearer $APIFY_TOKEN"

Python(apify-client)

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("fluidfaith/lighthouse-gate").call(run_input={"urls": ["https://example.com/"], "formFactors": ["mobile"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

LangChain

from langchain_apify import ApifyActorsTool
tool = ApifyActorsTool("fluidfaith/lighthouse-gate")

JavaScript(apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fluidfaith/lighthouse-gate').call({"urls": ["https://example.com/"], "formFactors": ["mobile"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。