intermediate⏱️ 14-24 minutes📅 Updated June 2026

Step-by-step guide to integrate 1Panel MCP server with mcp-agent. Includes system management and website management.

1Panel + mcp-agent: Complete MCP Integration

1Panel is a MCP server that MCP server implementation that provides 1Panel interaction.

When integrated with mcp-agent, you can:

  • Monitor system status and dashboard information
  • Create and manage websites on 1Panel
  • Handle SSL certificates and HTTPS configuration

This guide provides step-by-step instructions to set up 1Panel in mcp-agent, including configuration, examples, and troubleshooting.

What You'll Achieve

After completing this setup:

  • 1Panel will be fully integrated and operational
  • You can use 1Panel tools directly in mcp-agent
  • All 1Panel capabilities will be available for your workflows
  • Access to 5 different tools

Prerequisites

Before starting, ensure you have:

  • 1Panel access token for authentication
  • 1Panel server address
  • mcp-agent installed and configured
  • Compatible operating system (Python 3.9+, pip Installation, uv Installation, Temporal (Optional))

Installation

Step 1: Install 1Panel

Configuration

Step 2: Configure mcp-agent

  1. Open mcp-agent settings
  2. Navigate to MCP server configuration
  3. Add 1Panel server with appropriate settings
  4. Save and restart if needed

Examples

Once configured, you can use 1Panel in mcp-agent:

Get System Overview

Check 1Panel server status and system information

Ask mcp-agent: "Show me the dashboard information and system status"

Expected Result: Dashboard data including CPU, memory, disk usage, and running services

Create New Website

Set up a new website with domain configuration

Ask mcp-agent: "Create a website for domain example.com with PHP support"

Expected Result: Website created with virtual host configuration and PHP environment

Install Database Server

Install and configure MySQL server

Ask mcp-agent: "Install MySQL and create a database called myapp_db"

Expected Result: MySQL installed, database created, and connection details provided

SSL Certificate Setup

Generate and configure SSL certificate for website

Ask mcp-agent: "Create an SSL certificate for my website example.com"

Expected Result: SSL certificate generated and configured for HTTPS access

Testing Your Setup

  1. Launch mcp-agent
  2. Verify 1Panel is available in the tools list
  3. Test basic 1Panel functionality

Troubleshooting

Common Issues

Authentication Failed

Symptoms: Access denied errors, Invalid token messages, Connection refused

Cause: Invalid or missing PANEL_ACCESS_TOKEN

Solution:

  • Verify PANEL_ACCESS_TOKEN is set correctly
  • Check token validity in 1Panel admin interface
  • Ensure token has sufficient permissions

Connection to 1Panel Failed

Symptoms: Connection timeout, Server unreachable, Network errors

Cause: Invalid PANEL_HOST or 1Panel server not running

Solution:

  • Verify PANEL_HOST URL is correct
  • Check 1Panel server is running on specified port
  • Test network connectivity to 1Panel server
  • Ensure firewall allows connections

SSE Mode Not Working

Symptoms: SSE endpoint not responding, Transport errors

Cause: Incorrect SSE configuration or port conflicts

Solution:

  • Verify -addr parameter is accessible
  • Check port is not in use by another service
  • Ensure SSE transport is specified correctly
  • Test SSE endpoint with curl

Binary Not Found

Symptoms: Command not found, mcp-1panel: command not found

Cause: Binary not in PATH or not properly installed

Solution:

  • Verify binary is in /usr/local/bin or system PATH
  • Check file permissions (executable bit)
  • Re-download and reinstall binary
  • Use full path to binary if needed

Import Error - Module Not Found

Symptoms: ModuleNotFoundError: No module named mcp_agent, Import fails

Cause: mcp-agent not installed or wrong Python environment

Solution:

  • Verify installation: pip show mcp-agent
  • Ensure using correct Python environment/virtualenv
  • Reinstall: pip install --upgrade mcp-agent
  • Check Python version is 3.9 or higher

MCP Server Connection Failures

Symptoms: Server not starting, Connection timeout, Tool execution errors

Cause: Invalid MCP server configuration or missing dependencies

Solution:

  • Verify npx is installed and accessible (required for stdio servers)
  • Check MCP server package name and arguments are correct
  • Test server independently: npx -y @modelcontextprotocol/server-filesystem /path
  • Review agent logs for detailed error messages
  • Ensure required environment variables are set

LLM API Authentication Errors

Symptoms: 401 Unauthorized, API key invalid, Provider authentication failed

Cause: Missing or incorrect API keys for LLM provider

Solution:

  • Set environment variables: ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.
  • Verify API key is valid and has correct permissions
  • Check API key format matches provider requirements
  • Pass api_key parameter explicitly in Agent initialization

Workflow Execution Failures

Symptoms: Workflow hangs, Timeout errors, Incomplete results

Cause: Workflow pattern misconfiguration or task complexity

Solution:

  • Increase timeout values for long-running tasks
  • Break complex workflows into smaller steps
  • Verify all workflow dependencies are available
  • Check Temporal backend is running (for production deployments)
  • Review workflow logs for specific error messages

Temporal Backend Connection Issues

Symptoms: Cannot connect to Temporal, Workflow registration fails, Worker errors

Cause: Temporal server not running or misconfigured

Solution:

  • Verify Temporal server is running: temporal server health
  • Check Temporal connection settings (host, port, namespace)
  • Ensure Temporal workers are registered correctly
  • Review Temporal server logs for connection errors
  • Start local Temporal dev server: temporal server start-dev

Performance Issues with Large Workflows

Symptoms: Slow execution, High memory usage, Timeout errors

Cause: Inefficient workflow design or resource constraints

Solution:

  • Use map-reduce pattern for parallelizable tasks
  • Implement batching for large data processing
  • Enable Temporal backend for better resource management
  • Monitor agent memory usage and optimize task size
  • Consider streaming responses for large outputs

1Panel not appearing in mcp-agent

Symptoms: Server not listed, Tools not available

Cause: Configuration or installation issue

Solution:

  • Verify configuration syntax
  • Check 1Panel installation
  • Restart mcp-agent
  • Check logs for error messages

Next Steps

Now that 1Panel is integrated with mcp-agent:

  • Explore all 1Panel capabilities through mcp-agent
  • Check out other MCP servers that work with mcp-agent
  • Join the MCP community for tips and support
  • Consider contributing to 1Panel development

Need Help?

Related Resources

More Integrations

Explore other MCP servers that work with mcp-agent

Need Help?

Join the MCP community for support and discussions

1Panel + mcp-agent: MCP Setup Guide (2026)