link-check-lite

io.github.tidybytetools由 GitHub 账号 tidybytetools 发布v1.1.1更新于 Nov 5, 2026

Check web links for status codes, broken links and redirect chains.

发布方自己的服务:check.tattoo: tattoo size and placement guide

概览

AI 生成的概览

检查一批网页链接,返回状态码、失效链接和重定向链,让助手核实文档或 README 中的网址是否可用。

可以做什么
  • 一次调用检查最多 200 个 http(s) 网址,可设置超时时间。
  • 为每个链接返回一条结果:状态码、是否正常、最终网址、重定向跳转和连接错误。
  • 识别 404、500、超时和域名错误等失效链接,并显示重定向最终指向哪里。
  • 它不会爬取整站、读取页面内容,也不判断链接是否安全。
适用场景
当你手上有一批网址,需要知道哪些还能打开、重定向到哪里时使用,例如发布前清理 README、文档、站点地图清单或书签。
运行要求
以 stdio 本地进程方式运行,通过 uvx 启动,需要安装 uv 工具,并需要 Python 3.10 或更新版本。无需 API 密钥、账号或环境变量。需要能访问被检查的网站。
安装前请注意
它会向你提供的每个网址发出外部请求,这些网站会看到请求。部分网站会拦截机器人,即使浏览器能打开也可能返回 403 或 429。它不遵守 robots.txt,也没有按站点限速,不要对同一站点的数千个页面使用。它不是安全性或诈骗检查工具。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Tidy Byte Tools]

link-check-lite

[License: MIT] [Python 3.10+] [MCP server] [MCP Registry] [PyPI downloads] [Glama score]

Free. No API key. Runs on your own computer. It only visits the links you give it.

A tool that checks a list of links. It tells you which ones work, which are broken, and where redirects end up. Need sitemaps, speed checks, sketchy-domain warnings or CSV reports? The paid version does that: link-check on Gumroad

MIT license. Python 3.10 or newer, on Windows, Mac and Linux. The checker itself uses only Python's built-in tools.

Install

pip install link-check-lite

Or use pipx, which keeps it in its own space:

pipx install link-check-lite

Want the newest code from GitHub instead?

pip install git+https://github.com/tidybytetools/link-check-lite

Use it

Put your links in a text file, one per line. Lines that start with # are skipped.

link-check-lite links.txtlink-check-lite links.txt -w 3 --timeout 20   # gentler and more patient

Example run:

OK   200 https://example.com/OK   200 https://httpbin.org/redirect/2  -> https://httpbin.org/get (2 redirects)FAIL 404 https://example.com/old-pageFAIL --- https://no-such-site.example  ([Errno -2] Name or service not known)
4 checked, 2 ok, 2 broken

Exit code is 0 when every link works and 1 when any link is broken, so it works in a cron job or CI.

When you run it in a terminal it ends with one short line about the paid version. --quiet turns it off, and it never shows when output is piped.

Known limits

  • Some sites block bots. They may answer 403 or 429 even when the page opens fine in a browser.
  • No JavaScript. Redirects done with JavaScript are not followed.
  • Text file only. No CSV input, no sitemaps, and results print to the screen.
  • No robots.txt and no per-site rate limit. It checks 5 links at a time with a small pause. Don't point it at thousands of pages on one site.
  • Not a safety check. It does not tell you if a link is a scam.

Lite vs paid

lite (free)link-check
Status codes and broken linksyesyes
Redirect chain and final URLyesyes
Text file inputyesyes
CSV input and sitemap URLs (with sitemap index)noyes
Response time and slow-link flagnoyes
http vs https checksnoyes
Look-alike and sketchy domain warnings (local rules)noyes
robots.txt and one-hit-per-second per sitenoyes
CSV, JSON and Markdown reportsnoyes

How it compares to other free tools

All of these are free. Pick what fits you.

link-check-litelycheelinkcheckermuffet
Checks a plain list of linksyesyesno, it crawlsno, it crawls
Crawls a whole sitenonoyesyes
Installpipbinary / cargopipbinary / go
Built-in MCP server for AI appsyesnonono
Lots of optionsnoyesyesyes

If you need to crawl a big site or check links inside Markdown files, lychee and linkchecker are great.

Use it with your AI app (MCP)

There is a small free MCP server built in. It gives your AI app one tool, check_links. No API key or account is needed. It needs uv, which gives you the uvx command.

