MCP for J add-on

MCP for jDownloads

Manage your download library from your AI client

FreeJoomla 5Joomla 6 v1.0.1
Free

Free download. GPL, the same license as Joomla.

MCP for jDownloads is a free add-on for MCP for J that lets your AI client run a jDownloads library by Arno Betz. Its 17 tools cover categories, downloads, attaching files, licences, user-group limits and permissions, plus a health check that compares what jDownloads has in the database with what's actually on the disk. In jDownloads every category is also a folder, so renaming or moving one is really a file operation, and these tools treat it that way: the disk is checked before anything is written and checked again afterwards.

Why this exists

A jDownloads user asked for it. Keeping a download library tidy is mostly small, fiddly jobs: add a new version, move a file to the right category, find the downloads whose files have gone missing, work out which group can download what. Each one is a few screens in the jDownloads admin. With this add-on you ask for it in a sentence, and the answer comes from jDownloads' own tables and folders rather than a guess.

What Claude can do

There are 17 tools, grouped the way you'd reach for them.

AreaToolsWhat you can do
Categories4List and read categories, create them, and change them, including renaming a category or moving it under another parent, folder and all.
Downloads6List and read downloads, create them, change them, publish or unpublish them, and delete one once it's unpublished.
Files2Attach a file that's already in the jDownloads upload folder to a download, and list the files that no download uses.
Lookups3The licences, the download and upload limits per user group, and the effective permissions each group has.
Diagnostics2A health check of the database against the disk, and a read-only look at jDownloads' own tables.

Installing it

You'll need Joomla 5 or 6, PHP 8.2 or later, MCP for J, and jDownloads itself, which is free. The add-on was built against jDownloads 4.1.7, the current release for Joomla 4, 5 and 6.

  1. Open Components โ†’ MCP for J โ†’ Browse MCP Add-Ons and click Install on this add-on. You can also download the ZIP above and install it through System โ†’ Install โ†’ Extensions.
  2. That's the whole install. The plugin switches itself on, and the tools show up in your AI client the next time it lists them.

If MCP for J isn't installed, the plugin installs switched off and tells you why, rather than leaving you with tools that go nowhere.

Using it

Start with "Check my jDownloads setup". The health check lists downloads whose files are missing, files sitting in the upload folder that no download uses, folders with no category, and whether your upload folder can be reached directly from the web. After that, ask for what you want: "Add version 2.1 of the manual to the Documentation category", "Move the Archive category under Old Releases", or "Which groups can download from Members Only?"

