The Joomla MCP Server enables AI assistants like Claude to interact with Joomla websites through the Joomla Web Services API. This tool makes it easy to create, retrieve, update, and manage articles on your Joomla site directly through an AI assistant.
Before connecting to your Joomla site, you need to create an API token:
git clone https://github.com/nasoma/joomla-mcp-server.git
cd joomla-mcp-server
uv
:uv sync
Add the following configuration to your claude_desktop_config.json
file:
{
"mcpServers": {
"Joomla Articles MCP": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_PROJECT}}",
"run",
"main.py"
],
"env": {
"JOOMLA_BASE_URL": "<your_joomla_website_url>",
"BEARER_TOKEN": "<your_joomla_api_token>"
}
}
}
}
Be sure to replace:
{{PATH_TO_UV}}
with the path to your uv
installation (find it by running which uv
){{PATH_TO_PROJECT}}
with the full path to the project directory<your_joomla_website_url>
with your actual Joomla site URL<your_joomla_api_token>
with the token you generated earlierUse get_joomla_articles()
to retrieve all articles from your Joomla website.
Use get_joomla_categories()
to get a formatted list of all content categories.
Create new articles with create_article()
:
create_article(
article_text="Your article content here...",
title="Optional Article Title",
category_id=5, # Optional category ID
convert_plain_text=True, # Auto-converts plain text to HTML
published=True # Publishes immediately
)
Change an article's state with manage_article_state()
:
manage_article_state(
article_id=123,
target_state=1 # 1=published, 0=unpublished, 2=archived, -2=trashed
)
Remove articles with delete_article()
:
delete_article(article_id=123)
Update existing articles with update_article()
:
update_article(
article_id=123,
title="New Title",
introtext="This is the introduction text that appears before the 'Read more' break",
fulltext="This is the full content that appears after the 'Read more' break",
metadesc="Optional meta description for SEO"
)
Note: Both introtext
and fulltext
are required when updating articles to maintain Joomla's article structure.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "Joomla-Articles-MCP" '{"command":"{{PATH_TO_UV}}","args":["--directory","{{PATH_TO_PROJECT}}","run","main.py"],"env":{"JOOMLA_BASE_URL":"<your_joomla_website_url>","BEARER_TOKEN":"<your_joomla_api_token>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"Joomla Articles MCP": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_PROJECT}}",
"run",
"main.py"
],
"env": {
"JOOMLA_BASE_URL": "<your_joomla_website_url>",
"BEARER_TOKEN": "<your_joomla_api_token>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"Joomla Articles MCP": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_PROJECT}}",
"run",
"main.py"
],
"env": {
"JOOMLA_BASE_URL": "<your_joomla_website_url>",
"BEARER_TOKEN": "<your_joomla_api_token>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect