# Baota Panel MCP for AI Agents MCP

> Baota Panel / 宝塔面板 API connects your AI agent directly to one of China's leading web hosting control panels. It lets you manage complex server infrastructure—from listing all active sites and checking system load to auditing databases and viewing logs—all through conversation. You get instant, deep insight into your entire stack without ever touching the panel interface.

## Overview
- **Category:** cloud-infrastructure
- **Price:** Free
- **Tags:** server-management, web-hosting, database-monitoring, system-resources, control-panel

## Description

This MCP gives your AI agent full access to managing critical server components managed by Baota Panel. Think of it as giving your chat client a virtual set of hands that can log in and run every command, but you talk to it naturally.

Instead of clicking through endless dashboards to check if the CPU spiked or if a site is running out of disk space, you just ask. Your agent pulls real-time data: it lists all managed websites, checks current system load against usage limits, and even provides metadata for every database your company runs. This means security audits, performance reviews, and routine maintenance happen in seconds.

When you connect Baota to Vinkius through any MCP-compatible client, your agent acts like a dedicated Site Reliability Engineer (SRE), keeping your infrastructure accurate and running smoothly 24/7. It's about moving from manual checks across multiple tabs to one conversational query.

## Tools

### get_disk_info
Retrieves the current disk usage statistics for the managed server.

### get_network_info
Pulls the real-time status and metrics of the server's network connection.

### get_software_list
Lists all software, plugins, and versions installed on the control panel.

### get_system_total
Provides detailed information about the server's overall system load and performance metrics.

### get_task_count
Checks how many background tasks are currently pending or waiting to run.

### list_cron_tasks
Lists all scheduled cron jobs and their associated parameters on the panel.

### list_databases
Provides a comprehensive list of every database managed by the hosting panel.

### list_ftp
Lists all configured FTP accounts and their associated usernames.

### list_logs
Retrieves recent administrative logs for auditing system activity.

### list_sites
Generates a list of all active and managed websites under the panel.

## Prompt Examples

**Prompt:** 
```
What's wrong with the server? Check everything from disk space to network status.
```

**Response:** 
```
**System Health Report: [Date/Time]**

*   💾 **Disk Usage:** 78% used (Limit: 100%). Action needed on `/var/www`.
*   🌐 **Network Status:** Operational. Latency average: 45ms.
*   📈 **System Load:** Average load is 2.1/4 cores. Peak usage observed at 9 AM.

Overall, disk space is the main concern here.
```

**Prompt:** 
```
List all my websites and tell me what plugins or software versions they use.
```

**Response:** 
```
**Active Site Inventory**

| Site Name | Status | Primary Software | Key Plugins |
| :--- | :---: | :--- | :--- |
| marketing.com | Active | Nginx 1.25 | WordPress, Yoast SEO |
| api-server.net | Active | PHP 8.1 | Custom API Gateway | 

You can also check the full list of installed software using a separate query.
```

**Prompt:** 
```
Show me any recent security or admin activity that happened today.
```

**Response:** 
```
**Recent Administrative Logs (Last 5 Entries)**

*   **[10:30 AM]**: User 'admin' modified firewall rules.
*   **[9:15 AM]**: Database backup completed for `user_db`.
*   **[8:00 AM]**: Site `staging.com` created successfully.

No suspicious activity detected in the visible logs.
```

## Capabilities

### Audit System Health
Get real-time metrics on the server, including disk usage, network status, and overall system load.

### Manage Web Assets
List all websites hosted on the panel and get detailed information about each site's configuration.

### Monitor Data Stores
Retrieve a list of all databases, plus metadata for your entire data storage infrastructure.

### Review Operational History
Browse administrative logs and view pending background tasks to understand system activity.

### Inventory Software
List all installed software and plugins, such as Nginx, PHP, or MySQL, for quick inventory checks.

## Use Cases

### Emergency Performance Audit
The Ops Engineer notices slow site speed. Instead of manually SSHing in and running multiple commands, they ask their agent to check the system load (`get_system_total`), disk usage (`get_disk_info`), and network status (`get_network_info`). The agent compiles a single report confirming resource exhaustion.

### Pre-Migration Site Inventory
The Web Developer needs to move a site, so they ask the agent to use `list_sites` first. It provides a list of all active domains and their basic configurations, ensuring nothing gets missed during the transfer.

### Security Compliance Check
The System Admin runs an audit by asking for recent administrative logs (`list_logs`) and checking pending background tasks (`get_task_count`). This confirms no unauthorized access or unusual activity occurred overnight.

### Platform Maintenance Planning
Before a major update, the team member asks the agent to use `get_software_list` and `list_databases`. They get an immediate inventory of all installed components (Nginx, PHP versions) and data stores needing attention.

## Benefits

- Immediate resource checks: Instead of logging in to check disk usage or CPU load, you simply ask your agent. It immediately gives you the data using the `get_disk_info` tool.
- Full site overview: You can instantly list all managed websites and get key details for each one using the `list_sites` function. This is huge for quick audits.
- Database visibility: Need to know what databases exist? The agent lists them out using `list_databases`, giving you a full inventory without manual exploration.
- Operational transparency: Review administrative logs or scheduled tasks by calling `list_logs` or checking cron jobs with `list_cron_tasks`. You never miss an audit trail.
- Unified dashboard access: This MCP consolidates checks—system load, network status, and software versions—into one conversational interface via tools like `get_system_total`.

## How It Works

The bottom line is, you pass credentials once, and then your AI client handles all the connection details so you can manage your entire web stack through natural language conversation.

1. Subscribe to this MCP on Vinkius. You'll need your Panel Host, API Secret Key, and API ID.
2. Enter those credentials into your AI client. Make sure the calling IP address is whitelisted inside the Baota Panel settings for access.
3. Start chatting with your agent. Ask it specific questions about your server resources or managed sites to see the data come back.

## Frequently Asked Questions

**How do I use Baota Panel / 宝塔面板 API to check server CPU usage?**
You just ask your agent for 'system resource usage.' It runs a background check and returns the current load average, CPU percentage, and memory stats. This saves you from having to manually run monitoring commands.

**Can Baota Panel / 宝塔面板 API list all my domains?**
Yes, it can. By asking your agent to 'list managed sites,' it pulls a complete inventory of every website hosted on the panel. This is perfect for audits or migration planning.

**I need help checking database health with Baota Panel / 宝塔面板 API.**
Your agent can list all databases and provide metadata, confirming if they exist and what kind of data they hold. This gives you a quick overview without needing direct access to the database console.

**What is the easiest way to check system logs using Baota Panel / 宝塔面板 API?**
Ask your agent for 'recent administrative logs.' It pulls and summarizes the most critical entries, letting you know what happened on the server without having to scroll through thousands of lines of text.

**Does Baota Panel / 宝塔面板 API help me manage web hosting credentials?**
It helps with visibility. You can list all configured FTP accounts and even see which software stacks (like Nginx or MySQL) are installed, giving you a full picture of your assets.