MCP server for 1Panel v2

MCP server for 1Panel v2

mcp-1panel•by1panel-dev

An MCP server for 1Panel v2 providing 20 shared tools covering nodes, system status, websites, certificates, applications and MySQL, with independent and managed modes.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Exposes 20 shared tools for nodes, system status, websites, certificates, applications and MySQL.
  • •Supports readonly, readwrite and full access levels controlling tool listing and execution.
  • •Business tools accept an optional nodeId, defaulting to local, with discovery via list_nodes.
  • •Can be run over stdio or Streamable HTTP transports.

BEST FOR

  • •Querying permitted node IDs and system information through an MCP client.
  • •Inspecting websites, domains, HTTPS and certificate metadata.
  • •Creating websites, certificates and MySQL databases at readwrite level.

ABOUT MCP-1PANEL

MCP server for 1Panel v2 is cataloged as an MCP server attributed to 1panel-dev. An MCP server for 1Panel v2 providing 20 shared tools covering nodes, system status, websites, certificates, applications and MySQL, with independent and managed modes. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for 1Panel v2 are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What is the difference between independent and managed modes?

Independent mode uses a configured API Key against public APIs, while managed mode uses a dedicated MCP credential checked against owner permissions and grants.

Does an accepted certificate or app installation request mean the task is complete?

No. Certificate issuance and app installation return requestStatus:accepted, meaning submitted rather than completed, and the actual resource or task should be checked in 1Panel before retrying.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 6118ab03aa5d · 采集于 2026-11-13 09:32:34 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

1Panel MCP Server

English | 简体中文

An MCP server for 1Panel v2, with 20 shared tools for nodes, system status, websites, certificates, applications and MySQL. Independent mode uses the official Go MCP SDK; managed mode integrates with 1Panel's authorization and audit.

Choose a mode

ModeConnection and authorizationDeployment
Independent: --mode=legacy (default)Configured API Key calls existing public /api/v2 APIs; panel permissions apply to every requeststdio or Streamable HTTP, as a binary or Docker container
Managed: --mode=panelDedicated MCP credential; Core checks the owner's current permissions, node/tool grants and policyDocker on the primary node, installed from AI → MCP Management → 1Panel MCP

Independent mode requires an enabled public API and compatible APIs/DTOs for the selected tools on your installed 1Panel v2 release. It needs no managed MCP installation. Managed mode requires matching Core, primary/child Agents and frontend. See managed deployment.

CredentialPurpose
PANEL_ACCESS_TOKEN / --token1Panel API Key used by independent mode for outgoing panel requests
MCP_AUTH_TOKEN / --mcp-tokenSeparate pre-shared Bearer used by clients connecting to independent Streamable HTTP
Token created in the panel's MCP pageDedicated managed credential with explicit node/tool grants; clients use the panel's HTTPS /mcp endpoint

The independent HTTP token permits use of the configured API Key; it does not create another panel identity. The two modes' MCP credentials are not interchangeable.

Install

Source

Use Go 1.27.3. The v2 source branch is dev-v2:

git clone --branch dev-v2 https://github.com/1Panel-dev/mcp-1panel.git
cd mcp-1panel
go mod download
make build
./build/mcp-1panel --version

make build creates a host-platform binary at build/mcp-1panel. To cross-build Linux, use make build_linux GOARCH=amd64 or GOARCH=arm64; make build_linux_all builds all seven architectures: 386, amd64, arm64, armv7, s390x, ppc64le and riscv64. Linux builds require a locally available toolchain and cached dependencies; outputs are build/mcp-1panel-linux-{arch}.

Release binary

Choose an explicitly published v2 release from Releases compatible with your installed panel's public APIs. Download the matching architecture and SHA256SUMS, verify the checksum, then run, for example on Linux amd64:

chmod +x ./mcp-1panel-linux-amd64
./mcp-1panel-linux-amd64 --version

Use that binary's absolute path in the client configuration below.

For maintainers, publishing a GitHub Release triggers tests, builds all seven Linux binaries, uploads them with SHA256SUMS to that release, and pushes the multi-platform Docker image. Ordinary commits, tag pushes and saved drafts do not trigger this workflow. The release tag provides the version; prereleases and tags containing - do not update Docker latest.

Docker

The image defaults to independent stdio mode. To build and export a fixed version locally (these commands do not publish an image):

make docker_build VERSION=v2.0.0-rc1 DOCKER_PLATFORM=linux/amd64
make docker_save VERSION=v2.0.0-rc1 DOCKER_PLATFORM=linux/amd64
# Transfer to a matching Linux host, then import:
docker load -i build/mcp-1panel-linux-amd64-v2.0.0-rc1.tar

Choose your own fixed version; the example tag is not a publication claim. The official repository is 1panel/mcp-server. Docker builds support linux/386, linux/amd64, linux/arm64, linux/arm/v7, linux/s390x, linux/ppc64le and linux/riscv64. For managed installation, use the panel's installation dialog and container contract.

Connect a client

stdio

Let the MCP client start the binary; use its absolute path and replace placeholders:

{
  "mcpServers": {
    "mcp-1panel": {
      "command": "/absolute/path/to/mcp-1panel",
      "args": ["--mode=legacy", "--transport=stdio", "--access-level=readonly"],
      "env": {
        "PANEL_HOST": "https://panel.example",
        "PANEL_ACCESS_TOKEN": "<1Panel API Key>",
        "MCP_LANGUAGE": "en"
      }
    }
  }
}

