MCP for J add-on

MCP for JSitemap Pro

Set up JSitemap and check what it actually serves

ProJoomla 5Joomla 6 v1.0.1
$9.95/year

A yearly subscription for downloads and updates.

Buy MCP for JSitemap Pro

MCP for JSitemap Pro is a Pro add-on for MCP for J that lets your AI client set up and maintain JSitemap Pro. Its 27 tools cover data sources, menu and content exclusions, priorities, configuration, the precache, robots.txt, a /sitemap.xml redirect and IndexNow. JSitemap Pro itself is a separate paid extension from Joomla! Extensions Store, and every tool here refuses until it is installed. What sets this apart from clicking through JSitemap's screens is that it reads the sitemap your site really serves, so a change is checked against the output rather than assumed.

Why this exists

Setting JSitemap up properly on a real site took a mix of admin clicks and direct SQL: syncing menu sources, unpublishing a leftover menu, keeping Log in and My account out of the sitemap, adding a source for a third-party component, a /sitemap.xml redirect and a robots.txt entry. Every one of those is a tool here.

The bigger reason is that JSitemap fails quietly. With precaching on, it serves a frozen file and ignores your sources until that file is rebuilt. A new menu doesn't reach the sitemap until an admin happens to open JSitemap's control panel. A third-party source whose SQL fails simply disappears from the output. So you can make a change, see it saved, and still be serving the old sitemap. Every write tool here tells you what may still be stale, and get_jsitemap_sitemap_urls fetches the real front end so you can see what a crawler gets.

What Claude can do

Twenty-seven tools in seven groups.

AreaToolsWhat you can do
Info2Component details, and a health check that looks for the silent failures: missing menu sources, a source left behind by a deleted menu, a robots.txt that blocks crawlers, and stored source SQL that no longer matches its settings.
Sources9List, read, publish, unpublish, update and delete data sources. Run JSitemap's menu sync. Exclude menu items, categories or articles. Add a source for a third-party component, built by JSitemap's own query builder.
Priorities2List and set priority overrides per menu item or per category.
Output5List the sitemap links, fetch any sitemap format from the live site with each URL's priority, change frequency and last-modified date, and list, clear or rebuild the precache.
Config2Read the configuration with credentials hidden, and change the settings you name without touching the rest.
Discovery4Check robots.txt and add or remove its Sitemap line, add or remove a /sitemap.xml 301 in .htaccess, and send an IndexNow ping that checks the key file first.
Tables3List datasets and tables, and run a read-only query over JSitemap's own tables for the question no tool anticipated.

Installing it

You'll need Joomla 5 or 6, PHP 8.1 or later, MCP for J, and JSitemap Pro, which you buy from Joomla! Extensions Store. The add-on was built and tested against JSitemap Pro 4.31.2. Nothing in JSitemap Pro is locked behind a licence check (its registration email only unlocks the vendor's updates), so there's no vendor gate to get past. It just has to be installed.

  1. Subscribe on the sign-up page, or get this and every other Pro add-on with MCP for J Pro โ€” All Access.
  2. Download the ZIP and install it through System โ†’ Install โ†’ Extensions, or paste your download URL into Install from URL.
  3. That's the whole install. The plugin enables itself, and the tools show up in your connected AI client the next time it lists them.

There's no admin screen for this plugin, by design. If JSitemap Pro isn't installed, or is installed but disabled, the installer tells you so straight away rather than leaving the first tool call to find out.

Using it

Start with the health check. It's read-only, and it'll tell you whether your sitemap is missing menus, carrying a stale source, or being served from an old precache file.

After that, ask for what you want in plain language. "Sync the menu sources and show me what's in the sitemap now" runs JSitemap's own sync and then fetches the live result. "Keep the Log in and My account pages out of the sitemap" sets the exclusions, checking each id against the menu first. "Point /sitemap.xml at JSitemap and add it to robots.txt" does both. If you've only just installed JSitemap, look at robots.txt too: on a fresh install its installer removes several Disallow lines and adds five Allow lines.

What the tools protect you from

A few of JSitemap's own behaviours can cost you work, and the tools are built around them.

  • Menu sources are matched to menus by title. Rename a menu and the next sync deletes its source, exclusions and all, and adds a fresh one. The sync tool plans first and asks before it deletes a source you've configured.
  • JSitemap's settings save replaces every setting at once. A partial save would wipe the rest. set_jsitemap_config doesn't use that save. It changes only the keys you name, applies JSitemap's own validation, and shows that nothing else moved.
  • A third-party source can drop out without a word. JSitemap checks each source's SQL when the sitemap renders and silently skips any that trip its filter, which a harmless column name like updated_at will do. Sources here are built by JSitemap's own query builder, every table and column is checked against your database first, and the result is test-run and checked against that same filter before it's saved.
  • /sitemap.xml has to be an external redirect. An internal rewrite returns a 404 because Joomla's router still sees the original path. The redirect tool writes a marked .htaccess block, tests the home page and the redirect, and puts the original file back if either fails. Removing the block leaves .htaccess exactly as it was.
  • JSitemap's IndexNow ping can report success without achieving anything. Every install ships the same default key and nothing serves the key file, so Bing accepts the ping and then discards it. The tool here checks the key file first and tells you.

