Skip to main content
Glama

redirect-check-lite

Tests License: MIT

Free tool that tests a site-move redirect map. Give it old URL, new URL pairs. It visits every old URL, follows the redirects, and tells you pass, warn or fail for each one, with a fix in plain words.

Need more than 200 pairs, or want to run it from an API or n8n? See the pay-per-use version: Redirect Map Checker.

Runs on your own computer. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.

Also searched as: site migration redirect checker, 301 redirect test, redirect map validator, check redirect chain, bulk redirect checker, redirect loop finder

Example

Your map (map.csv):

old,new
/old-a,/new-a
/old-c,/new-c
/gone,/new-a

Run:

redirect-check-lite map.csv --base https://old.example.com

You get:

PASS  line 2: https://old.example.com/old-a  [301 > 200]  ok
WARN  line 3: https://old.example.com/old-c  [301 > 301 > 200]  chain
      Fix: Point the old URL straight at the final page so there is only one redirect.
FAIL  line 4: https://old.example.com/gone  [404]  not-redirected
      Fix: The old URL is gone and nothing sends visitors to the new page. Add a redirect rule.

3 checked: 1 pass, 1 warn, 1 fail. Not ready yet.

The exit code is 0 when nothing failed and 2 when something failed, so you can use it in a build check.

Related MCP server: agentbuilt

Install

pip install redirect-check-lite

Not on PyPI yet? Install from GitHub: pip install git+https://github.com/tidybytetools/redirect-check-lite

Use it

redirect-check-lite map.csv --base https://old.example.com   # map has paths like /old-page
redirect-check-lite map.csv                                  # map has full web addresses
redirect-check-lite map.csv --csv results.csv                # also save a CSV
redirect-check-lite map.csv --expect any                     # 301, 302 and 307 are all fine
redirect-check-lite map.csv --max-chain 2                    # allow 2 redirects in a row
redirect-check-lite map.csv --fail-on warn                   # exit 2 on warnings too
cat map.csv | redirect-check-lite - --json                   # one JSON object, for scripts and AI agents

Your map can use commas, tabs, semicolons, pipes, or an arrow like old -> new. A header row is fine.

Python:

from redirect_check_lite import check_pairs
r = check_pairs("https://old.com/a,https://new.com/a")
r["summary"]["readyToLaunch"], r["rows"][0]["verdict"]

What the verdicts mean

Verdict

What it means

ok

One permanent redirect (301 or 308) straight to the right page, and that page loads.

chain

It gets there, but through 2 or more redirects.

temporary-redirect

It gets there, but a step is 302, 303 or 307 when you wanted a permanent one.

wrong-status

Right page, but not the redirect code you asked for.

wrong-target

It ends on a different page than your map says.

no-redirect

The old URL still loads by itself.

not-redirected

The old URL is gone (404 or 410) and nothing redirects.

target-broken

It goes to the right place, but that page is broken.

loop

The redirects go in a circle.

too-many-hops

More than 10 redirects in a row.

error

No answer (site not found, timeout, bad certificate).

It also warns about the map itself: the same old URL listed twice with different targets, old equal to new, and targets that are also old URLs.

For AI agents (MCP)

Start the MCP server with uvx redirect-check-lite mcp. Two tools:

  • check_redirects: a whole map (a file path or text) in, one row per pair out.

  • check_one_redirect: one old URL and the page it should end on.

Both only send web requests to the URLs you give them. They change nothing on your computer.

Example config for Claude Desktop or Cursor:

{"mcpServers": {"redirect-check-lite": {"command": "uvx", "args": ["redirect-check-lite", "mcp"]}}}

What the free tier does and does not do

Free (this tool)

Pay per use (Apify)

Pairs per run

first 200

up to 100,000

Same verdicts and fixes

yes

yes

Checks the map itself

yes

yes

Speed limit per site

fixed at 5 a second

you choose

Saves only the pairs with a problem

no

yes

Run from an API, n8n, Make or a schedule

no

yes

Map from a link or a spreadsheet export

no

yes

FAQ

Why is my 302 a warning? A 302 means "temporary". Search engines may keep the old URL. Use a 301 or 308 for pages that moved for good.

What if the server refuses HEAD requests? It asks again with GET before judging.

Does it follow redirects to other sites? Yes, up to 10 in a row, so you can test moves to a new domain.

Will it overload my server? No. It sends at most 5 requests a second to one site, and 4 at a time. Only test sites you own or may test.

Does it send my map anywhere? No. It only talks to the URLs in your map.

Available Tools

2 tools
check_one_redirectCheck one redirectA
Read-onlyIdempotent

Check one redirect: does old_url end on new_url, with the right redirect type and no chain?

Same checks as check_redirects, for a single pair. Returns one row: verdict, severity (pass, warn or fail), statusChain, finalUrl, notes and a plain fix. Only sends HEAD or GET requests to old_url and what it redirects to.

Inputs: new_url (required), old_url (required), expect.

check_redirectsCheck a redirect mapA
Read-onlyIdempotent

Test a site-move redirect map: follow each old URL by hand and say whether it ends on the right new page.

Use this before or after a site move, a domain change or a URL cleanup. For each pair it returns a verdict (ok, chain, temporary-redirect, wrong-status, wrong-target, no-redirect, not-redirected, target-broken, loop, too-many-hops, error), the real status chain (like 301 > 200), the final URL, and a plain fix. Does not change anything; it only sends HEAD or GET requests to the URLs you give it. Only test sites you own or may test.

Free limits: the first 200 pairs, 4 at a time, at most 5 requests a second to one site. Returns {"summary": {"checked","pass","warn","fail","readyToLaunch",...}, "rows": [...], "truncated", "skipped"}.

Inputs: base, path, text, expect, +3 more.

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

    Disambiguation4/5

    The two tools share identical underlying checks, but their scope is clearly separated: one takes a list of old/new pairs (redirect map), the other takes a single pair. Descriptions explicitly state this difference and both return the same verdict vocabulary, so an agent can pick correctly. The only residual risk is redundancy — a single-pair call can be emulated by the batch tool — but the intended use cases are distinct.

    Naming Consistency5/5

    Both names use a consistent snake_case verb_object pattern with the same check_ prefix (check_redirects, check_one_redirect). The '_one_' qualifier is a readable, predictable variation that signals the single-pair scope rather than breaking the convention.

    Tool Count3/5

    Two tools is thin for a server, even a 'lite' one; the surface is essentially one operation exposed at two granularities. The count is not wrong for the narrow purpose, but it sits at the borderline where the toolset feels minimal rather than well-rounded.

    Completeness4/5

    The domain — verifying that old URLs land on the right new pages — is covered for both batch and single-pair workflows, with rich verdicts, status chains, final URLs, severity and fix hints; the batch tool also reports summary, truncation and skipped entries. Minor gaps remain: no way to supply a redirect map file/format, no re-check or follow-up operation beyond re-invoking the same tools.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform instant SEO audits, check robots.txt, sitemaps, and AI crawler access for any URL without API keys.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to run a free AI-readiness audit of any URL, checking AI crawler rules, JavaScript-free page text, JSON-LD, llms.txt, sitemap, meta description, FAQ schema, and returning a score with findings and fixes. Also exposes the same capability via an A2A agent endpoint.
      MIT