stdio does not listen on a port. When client-managed, no separate server process is needed. To use Docker instead, the client must launch this command with the same environment variables; the panel URL must be reachable from the container:

docker run -i --rm -e PANEL_HOST -e PANEL_ACCESS_TOKEN \
  1panel/mcp-server:v2.0.0-rc1 \
  --mode=legacy --transport=stdio --access-level=readonly

Use an image you built/imported or an actually published tag. Container localhost is not the Docker host.

HTTPS / Streamable HTTP

Start the server before connecting. This example uses the source-built binary, a persistent local CA, and an independent MCP Bearer:

export PANEL_HOST='https://panel.example'
export PANEL_ACCESS_TOKEN='<1Panel API Key>'
export MCP_AUTH_TOKEN='<separate strong random token>'
./build/mcp-1panel \
  --mode=legacy --transport=streamable-http \
  --addr=https://0.0.0.0:8000/mcp --allow-remote-http \
  --tls-hosts=mcp.example.com --tls-dir=./build/tls \
  --access-level=readonly

Replace the domain, configure DNS and allow the required port. Configure a Streamable HTTP client with https://mcp.example.com:8000/mcp and the header Authorization: Bearer <MCP_AUTH_TOKEN>. Verify the CA fingerprint printed at startup and trust build/tls/ca.crt in the client. Keep the CA/private keys for reuse; share only the CA certificate. Do not disable certificate verification.

Non-loopback listening requires HTTPS, authentication and --allow-remote-http. If the client sends Origin, allow its exact value with --allowed-origins=https://client.example.com. Same-host clients can instead use --addr=http://127.0.0.1:8000/mcp without TLS flags; the Bearer is still required. This is pre-shared authentication, not an MCP OAuth flow.

Access levels and tools

Independent mode defaults to readonly. --access-level / MCP_ACCESS_LEVEL controls both listing and execution, including direct calls to hidden tools. It restricts the configured Key and cannot add panel permissions. Managed mode uses Core grants instead of this option.

LevelTools
readonly15 query, list and status tools
readwrite18 tools, adding website, certificate and database creation
fullAll 20, adding MySQL and OpenResty installation
ToolMinimum levelPurpose
list_nodesreadonlyDiscover permitted node IDs
get_system_inforeadonlySystem information
get_dashboard_inforeadonlyDashboard status
list_websitesreadonlyWebsite list
get_websitereadonlyWebsite metadata
list_website_domainsreadonlyDomains and ports
get_website_httpsreadonlyHTTPS and certificate metadata
list_sslsreadonlyCertificate list
get_ssl_metadatareadonlyCertificate metadata
list_installed_appsreadonlyInstalled application list
get_installed_appreadonlyInstallation state, version and ports
list_app_versionsreadonlyAvailable application versions
list_databasesreadonlyDatabases in a selected local MySQL instance
list_mysql_instancesreadonlyRecorded local MySQL instances
get_mysql_statusreadonlyFixed MySQL status counters
create_websitereadwriteCreate a static or proxy website
create_sslreadwriteSubmit certificate issuance
create_databasereadwriteCreate a local MySQL database
install_mysqlfullSubmit MySQL installation
install_openrestyfullSubmit OpenResty installation

get_installed_app may refresh the panel's status cache in independent mode; its query classification does not promise zero server writes. Managed mode reads recorded state.

Nodes and write outcomes

The 19 business tools accept optional nodeId, defaulting to "local". Call list_nodes with {} for child IDs such as "7", then pass the ID to a business tool. Names and IPs are not node selectors. Independent mode resolves ID to current name per call and routes through CurrentNode; local calls need no discovery. Managed mode uses stable-ID routing and rechecks grants on each API step. Neither mode falls back to the primary node. See node authorization.

Certificate issuance and app installation return requestStatus:accepted, which means submitted, not completed. A submitted write followed by a network/read failure, HTTP/business 5xx or an invalid success response has an unknown outcome. Check the actual resource or task in 1Panel before any manual retry; never automatically repeat the write. Disconnecting or revoking credentials does not roll back accepted work. See tool inputs and constraints.

Configuration reference

Command-line values take precedence over their environment counterparts.

OptionEnvironment / default
--modelegacy or panel; default legacy
--host, --tokenPANEL_HOST, PANEL_ACCESS_TOKEN
--key-idOptional PANEL_KEY_ID for panels with multiple API Keys
--transportstdio (default) or streamable-http
--addrDefault http://127.0.0.1:8000; include /mcp when desired
--mcp-tokenMCP_AUTH_TOKEN, required for independent HTTP authentication
--access-levelMCP_ACCESS_LEVEL; default readonly
--tls-dir, --tls-hostsPersistent CA/certificate directory and comma-separated certificate SANs
--allowed-originsComma-separated exact Origin allowlist
--allow-remote-httpPermit authenticated HTTPS on non-loopback addresses
--allow-insecure-httpUnauthenticated loopback transport for local development only
Error languageMCP_LANGUAGE=zh-CN or en; HTTP Accept-Language takes priority

--version and --catalog print metadata offline. The panel manages --listen and --panel-socket; --healthcheck checks managed adapter/Core readiness. Metadata and tool listing alone do not validate API connectivity or business operations.

Documentation and validation

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for 1Panel v2 from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-1panel)

REPOSITORY STATS

GitHub Stars172
Forks29

GitHub API evidence checked 2026-11-25 00:10:58.651Z (UTC). Repository-level counts are shared by all components, not individual server installs. Open issues including pull requests: 0.

Last repository push (UTC):2026-11-19

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps