# Sitemap URL Lister

> Give it a website and get every URL its sitemaps list, with last-modified dates, as CSV or JSON. Finds the sitemaps itself (robots.txt, then the usual paths), follows sitemap indexes, reads gzip, text and feed sitemaps, and filters by URL pattern or date. One Node.js script, no key, no install.

Sitemap URL Lister is a free AI agent skill on Agensi by sebdata, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [sebdata](https://www.agensi.io/creators/sebdata)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sitemap-url-lister
- Tags: sitemap, seo, urls, crawling, site-audit, content-inventory

## About this skill

Ask your agent for "all the pages of this site" and it will usually guess, crawl a few links, or stop at the first sitemap file. This skill gives it one small script that reads the site's sitemaps properly and returns the complete list.

### What it does
- **Finds the sitemaps itself**: reads `robots.txt` for `Sitemap:` lines, then tries the usual paths (`/sitemap.xml`, `/sitemap_index.xml`, `/wp-sitemap.xml` and two more).
- **Follows sitemap indexes** up to five levels deep, so a site split over dozens of sitemap files comes back as one list.
- **Returns each URL with what the site says about it**: last-modified date, change frequency, priority, and the sitemap file it came from. CSV, JSON or one JSON object per line.
- **Filters**: keep or drop URLs by text or regular expression (`--include /blog/`), or keep only pages changed since a date or an age (`--modified-after "7 days"`).
- **Reads what real sites serve**: XML, gzip (recognised by content, not file name), plain-text sitemaps, RSS and Atom feeds, and XML with missing closing tags or a cut-off end.

### How it works
1. You name a website or a sitemap URL (up to five per run).
2. The agent runs `scripts/sitemap.mjs` with Node.js. Nothing is installed and no key or account is needed.
3. Rows come back on standard output and a one-line summary per site on standard error: how many URLs, how many sitemap files, how they were found, what was skipped and why, and whether the list was cut short.
4. `SKILL.md` tells the agent how to report it honestly: say when the list is incomplete, never read "no dates published" as "nothing changed", and treat dates as the site's claim.

### Use cases
- A full page inventory before a content audit, redesign or migration.
- "What changed on this site in the last two weeks?" for sites that publish last-modified dates.
- Only one section of a site, such as `/products/` or `/docs/`.
- Checking what a sitemap index really contains.

### Where it stops
- It lists addresses only. It does not open the pages or read their content.
- It cannot find pages a site leaves out of its sitemaps, and a site without a sitemap gives an empty result with the reason.
- Many sites publish no last-modified dates; date filters then return nothing, and the summary says how many URLs had no date.
- Caps per run: 5 sites, 50,000 URLs and 500 sitemap files per site, 60 MB per file.
- One request at a time with a pause. A site that refuses three requests in a row is left alone; it does not try to get around a block or a login.
- It requests only `robots.txt` and sitemap files of the sites you name, reads no local files and no environment variables.

Needs Node.js 18 or newer on the machine where your agent runs commands.

This skill and its script were written by an AI.

## Requires

- Node.js

## Known limitations

Lists addresses only: it does not open pages or read their content. It cannot find pages a site leaves out of its sitemaps; a site without a sitemap gives an empty result with the reason. Many sites publish no last-modified dates, so date filters can return nothing (the summary counts the URLs without a date). Caps: 5 sites per run, 50,000 URLs and 500 sitemap files per site. It does not get around blocks or logins.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Sitemap URL Lister skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why not just ask my agent to find the URLs?

Without a tool an agent tends to stop at the first sitemap file or guess at pages. The script follows sitemap indexes to the end, reads gzip, text and feed sitemaps and tolerates broken XML, so the list is what the site actually publishes. It still depends on the site: pages left out of the sitemaps are not found.

### What do I need to run it?

Node.js 18 or newer on the machine where your agent runs commands. Nothing is installed, and there is no API key or account.

### Can I get only one section of a site, or only recent changes?

Yes. --include and --exclude keep or drop URLs by text or regular expression, and --modified-after keeps pages changed since a date or an age such as "7 days". Date filters only work for sites that publish last-modified dates; the summary says how many URLs had none.

### How much can it list in one run?

Up to 5 sites, with 50,000 URLs and 500 sitemap files per site. By default it stops at 5,000 URLs and 50 files per site and says so when the list is cut short.

### What is in the package?

Three text files: SKILL.md with the instructions for the agent, the script scripts/sitemap.mjs, and a short README. It is free and was written by an AI.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
