1Panel MCP Server

1Panel MCP Server

Enables AI agents to manage server infrastructure through the 1Panel API, including Docker containers, databases, and system monitoring. It provides tools for website management, file operations, and application deployment via natural language commands.

Category
Visit Server

README

1Panel MCP Server

A Model Context Protocol (MCP) server for managing 1Panel through AI agents.

Features

This MCP server provides tools for:

  • Container Management: List, start, stop, restart Docker containers
  • Image Management: List and pull Docker images
  • Application Management: List installed apps and browse app store
  • File Management: List files in directories
  • System Monitoring: Get system info and monitoring data (CPU, memory, disk)
  • Website Management: List websites and SSL certificates
  • Database Management: List MySQL, PostgreSQL, and Redis databases
  • Compose Management: List Docker Compose projects

Installation

npm install
npm run build

Configuration

Set the following environment variables:

export ONEPANEL_HOST="your-1panel-host"      # default: localhost
export ONEPANEL_PORT="8080"                   # default: 8080
export ONEPANEL_API_KEY="your-api-key"        # required
export ONEPANEL_PROTOCOL="http"               # default: http

Getting your 1Panel API Key

  1. Log in to your 1Panel dashboard
  2. Go to 面板设置 (Panel Settings)
  3. Enable API access and generate an API key
  4. Add your IP to the whitelist (use 0.0.0.0/0 for all IPs)

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "1panel": {
      "command": "node",
      "args": ["/path/to/1panel-mcp/dist/index.js"],
      "env": {
        "ONEPANEL_HOST": "your-1panel-host",
        "ONEPANEL_PORT": "8080",
        "ONEPANEL_API_KEY": "your-api-key"
      }
    }
  }
}

Usage with OpenClaw

Add to your OpenClaw configuration:

{
  "mcpServers": {
    "1panel": {
      "command": "node",
      "args": ["/path/to/1panel-mcp/dist/index.js"],
      "env": {
        "ONEPANEL_HOST": "your-1panel-host",
        "ONEPANEL_PORT": "8080",
        "ONEPANEL_API_KEY": "your-api-key"
      }
    }
  }
}

Available Tools

Tool Description
list_containers List all Docker containers
start_container Start a container by ID
stop_container Stop a container by ID
restart_container Restart a container by ID
list_images List all Docker images
pull_image Pull a Docker image
list_installed_apps List installed applications
list_app_store List available apps in store
list_files List files in a directory
get_system_info Get system information
get_system_monitor Get CPU/memory/disk usage
list_websites List all websites
list_databases List databases (mysql/postgresql/redis)
list_composes List Docker Compose projects
list_certificates List SSL certificates

API Reference

This MCP server uses the 1Panel API v2. For complete API documentation, visit: http://your-1panel-host:port/1panel/swagger/index.html

Authentication

1Panel uses a custom token authentication:

Token = md5('1panel' + API-Key + UnixTimestamp)

The server automatically generates tokens for each request.

Development

# Install dependencies
npm install

# Build
npm run build

# Development mode with watch
npm run dev

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured