link-check-lite
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: リンク切れチェック
Links
- Website — product page with prices and options
- Apify (no-install cloud version) — pay only for what you use
- Hosted HTTP Status Checker on Apify — thousands of URLs, on a schedule, no install
- Pro version on Gumroad — sitemaps, speed checks, sketchy-domain warnings, CSV reports
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
timeoutin seconds. - Output: a list of
{url, status, ok, final_url, redirects, error, ms}.statusis null when the link could not connect.okis true for 200-399.redirectslists each hop as"CODE url".msis the time in milliseconds. - CLI exit code for
link-check-lite fileis 0 when all links work and 1 when any link is broken or on error. Forlink-check-lite status, exit 0 means every URL returned a status; exit 1 means one or more could not be reached. See alsollms.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.
Metadata
Release files for link-check-lite 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| link_check_lite-1.2.0.tar.gz | 15.3 kB | With provenance | Details for link_check_lite-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| link_check_lite-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for link_check_lite-1.2.0-py3-none-any.whl |
Total release size: 27.1 kB
Release files / link_check_lite-1.2.0.tar.gz
| Download URL | link_check_lite-1.2.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
668322d3f8de93b50ae460bf76f95c38fc78f98f0e47515748f1f34a665192d4
|
|
BLAKE2b-256 checksum How to use checksums |
92f3e101162d9f5b4e45e610fe3d2c8b7f8904c7eb11f31a8254824fb3319132
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / link_check_lite-1.2.0-py3-none-any.whl
| Download URL | link_check_lite-1.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75a3fdb55e455009f0ce847988a01c8a6ce5ef9946b96d49399edace84377161
|
|
BLAKE2b-256 checksum How to use checksums |
c3ee2565ccd3b234756f5c69734ca37532917f3022b45673bfd1aa5e5fce7bbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for link-check-lite 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for link_check_lite-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.