Skip to main content
Glama
io.github.tidybytetools/link-check-lite

io.github.tidybytetools/link-check-lite

link-check-lite

Tests License: MIT Version Apify

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.

Example

Input (a text file with one URL per line):

https://example.com/
https://example.com/this-page-does-not-exist

Output from an actual run of link-check-lite:

OK   200 https://example.com/
FAIL 404 https://example.com/this-page-does-not-exist

2 checked, 1 ok, 1 broken

A 404 or 410 is broken. A 301 still works; you may want to update the old address.

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.

Also searched as: ES: comprobar enlaces rotos, enlaces 404 / PT: verificar links quebrados / DE: defekte Links prüfen / FR: vérifier les liens brisés / JA: リンク切れチェック

Related MCP server: MCP Web 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.txt
link-check-lite links.txt -w 3 --timeout 20   # gentler and more patient

See the real sample run at the top of this page.

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

Status mode

Want a compact report with the status code, redirect target and response time? Use status. Pass a file, or pipe URLs in (one per line). Lines that start with # are skipped. It checks at most 10 URLs at a time and waits up to 10 seconds for each one (you can change both).

link-check-lite status urls.txt
link-check-lite status urls.txt -w 3 --timeout 20
cat urls.txt | link-check-lite status

Output from an actual run of link-check-lite status (times change a little on each run):

200     53ms  https://example.com/
301    137ms  https://httpbingo.org/redirect-to?url=https://example.com/&status_code=301  -> https://example.com/ (200)
404     75ms  https://example.com/this-page-does-not-exist

3 checked

A 301 line shows the first status, then -> and the address it ended at. The number in parentheses is the final status.

Exit code is 0 when every URL returned a status, and 1 when any URL could not be reached (timeout, bad host). A 404 still counts as a status, so it does not fail the command.

Need thousands of URLs on a schedule, or no install? Use our hosted HTTP Status Checker on Apify: https://apify.com/store?search=tidybytetools%20http%20status

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 (or stdin in status mode). 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 (at most 10) 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 links

yes

yes

Redirect chain and final URL

yes

yes

Text file input (stdin in status mode)

yes

yes

Response time (status mode)

yes

yes

CSV input and sitemap URLs (with sitemap index)

no

yes

Slow-link flag

no

yes

http vs https checks

no

yes

Look-alike and sketchy domain warnings (local rules)

no

yes

robots.txt and one-hit-per-second per site

no

yes

CSV, JSON and Markdown reports

no

yes

How it compares to other free tools

All of these are free. Pick what fits you.

link-check-lite

lychee

linkchecker

muffet

Checks a plain list of links

yes

yes

no, it crawls

no, it crawls

Crawls a whole site

no

no

yes

yes

Install

pip

binary / cargo

pip

binary / go

Built-in MCP server for AI apps

yes

no

no

no

Lots of options

no

yes

yes

yes

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 two tools, check_links and check_status. 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:

{
  "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):

{
  "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:

{
  "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:

{
  "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:

[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

Tools: check_links(urls, timeout=10.0) and check_status(urls, timeout=10.0). Send up to 200 links. Each returns one result per link. check_status is the compact status, redirect target and response time report.

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:

- 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.2.0.

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

Input

Default

What it does

file

links.txt

Text file with one link per line. Lines that start with # are skipped.

workers

5

How many links to check at the same time.

timeout

10

Seconds to wait for each link.

fail-on-broken

true

Set 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-version

3.12

Python version to set up.

Outputs

Output

What it is

checked

How many links were checked.

ok

How many links were OK.

broken

How many links were broken.

Use it from Python

from link_check_lite import check_link
print(check_link("https://example.com"))
# {'url': 'https://example.com', 'status': 200, 'ok': True, 'final_url': 'https://example.com', 'redirects': [], 'error': None, 'ms': 53}
# ms is the time in milliseconds (the number changes a little each run)

For AI agents

  • Use when: you need to know if web links work and where their redirects end up, or you need a bulk status report with response times.

  • Don't use when: you need to know if a link is safe, need a whole site crawled, or need a slow-link flag, sitemaps or https checks. Use the paid version for those. For thousands of URLs on a schedule, or no install, use the hosted HTTP Status Checker on Apify: https://apify.com/store?search=tidybytetools%20http%20status

  • 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, ms}. status is null when the link could not connect. ok is true for 200-399. redirects lists each hop as "CODE url". ms is the time in milliseconds.

  • CLI exit code for link-check-lite file is 0 when all links work and 1 when any link is broken or on error. For link-check-lite status, exit 0 means every URL returned a status; exit 1 means one or more could not be reached. 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.

FAQ

What does it check? A text file of links, one per line. It reports status codes, redirects, and broken links. status mode also prints response time, and can read URLs from stdin.

Does it crawl my whole site? No. It only checks the links you give it. The Pro version can also read sitemaps.

Do the links I check get sent somewhere else? Only to the sites those links point to. Nothing is sent to us.

Does it work with AI apps? Yes. It includes a free MCP server. No API key.

License

MIT. See LICENSE.

Available Tools

2 tools
check_statusCheck URL statusA
Read-onlyIdempotent

Check the HTTP status code, redirect target and response time of each URL.

Use this when you need a compact status report: the status code, where a
redirect ends, and how many milliseconds each URL took. It does not crawl a
site or read page content; pass the exact links you want checked. Links that
are not http or https come back with ok false and an error. Checks run a few
at a time (at most 10) with a short pause, so they stay polite.

urls: up to 200 http(s) links.
timeout: seconds to wait for each link.

Returns one result per link: {url, status, ok, final_url, redirects, error, ms}.
status is the HTTP code of the last hop (null if it could not connect).
final_url is the redirect target (the same as url when it did not move).
ms is how long the check took, in milliseconds.

Inputs: urls (required), timeout. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation2/5

    check_links and check_status take identical parameters (urls, timeout) and return the identical result object {url, status, ok, final_url, redirects, error, ms}; the only differences are wording nuances ('which ones work' vs 'compact status report'). An agent has no reliable basis to pick one over the other, so they will effectively be used interchangeably.

    Naming Consistency5/5

    Both names follow the same check_<noun> snake_case convention (check_links, check_status), so the pattern is perfectly predictable. The weakness is semantic rather than stylistic — the noun suffix does not map to a real behavioral difference.

    Tool Count3/5

    Two tools is thin for this narrow domain, and since they duplicate each other the effective surface is a single operation. A lite link checker plausibly needs only one check tool, but having two near-clones makes the small count feel padded rather than focused.

    Completeness4/5

    The stated purpose — status codes, redirect chains, timeouts and per-link latency for a supplied list of URLs — is fully covered by the returned fields, and the description explicitly rules out crawling or content reading. Minor gaps (e.g. no single-URL convenience or batch input variants) are trivially workable, and the second tool adds no new capability.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to extract structured content from URLs, search the web via DuckDuckGo, monitor site availability, and convert HTML to markdown without requiring API keys.
      5
      38 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to validate AI infrastructure claims, check endpoint availability, solve CAPTCHA challenges, convert web pages to Markdown, search the web, extract structured JSON, and fetch bot-protected HTML through native tool calls.
      MIT