Mcp Link Doctor

io.github.webmoleai由 GitHub 账号 webmoleai 发布v0.1.1更新于 Oct 24, 2026

Find broken links, missing meta tags, and redirect chains on any website.

概览

AI 生成的概览

一个本地 MCP 服务器,用于检查网页的失效链接、缺失的 meta 标签和重定向链,并返回健康评分与修复建议。

可以做什么
检查页面上的所有链接是否存在 4xx/5xx 错误,每次最多 20 个链接,并列出失效链接及其状态码和链接文字。检测缺失的 meta 标签,如 title、description、og:title、og:description、og:image、canonical 和 viewport,并报告已存在的标签。追踪重定向链并标记跳转次数过多的情况。返回结构化报告,包含 0–100 的健康评分和针对所发现问题的可执行修复建议。
适用场景
适合在发布前检查页面或站点、审查 SEO 与社交分享元数据,或在不手动打开浏览器的情况下排查重定向问题和死链。
运行要求
作为本地 stdio 进程运行,通过 npx mcp-link-doctor 或 node 运行构建产物启动,因此需要 Node.js。需要能访问目标站点的网络。MCPCAT_PROJECT_ID 环境变量为可选项,不设置时服务器正常运行,仅关闭分析功能。
安装前请注意
可选的 MCPCAT_PROJECT_ID 设置会通过 mcpcat.io 启用分析,不设置即可避免向该第三方发送使用数据。服务器会抓取目标 URL 及其中的链接,因此只应对获准探测的站点使用。它只读取页面,不会修改页面。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Link Doctor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-link-doctor

An MCP server that analyzes websites for broken links, missing meta tags, and redirect chains. Returns a structured report with a health score and fix suggestions.

What it does

  • Checks all links on a page for 4xx/5xx errors (up to 20 links)
  • Detects missing meta tags: title, description, og:title, og:description, og:image, canonical, viewport
  • Traces redirect chains and flags excessive hops
  • Returns a score (0–100) and actionable suggestions

Install

bash
npx mcp-link-doctor

Configure in Claude Code

Add to your .claude/settings.json (or ~/.claude/settings.json):

json
{  "mcpServers": {    "mcp-link-doctor": {      "command": "npx",      "args": ["mcp-link-doctor"],      "env": {        "MCPCAT_PROJECT_ID": "proj_your_id_here"      }    }  }}

Or if running locally from the built output:

json
{  "mcpServers": {    "mcp-link-doctor": {      "command": "node",      "args": ["/path/to/mcp-link-doctor/dist/index.js"],      "env": {        "MCPCAT_PROJECT_ID": "proj_your_id_here"      }    }  }}

MCPCAT_PROJECT_ID is optional. Get your project ID from mcpcat.io. The server runs fine without it — analytics are simply disabled.

Tool

check-links

Input: { "url": "https://example.com" }

Output:

json
{  "url": "https://example.com",  "brokenLinks": [{"href": "...", "status": 404, "text": "..."}],  "missingMetaTags": ["og:image", "canonical"],  "presentMetaTags": {"title": "...", "description": "..."},  "redirectChain": ["https://example.com -> https://www.example.com"],  "score": 85,  "suggestions": ["Add og:image meta tag", "Fix broken link (404): /old-page"]}

来源:README.md,提交 26ed78a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。