Obambu cPanel MCP

v0.1.2
io.github.RodrigueDev13/obambu-cpanel-mcp Checked 3 hours ago Published 4 months ago

MCP server exposing cPanel UAPI (domains, DNS, email, MySQL, files) as tools for AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_account_summary

Get an overview of the cPanel account: disk/bandwidth quota usage and general stats.

list_domains

List all domains, subdomains, addon domains and parked domains on the account.

list_dns_records

List DNS zone records for a domain.

ParameterTypeDescription
zone *stringDomain name whose DNS zone to read, e.g. example.com

add_dns_record

Add a DNS record to a zone. Provide type-specific fields in `fields` (e.g. A record: {address: '1.2.3.4'}; CNAME: {cname: 'target.example.com'}; TXT: {txtdata: 'value'}; MX: {exchange: 'mail.example.com', preference: '10'}).

ParameterTypeDescription
name *stringRecord name, e.g. sub.example.com or example.com
type *stringRecord type: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA...
zone *stringDomain name owning the zone, e.g. example.com
fieldsobjectType-specific value fields required by cPanel for this record type
ttlintegerTTL in seconds, defaults to 14400

edit_dns_record

Edit an existing DNS record. `line` is the record's line number as returned by list_dns_records.

ParameterTypeDescription
line *integerLine number of the record in the zone (from list_dns_records)
type *stringRecord type: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA...
zone *stringDomain name owning the zone
fieldsobjectType-specific value fields to update for this record type
ttlinteger

remove_dns_record

Remove a DNS record from a zone. `line` is the record's line number as returned by list_dns_records.

ParameterTypeDescription
line *integerLine number of the record to remove
zone *stringDomain name owning the zone

list_emails

List email accounts, optionally filtered by domain.

ParameterTypeDescription
domainstringLimit results to this domain

create_email

Create a new email account.

ParameterTypeDescription
domain *stringDomain for the mailbox, e.g. example.com
email *stringLocal part of the address, e.g. 'contact' for contact@example.com
password *stringPassword for the new mailbox
quotaMbintegerMailbox quota in MB, 0 for unlimited

delete_email

Delete an email account.

ParameterTypeDescription
domain *stringDomain of the mailbox
email *stringLocal part of the address to delete

list_files

List files and directories at a path within the account's home directory.

ParameterTypeDescription
dirstringDirectory to list, relative to the home directory

list_databases

List MySQL databases on the account.

list_database_users

List MySQL database users on the account.

create_database

Create a new MySQL database.

ParameterTypeDescription
name *stringDatabase name (without the cPanel account prefix)

create_database_user

Create a new MySQL database user.

ParameterTypeDescription
name *stringUsername (without the cPanel account prefix)
password *stringPassword for the new user

grant_database_privileges

Grant a database user privileges on a database.

ParameterTypeDescription
database *stringFull database name (as returned by list_databases)
user *stringFull database username (as returned by list_database_users)
privilegesstringComma-separated privileges, defaults to ALL PRIVILEGES

cpanel_uapi_call

Call any cPanel UAPI module/function directly. Use this for functionality not covered by the other tools. Refer to cPanel UAPI documentation for module/function names and parameters.

ParameterTypeDescription
function *stringUAPI function name within the module
module *stringUAPI module name, e.g. 'Email', 'DNS', 'Mysql', 'DomainInfo'
paramsobjectQuery parameters to pass to the function