- Home
- MCP servers
- Beget
Beget
- python
1
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"yasg1988-mcp-beget": {
"command": "python",
"args": [
"PATH_TO/mcp-beget/server.py"
],
"env": {
"BEGET_LOGIN": "ваш_логин",
"BEGET_PASSWORD": "ваш_пароль"
}
}
}
}You can manage Beget hosting directly from Claude Code using the MCP Beget server. It lets you handle sites, domains, MySQL, FTP accounts, Cron jobs, DNS, backups, and mail from a single, coherent interface.
How to use
With the MCP Beget server you connect via an MCP client to perform actions such as listing, creating, updating, and deleting Beget resources. Use the following workflow: start the MCP server in your environment, then issue requests to manage sites, domains, databases, FTP accounts, Cron tasks, DNS records, backups, and mail. You can combine commands to automate common tasks, for example creating a site and binding a domain in one flow, or listing all databases and then restoring from a backup.
Key concepts you will work with include: a Beget site (hosting instance), domains associated with sites, MySQL databases under a site, FTP accounts for file access, Cron tasks for scheduled work, DNS records for domain name resolution, backups for site/files and databases, and mail boxes for mailbox management.
How to install
Prerequisites: Python and pip must be available on your system.
- Clone the MCP Beget repository.
git clone https://github.com/yasg1988/mcp-beget.git
cd mcp-beget
- Install the package in editable mode to satisfy dependencies.
pip install -e .
- Configure Claude Code to use the Beget MCP server. Create or edit the Claude Code settings file at
~/.claude/settings.jsonand add the following configuration. Replace placeholders with your actual credentials and path to the server script.
{
"mcpServers": {
"beget": {
"command": "python",
"args": ["PATH_TO/mcp-beget/server.py"],
"env": {
"BEGET_LOGIN": "ваш_логин",
"BEGET_PASSWORD": "ваш_пароль"
}
}
}
}
Configuration and security notes
Environment variables BEGET_LOGIN and BEGET_PASSWORD are required for authentication with Beget. Do not store credentials in code. Use secure secret management where possible and avoid committing credentials to version control.
For the MCP server, you will run a local Python process that exposes the commands described in the Tools section. Ensure you have network access to Beget and that your credentials have the necessary permissions for the actions you intend to perform.
Troubleshooting and tips
If you encounter authentication errors, double-check that BEGET_LOGIN and BEGET_PASSWORD are correct and that the environment is loading these values correctly for the MCP server process.
If commands fail due to missing dependencies, re-install the package in editable mode and verify Python version compatibility with the MCP server.
Tools and endpoints you can use with Beget MCP
The MCP server exposes a set of tools to manage Beget resources. Each tool maps to a specific action or query you can perform via Claude Code.
-
List and manage sites:
beget_site_list,beget_site_add,beget_site_delete -
List/add/manage domains and PHP version:
beget_domain_list,beget_domain_add,beget_domain_php_version -
Manage MySQL databases:
beget_mysql_list,beget_mysql_add,beget_mysql_delete -
Manage FTP accounts and Cron jobs:
beget_ftp_list,beget_ftp_add,beget_cron_list,beget_cron_add -
DNS operations:
beget_dns_get,beget_dns_set -
Backups and restores:
beget_backup_files_list,beget_backup_mysql_list -
Mail management:
beget_mail_list,beget_mail_create -
Statistics and account info:
beget_stat_load,beget_account_info
Notes on installation flow
The installation flow ends with running the MCP server using the Python command and the path to the server script. The final start command is python PATH_TO/mcp-beget/server.py executed in your environment.
Available tools
beget_site_list
List existing sites on Beget and their basic metadata.
beget_site_add
Create a new site on Beget with given parameters (name, path, settings).
beget_site_delete
Remove a site from Beget along with its resources.
beget_domain_list
List domains associated with Beget sites.
beget_domain_add
Add a domain to a site in Beget.
beget_domain_php_version
Query or set the PHP version for a domain.
beget_mysql_list
List MySQL databases for Beget sites.
beget_mysql_add
Create a new MySQL database.
beget_mysql_delete
Delete an existing MySQL database.
beget_ftp_list
List FTP accounts for Beget sites.
beget_ftp_add
Create a new FTP account.
beget_cron_list
List Cron tasks for Beget sites.
beget_cron_add
Add a Cron task for automated execution.
beget_dns_get
Retrieve DNS records for a domain.
beget_dns_set
Set or modify DNS records for a domain.
beget_backup_files_list
List file backups available for restoration.
beget_backup_mysql_list
List MySQL backups available for restoration.
beget_mail_list
List mailboxes for a domain/site.
beget_mail_create
Create a new mailbox.
beget_stat_load
Load hosting statistics such as site load.
beget_account_info
Retrieve information about the Beget account.