SuxyEE/bt-panel-mcp-server
MCP Server for Baota (BT) Panel — query logs, manage websites & deploy HTML via AI. 宝塔面板 MCP,支持日志查询、一键建站、网站管理
Platform-specific configuration:
{
"mcpServers": {
"bt-panel-mcp-server": {
"command": "npx",
"args": [
"-y",
"bt-panel-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
宝塔面板(BT Panel)MCP Server,让任意支持 MCP 协议的 AI 助手直接用自然语言查询服务器日志、管理网站、查看系统状态,不用再手动登录面板。
[](https://www.npmjs.com/package/bt-panel-mcp-server) [](https://www.npmjs.com/package/bt-panel-mcp-server) [](https://opensource.org/licenses/MIT)
默认 只读模式,设置 BT_MODE=full 可开启全量管理工具。
---
在任意支持 MCP 协议的 AI 工具(Cursor、Claude Desktop、Windsurf、Cline、Cherry Studio 等)的对话里直接说:
查询日志 & 监控 > "帮我看看 example.com 最近的 Nginx 错误日志" > > "查一下 shop.com 的 Laravel 日志有没有报错" > > "服务器现在 CPU 和内存使用情况怎么样?"
一键建站部署(需要 BT_MODE=full) > "帮我生成一个小龙虾餐厅落地页,暗红色主题,部署到 claw.example.com,完成后给我访问地址" > > "把刚才生成的活动报名 HTML 直接部署到服务器,用 IP 访问就行" > > "把 example.com 首页的联系电话改成 138xxxxxxxx,直接更新到服务器"
网站 & 域名管理(需要 BT_MODE=full) > "帮我给 example.com 备份一下" > > "给 example.com 绑定一个新域名 www.example.com" > > "停用 test.example.com 这个测试站"
---
登录宝塔面板 → 左侧菜单「设置」→「常用设置」,参考下图找到以下三项:
35335,面板地址为 http://服务器IP:端口http://服务器IP:端口/a5cbfadd各 AI 工具的配置文件路径不同,找到对应的文件编辑即可:
| AI 工具 | 系统 | 配置文件路径 | |---------|------|-------------| | Cursor | Windows | %USERPROFILE%\.cursor\mcp.json | | Cursor | macOS / Linux | ~/.cursor/mcp.json | | Claude Desktop | Windows | %APPDATA%\Claude\claude_desktop_config.json | | Claude Desktop | macOS | ~/Library/Application Support/Claude/claude_desktop_config.json | | Windsurf | Windows | %USERPROFILE%\.codeium\windsurf\mcp_config.json | | Windsurf | macOS | ~/.codeium/windsurf/mcp_config.json | | Cherry Studio
Loading reviews...