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 pages, install modules, work with FTP files, and manage security settings (FTP password, quarantine).
You need Node.js 18+ 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.
π Site pages
Create and edit pages from chat β with a custom design or the site's overall style.
π¦ Modules and quarantine
Enable the modules you need and manage site settings without the control panel.
π FTP password via API
Create and change your FTP password through AI β no manual control panel login required.
templates_tool is the main tool for templates, backups, global blocks, menus, mail forms, and site pages. A backup is created before save. Template output: $NMENU_<ID>$ (vertical menu), $SMENU_<ID>$ (horizontal), $MFORM_<ID>$ (mail form).
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 (include_variables=true appends the variable list).
module_id, template_id
patch_template
Partial fragment replace without rewriting the whole template (see block below).
module_id, template_id, code_search, code_paste
update_template
Full template replace; backup is created automatically. Use only for new templates or complete rewrites.
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
page_list
Lists site pages (pagination: page_page, page_per_page).
β
page_get
Returns a page by ID.
page_id
page_add
Creates a page. page_tmpl β personal template; page_message only β site global design.
β
page_update
Updates a page (only passed fields are changed).
page_id
page_delete
Deletes a page (home page ID=1 cannot be deleted).
page_id
get_reference
Template language variable reference.
β
get_guide
Template architecture guide.
β
get_backup_guide
Guide to working safely with backups.
β
patch_template β partial template edits
Use for any change to existing code. A backup is created before save (same as update_template).
Parameter
Description
code_search
Exact fragment to find β byte-exact match (spaces, tabs, line breaks). Copy from read_template; do not reformat. Must match exactly once.
code_paste
Replacement text. Empty string "" deletes the matched fragment. Cannot remove or hide $POWERED_BY$.
If the backup limit is reached, save is blocked β delete an old backup via delete_backup.
ftp_tool β site files over FTP and FTP password management via uAPI. ftp_password_* requires Control Panel settings access on the token.
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
ftp_password_get
FTP connection settings without password.
β
ftp_password_set
Sets password for the first time (when none is set).
password
ftp_password_change
Changes existing password.
password
ftp_password_reset
Resets password.
β
modules_tool β module installation, uAPI access, quarantine. Most actions require Control Panel settings access; exception: active_mods.
Action
What it does
Required parameters
modules_list
Full module catalog with active and api_enabled flags.
β
module_status
Status of one module.
module_code
module_install
Installs a module.
module_code
module_uninstall
Uninstalls a module (system modules are protected).
module_code
active_mods
Simplified list of active modules.
β
module_enable_uapi
Enables uAPI methods for a module.
module_code
module_disable_uapi
Disables uAPI methods for a module.
module_code
quarantine_status
Checks quarantine (locked=true means quarantine is on).