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 整合