MCP (Model Context Protocol) for uCoz is a tool server that connects to your AI assistant and gives it direct access to your site. In plain-language requests you can edit templates, manage menus and global blocks, create mail forms, and work with files over FTP.
uCoz MCP is currently in alpha. You need Node.js 20+ installed β the server runs via npx ucoz-mcp@latest.
MCP Features
β‘ Much faster
Update website templates in minutes - without manual editing in the control panel.
π‘οΈ Built-in backup
Automatic backup before each save and quick rollback to the previous version.
β Code Validation
Checking the HTML code of the template before saving without the risk of breaking the display of the site.
π Uploading files via FTP
Upload CSS, JS and images from a local project or directly from agent chat.
ποΈ Menu via API
Create and update menus via AI - horizontal and vertical, with nesting.
π¬ Mail forms
Create feedback forms with the required fields and a letter template directly from the chat.
templates_tool is the main tool for working with page templates, global blocks, site menus, mail forms and backups. All changes to templates go through it with automatic backup creation.
Action
What it does
Required parameters
list_modules
Returns a list of modules and template IDs.
β
get_variables
Shows variables for the selected module/template.
module_id, template_id
read_template
Reads the current template HTML code.
module_id, template_id
update_template
Creates a backup and saves changes to the template.
module_id, template_id, html_content
validate_template
Validates the template code without saving.
module_id, template_id, content
list_backups
List of existing template backups.
module_id, template_id
create_backup
Creates a backup manually.
module_id, template_id
delete_backup
Deletes a backup by ID.
backup_id
restore_backup
Restores a template from a backup.
backup_id
gblock_create
Creates a global block.
name, content
gblock_delete
Deletes a global block.
block_id
menu_list
List of all site menus.
β
menu_create
Creates a new menu (layout: 0 - horizontal, 1 - vertical).
title, layout
menu_get
Returns a menu with items.
menu_id
menu_update
Updates the title and/or menu type.
menu_id
menu_delete
Deletes a menu.
menu_id
menu_update_items
Replaces the menu item tree (supports children).
menu_id, items
mail_list_forms
List of all mail forms.
β
mail_get_form
Form details.
form_id
mail_create_form
Creates a new form.
name, email
mail_update_form
Updates name, recipients, success message.
form_id
mail_delete_form
Deletes a form.
form_id
mail_list_fields
List of form fields.
form_id
mail_add_field
Adds a field to the form.
form_id, label, type
mail_update_field
Updates the field.
form_id, field_id
mail_delete_field
Deletes a field.
form_id, field_id
mail_move_field
Changes the field order.
form_id, field_id, direction
mail_get_template
Reads the HTML form mail template.
form_id
mail_save_template
Saves the HTML email template.
form_id, template_html
get_reference
Template language variable reference.
β
get_guide
Template architecture guide.
β
get_backup_guide
Guide to working safely with backups.
β
ftp_tool β tool for site files over FTP: downloading CSS, JS, images and other resources, creating folders, reading and rewriting files directly from the agent chat.
Action
What it does
Required parameters
list
Shows files and folders at the specified path.
path
read
Reads the contents of the file.
path
write
Writes text content to a file.
path, content
mkdir
Creates a directory.
path
delete
Deletes a file or folder.
path
rename
Renames or moves a file/folder.
path, new_path
upload
Uploads a local file to FTP.
local_path, remote_path
Typical scenarios
1. Creating a landing page on the main page
read_template (module_id=2, template_id=1) -> read the current main template
menu_list -> checking existing menus
menu_create / menu_update_items -> create or update navigation with anchor links