Why it doesn't submit sitemaps to Google Search Console

This is on purpose. JSitemap stores its Google token per client id: the id of the Joomla application it was authorised in, which is 1 for the administrator. MCP tools run under Joomla's API application, where that id is 3, so the token you authorised in JSitemap's admin is never found. Rather than pretend otherwise, this add-on leaves Search Console submission out.

Submission is done instead by Cybersalt's separate Search Console MCP server, cs-gsc-mcp, with its gsc_submit_sitemap tool. That server is not an MCP for J add-on and isn't part of this package. It talks to Google directly, not through Joomla.

JSitemap's Google and Baidu "ping" buttons aren't reproduced either. They only run a web search for your sitemap URL.

How it was tested

Version 1.0.0 was tested end to end against JSitemap Pro 4.31.2 on Joomla 6.2. Every tool was called on a live install, and every write was checked twice: in the database, and in the sitemap the site actually served.

Some paths haven't been exercised yet: multilingual sitemaps, datasets with content in them, and the plugin and links source types. A third-party source was tested with Joomla tags rather than a component like Membership Pro, and adding the /sitemap.xml redirect to a .htaccess that already has Joomla's rewrite rules in it was tested offline only. The redirect tool tests itself and rolls back if anything fails, but if you run into something on any of these, I'd like to hear about it.

Permissions and security

The configuration read hides credentials, and the configuration write refuses them, along with JSitemap's licence email. The table query is read-only, limited to JSitemap's own tables, and refuses the table where JSitemap keeps its Google OAuth token. Exclusions are checked against the menu items, categories and articles they refer to before anything is saved.

Open source

GPL-2.0-or-later, the same license as Joomla itself. The full source is in the ZIP you download.

Please log in to download MCP for JSitemap Pro.


Interesting blog? Like it on Facebook, Post it or share this article on other bookmarking websites.

Written by:
Tim Davis is the founder and owner of Cybersalt.

Recent changes

Version 1.0.1 20 Oct 2026
  • Renamed to "System - MCP for JSitemap Pro" in Extensions โ†’ Plugins (was "System - MCP for Joomla: JSitemap Pro add-on"). The new name follows the Joomla Extensions Directory's naming rules. Only the displayed name changes: the plugin's element, folder and update channel are the same, so updates keep working.
  • Every PHP file now carries a GPL licence notice (GNU General Public License version 2 or later).
  • Removed the non-standard <php_minimum> element from the manifest. Joomla never read it from there. The minimum PHP version is still published by the update server, which is where Joomla checks it.
  • get_jsitemap_robots_status reads the web server name through Joomla's input object instead of $_SERVER directly. Same value, same output.
  • No tool behaves differently.
Version 1.0.0 19 Oct 2026

First release. 27 tools across 7 groups over JSitemap Pro's #__jmap* tables, its configuration, its precache and the site's robots.txt / .htaccess. Verified against JSitemap Pro 4.31.2 on Joomla 6.2.0, and every tool was run against a live install with each write checked in the database and in the rendered sitemap.

Requested by Leandro Santana โ€” thank you. The tool list was shaped by setting up countdownvideomaker.com by hand on 2026-10-16.

JSitemap Pro is a paid extension from Joomla! Extensions Store (storejextensions.org). This add-on does nothing without it: every tool refuses with an explanation, and the installer says so up front.

