# redirect-check-lite

> Free, MIT-licensed tool that tests a site-move redirect map. For each old URL it follows the real redirects and says if they end on the right new page with a permanent redirect and no chain. Has a CLI, a Python API and a stdio MCP server. Free tier checks the first 200 pairs.

- Install: `pip install redirect-check-lite` (or from GitHub: `pip install git+https://github.com/tidybytetools/redirect-check-lite`)
- CLI: `redirect-check-lite MAP [--base URL] [--new-base URL] [--expect permanent|any|301|302|307|308] [--max-chain N] [--ignore-query] [--csv OUT.csv] [--json] [--fail-on fail|warn|never]`. MAP is a file of `old,new` pairs (CSV, tab, semicolon, pipe or `old -> new`), or `-` for stdin. Exit 0 ok, 1 error, 2 problems found.
- Python: `from redirect_check_lite import check_pairs` -> dict with `summary`, `rows`, `truncated`, `skipped`.
- MCP: `uvx redirect-check-lite mcp`. Tools: `check_redirects(path|text, base, new_base, expect, max_chain, ignore_query)` and `check_one_redirect(old_url, new_url, expect)`. Both only send HEAD or GET requests.
- Verdicts: ok, chain, temporary-redirect, wrong-status, wrong-target, no-redirect, not-redirected, target-broken, loop, too-many-hops, error.

## Use when
- You are moving a site, changing a domain or cleaning up URLs and need to prove every old URL lands on the right page.
- You want a pass or fail check in CI (exit code 2 on problems).

## Don't use when
- You need to check more than 200 pairs, or run it from an API or on a schedule with webhooks: the pay-per-use version does that: https://tidybytetools.com/tools/redirect-map-checker/
- You want to crawl a whole site to find redirects (this tool checks the pairs you give it).

## Links
- [README](https://github.com/tidybytetools/redirect-check-lite/blob/main/README.md)
- [Pay-per-use version](https://tidybytetools.com/tools/redirect-map-checker/)