Run it by hand to check it starts (it waits quietly for an app to talk to it):

uvx --from link-check-lite link-check-lite-mcp

Shorter way to start the same server: uvx link-check-lite mcp.

Pick your app below and copy the block. Restart the app after you save.

Claude Desktop

Open Settings > Developer > Edit Config. That opens claude_desktop_config.json. Add this:

json
{  "mcpServers": {    "link-check-lite": {      "command": "uvx",      "args": ["--from", "link-check-lite", "link-check-lite-mcp"]    }  }}

If Claude says it can't find uvx, run which uvx (Mac/Linux) or where uvx (Windows) and put that full path in "command".

Cursor

Put the same block in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

json
{  "mcpServers": {    "link-check-lite": {      "command": "uvx",      "args": ["--from", "link-check-lite", "link-check-lite-mcp"]    }  }}

VS Code

VS Code uses servers, not mcpServers. Put this in .vscode/mcp.json in your project, or run MCP: Open User Configuration to use it everywhere:

json
{  "servers": {    "link-check-lite": {      "type": "stdio",      "command": "uvx",      "args": ["--from", "link-check-lite", "link-check-lite-mcp"]    }  }}

Or add it with one command:

code --add-mcp '{"name":"link-check-lite","type":"stdio","command":"uvx","args":["--from","link-check-lite","link-check-lite-mcp"]}'

Cline

In the Cline panel, click the MCP Servers icon, open Configure, then click Configure MCP Servers. Add this inside mcpServers:

json
{  "mcpServers": {    "link-check-lite": {      "command": "uvx",      "args": ["--from", "link-check-lite", "link-check-lite-mcp"],      "disabled": false,      "autoApprove": []    }  }}

Codex

One command:

codex mcp add link-check-lite -- uvx --from link-check-lite link-check-lite-mcp

Or add this to ~/.codex/config.toml:

toml
[mcp_servers.link-check-lite]command = "uvx"args = ["--from", "link-check-lite", "link-check-lite-mcp"]

Gemini CLI

This repo is also a Gemini CLI extension. Install it with:

gemini extensions install https://github.com/tidybytetools/link-check-lite

Tool: check_links(urls, timeout=10.0). Send up to 200 links. It returns one result per link.

Use it in GitHub Actions

Link Check Lite is on the GitHub Marketplace. Check your links every time you push. Put your links in a text file, one per line. Then add this step to a workflow:

yaml
- uses: actions/checkout@v7- uses: tidybytetools/link-check-lite@v1  with:    file: links.txt          # one link per line    # fail-on-broken: "false"  # pass even if some links are broken

@v1 always points to the newest 1.x release. To stay on one exact release, use a full tag like @v1.1.2.

The step fails if any link is broken. It also writes a short report to the run summary. It installs link-check-lite from PyPI. Your links are sent only to the sites they point to.

Inputs

InputDefaultWhat it does
filelinks.txtText file with one link per line. Lines that start with # are skipped.
workers5How many links to check at the same time.
timeout10Seconds to wait for each link.
fail-on-brokentrueSet to false to pass the step even when some links are broken.
version(empty)link-check-lite version from PyPI. Empty gets the newest.
python-version3.12Python version to set up.

Outputs

OutputWhat it is
checkedHow many links were checked.
okHow many links were OK.
brokenHow many links were broken.

Use it from Python

python
from link_check_lite import check_linkprint(check_link("https://example.com"))# {'url': 'https://example.com', 'status': 200, 'ok': True, 'final_url': 'https://example.com', 'redirects': [], 'error': None}

For AI agents

  • Use when: you need to know if web links work and where their redirects end up.
  • Don't use when: you need to know if a link is safe, need a whole site crawled, or need speed or https checks. Use the paid version for those.
  • Input: a list of http(s) URLs (max 200 per MCP call), plus an optional timeout in seconds.
  • Output: a list of {url, status, ok, final_url, redirects, error}. status is null when the link could not connect. ok is true for 200-399. redirects lists each hop as "CODE url".
  • CLI exit code is 0 when all links work and 1 when any link is broken or on error. See also llms.txt.

Tests

pip install "mcp>=1.10,<2"python3 -m unittest discover tests

The tests use a tiny local web server, so they don't need the internet.

License

MIT. See LICENSE.

来源:README.md,提交 98f68b7

工具

1

版本历史

2
  1. v1.1.1最新Nov 4, 2026
  2. v1.0.0Nov 4, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Check 集成