Files are attached from inside the jDownloads upload folder only. Put the file there first (by FTP, the file manager or jDownloads' own upload), then ask for it to be attached. The tools won't reach outside that folder, won't follow links, and won't attach a file type that jDownloads' upload settings block or one that a server could run.

A few things about jDownloads are worth knowing:

  • jDownloads has no trash. A deleted download is gone for good, and jDownloads normally deletes its file too. delete_jdownloads_download wants the download unpublished first and keeps the file unless you ask for it to go.
  • The default upload folder is open to the web. Anyone with a file's address can fetch it directly, past access levels and the download counter, until you switch on jDownloads' anti-leech option. The health check tells you when that's the case.
  • Publishing or unpublishing a category applies to everything below it, and jDownloads won't publish a category whose folder is missing or whose parent is unpublished.
  • A new subcategory always takes its parent's access level, and a new public download takes its category's, the same as in the jDownloads admin.
  • The download counter goes up even when the file is missing. The visitor is sent to the home page and the download is still counted, which is one more reason to run the health check now and then.

Permissions and security

The tools only work for a logged-in user who has Access Administration Interface on jDownloads, and each change also checks the jDownloads permission it needs: create, edit, edit own or edit state, on the category or download concerned. It's checked for the person whose MCP connection makes the request, so your AI client can't do anything that person couldn't do in the jDownloads admin. Reading the permission matrix needs Configure ACL & Options, as jDownloads' own permission tabs do. Joomla's text filters apply to descriptions and changelogs, as they do in jDownloads' own form, so an account that isn't allowed to post scripts can't post one this way either, and plain-text fields refuse HTML.

jDownloads' own admin save can't be used from outside its form, because there it blanks some fields, deletes screenshots and resets permissions. So downloads are written through jDownloads' own table, one field at a time, and an edit keeps everything you didn't mention: tags, custom field values, permission rules, the counter, checksums and screenshots. Nothing these tools do sends an email. Category and download passwords and visitor IP addresses are never shown, and the table viewer is read-only and limited to jDownloads' own tables.

Why it's free

jDownloads is free, so this add-on is free too.

This is version 1.0.1. All 17 tools were tested on Joomla 5.4 and Joomla 6 against jDownloads 4.1.7, with every change checked against the database and the folders rather than the tool's own report, and the permission checks were run with Super User, Administrator and Manager accounts. The first round of testing included files downloaded from the front end, with the counter checked afterwards. Multilingual sites and jDownloads' manual folder mode haven't been tried yet. If your site uses them, start with the health check, and I'd like to hear how it goes.

Open source

GPL-2.0-or-later, the same license as Joomla itself. Source lives on GitHub.


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 4 Nov 2026
  • Joomla's text filters now apply. Descriptions and changelogs were stored exactly as sent, so an account whose text filters forbid scripts could put one on a public download page. The tools now filter download descriptions, long descriptions, changelogs and category descriptions as jDownloads' own form does, and the response says which fields changed.
  • No HTML in plain-text fields. Titles, versions, authors, notes and the meta fields are refused if they contain tags, because jDownloads' form strips tags from them too.
  • Reading the permission matrix needs Configure ACL & Options, as jDownloads' own permission tabs do.
  • Refusals name the permission that's missing, and where a Super User can grant it.
  • The package now includes LICENSE.txt.
Version 1.0.0 29 Oct 2026

First release. 17 tools for jDownloads (com_jdownloads) by Arno Betz. Studied against jDownloads 4.1.7 Stable, the current release for Joomla 4, 5 and 6. Driven end-to-end on Joomla 6.2.0 / PHP 8.3, including files downloaded from the front end and the download counter checked afterwards.

New

  • Diagnostics โ€” check_jdownloads_health (database against disk), query_jdownloads_table.
  • Categories โ€” list_jdownloads_categories, get_jdownloads_category, create_jdownloads_category, update_jdownloads_category (rename and move included, folder and all).
  • Downloads โ€” list_jdownloads_downloads, get_jdownloads_download, create_jdownloads_download, update_jdownloads_download, set_jdownloads_download_state, delete_jdownloads_download.
  • Files โ€” attach_jdownloads_file, list_jdownloads_unassigned_files.
  • Read-only lookups โ€” list_jdownloads_licenses, list_jdownloads_groups (user-group download and upload limits), list_jdownloads_permissions (effective permissions per user group).

Architecture

  • Every category is also a folder on disk. Creating, renaming and moving a category checks the disk before anything is written and verifies the database against the disk afterwards. A move is one rename of the folder, so everything below it moves intact.
  • New categories go through jDownloads' own category model. Edits use its category table for the nested set and permissions, because its save routine works out the old folder from hidden form fields.
  • Downloads are written through jDownloads' own table, field by field. Its admin save cannot be used from outside its form: there it blanks the author and URL fields, deletes the screenshots and resets permissions.
  • Partial updates keep everything you did not send: tags, custom field values, permission rules, the download counter, checksums and screenshots. Tags, custom field values, permission rules and the counter were checked in the database after live edits.
  • Files are attached only from inside the jDownloads upload folder. No other path, no .., no symbolic links, no file type jDownloads' upload settings block, and never a server-executable type.
  • Nothing sends email. jDownloads' own notifications fire on front-end downloads and uploads, never on these tools.
  • Free, because jDownloads is free.

jDownloads behaviour worth knowing

  • jDownloads has no trash. Its delete is final and removes the file too. delete_jdownloads_download wants the download unpublished first and keeps the file unless you ask.
  • Publishing or unpublishing a category applies to the whole branch below it, and jDownloads will not publish a category whose folder is missing or whose parent is unpublished.
  • A new subcategory always gets its parent's access level, and a new download with Public access gets its category's access level, as in the jDownloads admin.
  • The default upload folder is inside the web root with no protection. Anyone can fetch a file by its URL, past access levels and the counter, until "anti-leech" is switched on. check_jdownloads_health warns about it.
  • The counter goes up even when the file is missing. The visitor is sent back to the home page and the download is still counted.
  • From reading jDownloads' code: its admin "move category to another parent" does not copy folders two levels down before deleting the old folder, and then unpublishes the moved category. These tools do not use that routine.

Build

  • Requires PHP 8.2+ and MCP for J. Installs disabled, with an explanation, when MCP for J is not present, and clears Joomla's caches after install.
Log in to comment

Add comment

Submit