New

  • Data sources: list, inspect, publish/unpublish, update and delete. A menu source's detail shows every item of its menu with excluded and its priority. A user source's detail includes its generated SQL and an optional guest-view test run.
  • create_jsitemap_user_source adds a third-party component source (e.g. Membership Pro plans). The SQL is generated by JSitemap's own query builder (SourcesModel::buildRawQuery, the code behind "Regenerate query"), never hand-written. Every table and column is checked against the live schema first, and the result is test-run before saving.
  • sync_jsitemap_menu_sources runs JSitemap's own menu sync, which otherwise only happens when someone opens the JSitemap control panel. It plans first and protects configured sources from the vendor's delete-on-rename.
  • set_jsitemap_menu_exclusions / set_jsitemap_content_exclusions: exclusions validated against the menu / categories / articles they refer to.
  • Priority overrides per menu item and per category.
  • get_jsitemap_sitemap_urls fetches any sitemap format from the live front end and returns its URLs, with per-URL priority / changefreq / lastmod. It also flags duplicates, off-site and /api/ links and precache-served output.
  • Precache: list, clear and rebuild. The rebuild drives JSitemap's own precaching protocol (the control panel's browser-side batches) from the server, with a resume cursor for large sites.
  • Configuration: grouped read with credentials redacted, and validated targeted writes.
  • Discovery: robots.txt Sitemap line (add / remove, like JSitemap's own button), a /sitemap.xml โ†’ JSitemap 301 in .htaccess with a self-test and automatic rollback, and an IndexNow ping that checks the key file first.
  • check_jsitemap_health: an audit of every silent failure listed below.
  • Datasets, table list and an allowlisted read-only table query. The Google OAuth token table cannot be queried.

What JSitemap does that the tools absorb

Everything here was confirmed in the 4.31.2 source. Items marked (live) were also reproduced on a running site.

  • The sitemap you edit is not always the sitemap that is served. With precaching on, SitemapController::display() streams a frozen components/com_jmap/precache/sitemap_*.xml. It never looks at the sources again until that file is rebuilt (live: an unpublished source stayed in the served sitemap until the precache was cleared). Every write tool cleans the view cache and names any precache file that is now stale.
  • New menus are not in the sitemap until an admin opens the control panel. That visit is the only time CpanelModel::syncMenuSources() runs (live: a fresh install had no menu sources at all).
  • Menu sources are matched by menu title, not menutype. If a menu is renamed, the next sync deletes its source, with every exclusion, and adds a fresh published one. So the name of a menu source cannot be changed here, and a sync that would delete a configured source asks for confirmation.
  • The vendor's sync branches on counts, not sets. If one menu is renamed and another added at the same time, only the inserts run. The sync tool runs passes until the sources are stable.
  • Exclusion id lists go into SQL unquoted (IN ( + implode + )). A non-integer breaks the whole source, so every writer casts to positive integers. A literal "0" (the admin form's "none" option) disables the whole list and is removed whenever real ids are set.
  • Editing a user source's wizard fields does not change its SQL. The admin screen regenerates only for new sources or when "Regenerate query" is ticked. Here the SQL is always regenerated, and the health check flags stored SQL that no longer matches its wizard fields.
  • The query builder puts a comma-containing WHERE value into IN (...) raw. Such values must be integer lists here. A non-comma value is quoted safely by the vendor (live: 1) OR (1=1 was quoted harmlessly).
  • JSitemap's render-time guard drops a user source without telling you. The pattern is /((?<!`)delete|update|insert|password)/i, and its lookbehind binds to delete only. So a backtick exempts deleted, but notupdated_at or a table such as #__x_updates. Generated SQL is checked against the identical pattern before saving.
  • The builder adds published = 1 (else state = 1), access IN {aid} and a language filter by itself whenever the main table has those columns. An explicit WHERE on them is redundant and is reported.
  • Config save replaces the whole params blob.ConfigModel::storeEntity() binds $_POST onto the Extension table. It cannot be driven from MCP, and a partial payload would wipe every other setting. set_jsitemap_config does a single read-merge-write instead. It re-applies the vendor's one save rule (precaching_limit_images โ‰ค max_images_requests) and proves nothing else moved.
  • JPATH_COMPONENT_* point at the wrong component during an MCP request.JMapComponent::boot() defines them only when option=com_jmap. Vendor code that builds paths from them is never called. SourcesModel::deleteEntity() is one example: it deletes a plugin folder by such a path.
  • The vendor's base classes are not on Joomla's autoloader.Framework\Model lives in Framework/Model/Model.php and is registered only by JSitemap's own Dispatcher (live: Class "...Framework\Model" not found on the first vendor model call). The add-on registers the vendor loader itself. It leaves out the rest of that Dispatcher, which sets the session's sql_mode to '' and turns off display_errors.
  • An internal rewrite of /sitemap.xml returns 404. Joomla's SEF router still parses the original path. It has to be an external 301. Adding and then removing the managed .htaccess block leaves the file byte-identical (live, verified by MD5 on a CRLF cPanel .htaccess).
  • JSitemap's IndexNow ping reports success when it has achieved nothing. Every install ships the same default key (28bcโ€ฆ), and nothing serves <key>.txt. Bing answers 202 and then fails ownership verification (live). The vendor treats 202 as success. Its "Google" and "Baidu" ping buttons only run a web search for the URL. They are not reproduced here.
  • Every #__jmap* table is utf8mb3. A 4-byte character (emoji) cannot be stored. It also cannot even be compared: WHERE name = '' fails with "Illegal mix of collations" (live). Such input is refused up front.
  • The installer rewrites robots.txt on a fresh install. It deletes Disallow lines for images, media, templates, components, modules and plugins, and inserts five Allow: lines under User-agent: *.

Architecture

  • Vendor code is used only where it works under the API application: SourcesModel::buildRawQuery() (by reflection; it is protected) and CpanelModel::syncMenuSources(). Everything else is a targeted write that is equivalent to the vendor's, with its validation re-applied.
  • Sitemap content is always read through a loopback HTTP request. The site model routes every link through Route::_(), which the API router cannot build. A loopback also shows exactly what a crawler receives.
  • Joomla 6's Http\Response is plain PSR-7, so ->code, ->headers and ->body are gone. Responses are read through getStatusCode() / getHeaders() / getBody().
  • All tools report one category, jsitemap.
Log in to comment

Add comment

Submit