Skip to main content
Glama

LinkRescue MCP 服务器

PyPI License: MIT MCPize

快速查找损坏的联盟链接,按影响程度排序,并生成 AI 代理可执行的修复建议。

一次调用。检查 38+ 个联盟网络。预估收入损失。

一键安装: 在 MCPize 上安装 | pip install linkrescue-mcp

LinkRescue MCP 通过模型上下文协议 (MCP) 提供断链扫描、监控和修复工作流,使 Claude 和 Cursor 等工具能够直接运行链接健康检查操作。

你将获得

  • check_broken_links:扫描 URL(或站点地图)并返回结构化的断链报告

  • monitor_links:为网站设置定期监控

  • get_fix_suggestions:生成优先级的修复建议

  • health_check:验证 MCP 服务器和后端 API 的连接性

如果 LinkRescue 后端 API 无法访问,服务器将回退到真实的模拟数据,以便本地测试和演示能够继续运行。

Related MCP server: webcheck-mcp

快速开始

{
  "mcpServers": {
    "linkrescue": {
      "command": "linkrescue-mcp"
    }
  }
}

然后询问你的 AI 代理:

"Scan example.com for broken affiliate links"

免费版 vs 专业版

工具

免费版

专业版 ($19/月)

代理版 ($29/月)

health_check

是

是

是

check_broken_links (最多 50 页)

是

是

是

check_broken_links (最多 2,000 页)

-

是

是

check_broken_links (无限 + 站点地图爬取)

-

-

是

get_fix_suggestions

-

是

是

monitor_links (每日)

-

是

是

monitor_links (每小时 + Webhooks)

-

-

是

收入损失预估

-

是

是

多站点监控

-

5 个站点

25 个站点

免费版提供单页断链检查。专业版解锁完整的爬虫 + 修复建议 + 定期监控。代理版增加了每小时检查、Webhooks 和无限站点数量。

在 MCPize 上升级到专业版 — $19/月 或 $190/年。代理版 $29/月 或 $290/年。

安装

MCPize (推荐)

通过托管服务一键安装:在 MCPize 上安装

PyPI

pip install linkrescue-mcp
linkrescue-mcp

从源码安装

git clone https://github.com/carsonroell-debug/linkrescue-mcp.git
cd linkrescue-mcp
pip install -r requirements.txt
python main.py

MCP 端点:

  • http://localhost:8000/mcp

配置

变量

描述

默认值

LINKRESCUE_API_BASE_URL

LinkRescue API 的基础 URL

http://localhost:3000/api/v1

LINKRESCUE_API_KEY

用于认证请求的 API 密钥

空

示例:

export LINKRESCUE_API_BASE_URL="https://www.linkrescue.io/api/v1"
export LINKRESCUE_API_KEY="your-api-key"
linkrescue-mcp

在 linkrescue.io/settings/api 获取 API 密钥(仅限专业版和代理版)。

运行选项

通过已安装的入口点运行:

linkrescue-mcp

直接从源码运行:

python main.py

通过 FastMCP CLI 运行:

fastmcp run main.py --transport streamable-http --port 8000

连接 MCP 客户端

Claude Desktop

将其添加到 claude_desktop_config.json:

{
  "mcpServers": {
    "linkrescue": {
      "command": "linkrescue-mcp"
    }
  }
}

Claude Code

claude mcp add linkrescue --transport http http://localhost:8000/mcp

尝试一下

fastmcp list-tools main.py
fastmcp call-tool main.py health_check '{}'
fastmcp call-tool main.py check_broken_links '{"url":"https://example.com"}'

工具输入和输出

输入:

  • url (必填):要扫描的网站 URL

  • sitemap_url (可选,代理版):从站点地图爬取

  • max_depth (可选,默认 3):爬取深度

返回扫描元数据、断链详情和汇总统计信息。专业版和代理版包含断链联盟链接的预估月收入损失。

输入:

  • url (必填)

  • frequency_hours (可选,默认 24;代理版支持 1)

返回监控 ID、计划详情和状态。免费版返回模拟监控(无持久化)。

get_fix_suggestions

输入:

  • 来自 check_broken_links 的完整报告,或

  • 原始 broken_links 数组,或

  • 任意格式的 JSON 字符串

返回优先级的操作和建议的修复步骤。仅限专业版和代理版。

health_check

无输入。返回服务器状态和后端 API 可达性。

部署

Smithery

此仓库包含 smithery.yaml 和 smithery.json。

  1. 将仓库推送到 GitHub

  2. 在 Smithery 中创建/添加服务器

  3. 将 Smithery 指向此仓库

Docker / 托管平台

包含一个用于 Railway、Fly.io 和其他容器主机的 Dockerfile。

# Railway
railway up

# Fly.io
fly launch
fly deploy

在你的主机环境中设置 LINKRESCUE_API_BASE_URL 和 LINKRESCUE_API_KEY。

架构

Agent (Claude, Cursor, etc.)
  -> MCP
LinkRescue MCP Server (this repo)
  -> HTTP API
LinkRescue Backend API (linkrescue.io)

此服务器是 MCP 工具调用与 LinkRescue API 操作之间的转换层。

许可证

MIT — 由 Freedom Engineers 构建

相关项目

其他 README 版本

  • 开发者专注版本:README.dev.md

  • 市场专注版本:README.marketplace.md

Available Tools

4 tools
get_fix_suggestionsA

Given a broken links report, returns prioritized remediation suggestions.

Each suggestion includes the broken URL, a recommended action (update link, follow redirect, remove, etc.), a human-readable explanation, and a code snippet where applicable.

Accepts either the full JSON report from check_broken_links or just the broken_links array.

Inputs: broken_links_report (required). Returns: object

health_checkA

Confirms the LinkRescue MCP server is alive and can reach the backend API.

Use this to verify connectivity before running scans. Returns server status, API reachability, and current configuration.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: check_broken_links for scanning, get_fix_suggestions for remediation, health_check for connectivity, and monitor_links for ongoing monitoring. There is no overlap or ambiguity in their functions.

    Naming Consistency4/5

    The tools follow a consistent verb_noun pattern (check_broken_links, get_fix_suggestions, monitor_links), with one minor deviation (health_check uses noun_verb). This is mostly consistent and readable.

    Tool Count5/5

    With 4 tools, the server is well-scoped for its purpose of broken link detection and management. Each tool earns its place, covering scanning, remediation, monitoring, and health checks without being too sparse or bloated.

    Completeness5/5

    The tool set provides complete coverage for the domain: check_broken_links for detection, get_fix_suggestions for remediation, monitor_links for ongoing tracking, and health_check for connectivity. There are no obvious gaps, and agents can follow a full workflow from scan to fix to monitoring.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      MCP server for website SEO + GEO analysis. Scan any URL to get scores across 5 categories (SEO, GEO, Performance, Security, Accessibility) with actionable fix recommendations. Enables AI coding assistants to audit websites and implement fixes autonomously.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Website health checker MCP server - SEO audit, accessibility scan, broken link detection, performance analysis, and page comparison.
      47 npm
      3
      MIT