
Panelica Mcp
io.github.Panelica由 GitHub 帳號 Panelica 發布v0.5.5更新於 Nov 11, 2026
Manage a Panelica hosting panel in plain English - 404 scoped, HMAC-signed tools.
概覽
把助理連接到 Panelica 主機控制台,用自然語言開通網域、SSL、資料庫、信箱與服務。
- 可以做什麼
- 開通與管理帳號、網域、子網域、DNS 和 SSL 憑證
- 管理資料庫、MySQL 使用者、信箱、郵件清單、FTP 與 SSH 使用者
- 操作應用與基礎設施:Git、Laravel/Node.js/Python 應用、Docker、排程工作、CloudFlare、伺服器狀態與服務重新啟動
- 處理備份、快照、安全、日誌、流量與稽核資料
- 透過三個中繼工具搜尋、檢視說明並呼叫約 400 個目錄工具中的任何一個
- 適用情境
- 適合已運行 Panelica 控制台、想讓助理代做主機維運事務的情況,例如建立帳號和網域、簽發憑證、新增 DNS 記錄、查看流量或續訂即將到期的 SSL,而不必在控制台介面逐項點選。
- 執行需求
- 需要一台執行中的 Panelica 控制台(建議 1.0.193 或更新),可透過 8443 埠的 HTTPS 存取,或在同一台機器上透過 127.0.0.1:3002 存取。npm 套件需要 Node.js 20 或更新版本,容器映像需要 Docker。另需三個環境變數:PANELICA_BASE_URL、PANELICA_API_KEY 和 PANELICA_API_SECRET,在控制台的設定、API 金鑰中產生。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Panelica Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Panelica MCP Server
Talk to your Panelica hosting panel in plain English. Provision a domain, issue an SSL certificate, create a database, or restart a service through Claude Desktop, Cursor, ChatGPT, or any other Model Context Protocol client.
[npm] [Tools] [Scopes] [Docker] [Zero drift] [License]
404 tools cover the entire External API surface — accounts, domains, DNS, SSL, email, MySQL, FTP, security, backups, server resources, and more.
Table of Contents
- How it works
- Requirements
- Install
- Configuration
- Wire it into your MCP client
- Tool catalogue
- Example sessions
- Permission scopes
- Security model
- Troubleshooting
- Development
- Versioning & support
- License
How it works
panelica-mcp is a thin, stateless adapter:
- The MCP client launches the binary over stdio.
- At startup the server fetches
<PANELICA_BASE_URL>/v1/api-specfrom your panel and builds the tool list from it (live catalogue, default). If the panel is unreachable it falls back to the bundledtools/tools.jsonsnapshot. SetPANELICA_LIVE_SPEC=0to always use the snapshot. - The client asks for the tool list and receives it — together with server instructions (how ids, scopes, response envelopes, errors and rate limits work, plus workflow recipes), generated from that same catalogue. See What the assistant knows.
- When the client calls a tool, the server builds the corresponding HTTP
request, signs it with HMAC-SHA256 using your local
PANELICA_API_SECRET, and forwards it to the panel. - The HTTP response is returned to the client as the tool result. A failed call comes back as an explanation of what to do next (missing scope, wrong id, rate-limit reset…) rather than a bare status code.
No data is cached, no telemetry is emitted, and the secret never leaves the machine running the MCP server.
Requirements
- A running Panelica panel (version 1.0.193 or newer recommended; the External API surface is stable from 1.0.180+).
- HTTPS access to the panel UI on port 8443 from the machine that will run
panelica-mcp. This is the same port you already use in the browser — no extra firewall change is required. - One of the following runtimes on that machine:
- Node.js ≥ 20 for the npm install path
- Docker for the container path
You do not need to install anything on the panel host itself, and you do not need to open the internal port 3002 to the public internet.
Install
Pick whichever fits your MCP client setup. All three produce the same stdio binary; pick by which sandbox model you prefer.
Option A — npm (recommended)
or run without installing (the MCP client launches npx for you):
The -y flag accepts npm's "install on first run" prompt non-interactively,
which is what MCP clients need.
Option B — Docker
A pre-built image is published to GitHub Container Registry on every release:
Run it from an MCP client config:
-i keeps stdin attached so the MCP client can talk to the container.
--rm removes the container when the client disconnects.
Option C — Build from source
To regenerate tools/tools.json from your panel's live API spec:
Configuration
You need three values: a reachable base URL, an API key, and an API secret.
1. Pick the right base URL
Panelica's external-server process listens on 127.0.0.1:3002, and the
panel's nginx on 8443 reverse-proxies /api/external/... to it. Nginx
strips the /api/external prefix before forwarding, so the path the HMAC
signature is computed over and the path the backend sees both end up as
/v1/... — signatures match end-to-end without any extra knobs.
The right PANELICA_BASE_URL depends on where you run panelica-mcp:
You should not open port 3002 to the public internet. The default install binds it on all interfaces but expects it to be either firewalled or only reached through the 8443 reverse proxy.
Sanity-check the proxy from your machine:
If you get a TLS error, that is the panel's self-signed certificate — install a real cert on the panel (panel UI → Settings → SSL) rather than disabling verification client-side.
2. Generate an API key in the panel
- Sign in to the panel as root or any account with permission to manage API keys.
- Navigate to Settings → API Keys → Generate API Key.
- Pick the scopes you want the MCP server to have. For a read-only assistant,
*:readis enough (panel 1.0.528+; older panels need the individual<area>:readscopes). For full automation grant*:writeand*:deletetoo, or*:*. Every tool'sdescriptionin this server lists the scopes it requires. - Copy both key (looks like
pk_...) and secret (looks likesk_...). The secret is shown only once; store it in a password manager.
3. Verify the credentials with curl
Before you wire the MCP client up, prove the credentials work end-to-end:
You should get back JSON listing your API keys. Common 401 responses:
4. Optional environment variables
Wire it into your MCP client
Claude Code (one command)
That's it — ask Claude Code to "list my domains" or "create a database for example.com" and it will drive the panel through the scoped API key.
Claude Desktop
Edit your Claude Desktop config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux (Claude Desktop beta):
~/.config/Claude/claude_desktop_config.json
Save, fully quit Claude Desktop (not just close the window — Quit), and
re-open it. A new chat will show panelica as a connected MCP server with
"37 tools available" (the core set plus three meta tools; set PANELICA_TOOLSETS=all for all 489).
Cursor
In Settings → MCP → Add new server:
OpenAI Codex CLI
Add to ~/.codex/config.toml:
Continue.dev, Cline, Zed
Any MCP-aware editor that accepts a stdio command works the same way — give it
npx -y panelica-mcp (or the absolute path to the built dist/index.js) and
the three environment variables.
Generic stdio client
The process speaks MCP JSON-RPC over stdin/stdout. Send an initialize
request first, then tools/list, then tools/call.
Toolsets — what the client sees
MCP clients budget tools: Cursor caps active tools at about 40 across all servers and silently drops the rest, and every registered tool costs prompt tokens on each turn. So by default the server registers a compact core set (34 everyday tools: accounts, domains, DNS, SSL, databases, e-mail, FTP, backups, server status/services, WordPress, Docker, plans) plus three meta tools that reach the whole catalogue:
Choose the set with PANELICA_TOOLSETS (comma-separated, unioned):
Direct calls to a non-registered catalogue tool are still accepted, so a
client that learned a tool name from panelica_find_tools can call it either
way.
What the assistant knows
An assistant that only sees 400 tool names guesses ids, retries 403s and
misreads responses. panelica-mcp gives it the API "by heart" instead, and
everything below is generated from the catalogue, so it can never promise a
path the panel does not have:
- Server instructions (sent on
initialize, so every client injects them into the model's context): how calls work, that every id is a UUID coming from a list call, that users are called accounts, the{"status":"success","data":…}envelope, unpaginated lists, what each error class means and what to do, scope families, the category map with counts, safety rules for mutating/destructive tools, and workflow recipes that are included only when every step exists in the catalogue. - Your key, up front. At startup the server calls
GET /v1/meonce and tells the model which key it holds, its scopes, tier and expiry — so a read-only key is announced as read-only and out-of-scope tools are declined with the scope to add, not attempted. A rejected credential is reported in the instructions before the first tool call. (PANELICA_STARTUP_PROBE=0disables the probe.) - Scopes as the code enforces them. Newer panels derive the required scopes from the middleware chain instead of hand-written docs, including "one of a, b" rules and role restrictions (ROOT/ADMIN); the tool description repeats them verbatim.
- Allowed values. Fields with a declared value list (
ssl_provider,web_server,restart_policy…) carry a JSON-schemaenumanddefault, so the model does not guess. - Big lists stay usable. Every list-returning GET accepts
_limit,_fieldsand_match; the server applies them to the response (the panel never sees them) and reports{total, matched, shown}so a 500-domain panel can be searched in one call. - Validation errors name the field. A Gin validation failure becomes
field "user_id" is required/field "type" must be one of the allowed valuesusing the JSON names the model used. - Search speaks the user's language.
panelica_find_toolsmaps website→domain, certificate→ssl, mailbox→email, container→docker and stems plurals, so the first query finds the right tool. - Transient limits are absorbed. A 429 whose window resets within 15 s is waited out once; a GET that fails on the network is retried once; a clock skew above two minutes against the panel is flagged in the instructions (HMAC timestamps would be rejected).
- Per-tool descriptions carry the HTTP route, required scopes, a
Returns:line with the response envelope and the first data fields, and the risk class (read-only / mutating / destructive). - Id parameters say where they come from —
UUID of the domain — obtain it from GET /v1/domains— for path, query and body fields alike. Newer panels ship this in the spec; for older panels the server derives it. panelica_describe_toolreturns the exact parameters, body fields and response fields of one tool, so the model checks before it calls.- Errors are explained, not echoed: a 403 names the missing scope and says retrying cannot help; a 404 says to re-list and use a real id; a 429 reports the reset window; 5xx says to report, not loop. The raw panel response is appended for reference.
- Results are bounded: oversized list responses are cut to the first items
with an explicit
_truncatednote (still valid JSON) instead of flooding the context. - Resources for clients that support them:
panelica://guide(the instructions),panelica://catalogue(every tool with route and summary) and, in live mode,panelica://spec(your panel's full API spec).
The response-field lists come from the panel's /v1/api-spec, which newer
panels derive from their handler source at build time; a panel that predates
this still works — its tools simply show {status, data} without field names.
Tool catalogue
489 tools are auto-generated from the panel's live /v1/api-spec, so they never
drift from the API. Each tool carries MCP safety annotations
([read-only] 181 ·
[mutating] 177 ·
[destructive] 46)
that capable clients use to auto-approve reads and warn before destructive calls.
Body fields and query parameters are derived from the panel's handler code
(gen-external-schemas in the panel repository), so on panels from 1.0.528 on
mutating tools carry typed, required-marked bodies and action endpoints such as
…/suspend or …/restart declare that they take no body at all.
Full machine-readable list: tools/tools.json.
Example sessions
After wiring the server up, try these in your MCP client:
Domain provisioning.
"Create a new account for
[email protected]on thestarterplan, then add the domainalice-shop.comto it and issue a Let's Encrypt certificate."
The assistant will pick up panelica_accounts_post_v1_accounts,
panelica_domains_post_v1_domains, and panelica_ssl_post_v1_ssl_... from
the catalogue, fill in the parameters from the conversation, and call them in
sequence. You can watch the calls happen in the client's tool log.
Diagnostic.
"Show me the last 24 hours of bandwidth usage for
alice-shop.comand tell me whether it is on track to exceed the plan quota this month."
Bulk cleanup.
"List every domain whose SSL certificate expires in the next 14 days and renew them all."
DNS migration.
"For the zone
alice-shop.com, list the current A and CNAME records, then addwwwas a CNAME toalice-shop.comand an A record for203.0.113.10."
The assistant will only invoke tools whose scopes are granted to your API key, so a read-only key safely answers "list" questions but refuses "create / delete".
Permission scopes
API keys are scoped — grant an AI assistant exactly the access it needs, nothing
more. No scope is preselected when creating a key in the panel, and the
create dialog has live search over all 50 scopes.
[read] view/list only · [write] create/update · [delete] remove · [special] special access.
Every family also accepts its wildcard (domains:*) and *:* grants everything.
Mutating service control deliberately requires its own action scopes (or
server:write) — a metrics-only server:read key can not stop MySQL.
Rate limits
API keys carry a rate-limit tier (rate_limit_tier when creating the key:
starter 60/min, professional 300/min, business 1000/min, enterprise
unlimited). The default starter tier is easy to exhaust when an assistant
fans out many calls; create the assistant's key with a higher tier if you see
429 RATE_LIMIT_EXCEEDED (the response carries reset_at).
Security model
- HMAC-SHA256 request signing. Every request is signed over
METHOD + PATH + QUERY + TIMESTAMP + BODYwith your API secret. The panel rejects requests whose timestamp drifts more than 5 minutes from server clock, so replays are not possible. - Secrets stay local. The API secret is read from the process environment and used only to compute the signature. It is never logged, sent to any third party, or written to disk.
- Scope-restricted keys. Generate one API key per use case. Grant only
the scopes that use case needs — e.g.
domains:readfor a read-only assistant,*:writeonly for full automation. - Audit trail. Every request hits the panel's normal audit logging and RBAC. Actions taken via MCP are indistinguishable from any other authenticated API call and can be traced to the API key that performed them.
- No data harvesting. This server emits no telemetry, writes no cache, and contacts no third party.
- Container hardening. The Docker image runs as a non-root user and exposes no ports — it speaks only stdio.
Troubleshooting
If you are still stuck, open an issue at github.com/Panelica/panelica-mcp/issues with the (redacted) stderr output.
Development
Project layout:
Keeping the tool catalogue current
The catalogue never drifts from the API by hand. The backend serves an
always-current /v1/api-spec (built from its route registry), and the tools are
regenerated from it:
CI (refresh-tools.yml) runs this weekly against the panel named in the
PANELICA_SPEC_URL repository secret. When the catalogue changed it bumps the
patch version, tags, and publishes npm, the Docker image and the MCP Registry
entry in the same run, so a new API endpoint reaches npx -y panelica-mcp
users automatically. Running servers do not even need that: with the default
live catalogue they read the spec from the panel they talk to. Each tool is tagged with safety
annotations (readOnlyHint for GET, destructiveHint for DELETE) that
capable MCP clients use to auto-approve reads and warn before destructive calls.
A separate, internal dataset of every panel endpoint (1,263 total) exists for training purposes — only the 404 documented External API endpoints are exposed through this package. Internal panel endpoints, recorded DEV data, and training jsonl files are not part of the public repository.
Versioning & support
- This package follows the Panelica panel's External API. Tool signatures change only when the panel itself ships a backward-incompatible API change, and the package's major version is bumped to match.
- New endpoints become available the next time we regenerate
tools/tools.jsonand publish a release — or immediately, in live mode, from your own panel's/v1/api-spec. - Response-field lists, id provenance and cleaned descriptions come from the panel's spec; a panel that predates them still works with plainer tools.
- Panel issues (the API itself, not this client): the Panelica forum at forum.panelica.com.
- Client / packaging issues: github.com/Panelica/panelica-mcp/issues.
License
MIT. See LICENSE.
Links
- Panel website: https://panelica.com
- Live demo: https://demo.panelica.com
- Documentation: https://panelica.com/docs
- Forum & support: https://forum.panelica.com
- Public installer: https://latest.panelica.com/install.sh
來源:README.md,提交 840c8b4
工具
0版本歷史
5- v0.5.5最新Nov 11, 2026
- v0.5.4Nov 3, 2026
- v0.5.2Oct 12, 2026
- v0.5.1Sep 17, 2026
- v0.2.2Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分