Skip to content

๐Ÿค– AI Agents Integration

EasyPanel MCP works with any AI agent that supports the Model Context Protocol (MCP). This guide covers integration with popular AI agents and IDEs.


๐Ÿ“‹ Supported AI Agents

Agent Type Setup Complexity Best For
Claude Desktop Desktop App โญ Easy General purpose, natural language
Cursor IDE Code Editor โญ Easy Development workflows
Cline VS Code Extension โญ Easy Coding assistance
ChatGPT Desktop Desktop App โญโญ Medium GPT-4 infrastructure management
n8n Automation Platform โญโญ Medium Workflow automation
Custom Agents Any MCP Client โญโญโญ Advanced Custom integrations

๐ŸŽฏ Claude Desktop Integration

What is Claude Desktop?

Claude Desktop is Anthropic's desktop application that supports MCP servers, allowing Claude to interact with external tools and services.

Installation

  1. Download Claude Desktop
  2. macOS: Download from Anthropic
  3. Windows: Coming soon
  4. Linux: Use Claude via web or third-party clients

  5. Install on macOS

    # Install to Applications
    mv ~/Downloads/Claude.app /Applications/
    

Configuration

  1. Open Claude Desktop config file:
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Windows (when available)
%APPDATA%\Claude\claude_desktop_config.json
  1. Add EasyPanel MCP configuration:
{
  "mcpServers": {
    "easypanel": {
      "command": "python",
      "args": ["/path/to/easypanel-mcp/src/server.py"],
      "cwd": "/path/to/easypanel-mcp",
      "env": {
        "EASYPANEL_URL": "https://your-easypanel.com",
        "EASYPANEL_API_KEY": "ep_live_xxxxxxxxxxxxx"
      }
    }
  }
}
  1. Restart Claude Desktop

Usage Examples

Once configured, you can ask Claude to:

User: "Show me all my projects in EasyPanel"
Claude: ๐Ÿ“Š I can see you have 3 projects:
        - dashboard (Active)
        - test (Active)
        - wikileyes (Active)

User: "Deploy a PostgreSQL database in my test project"
Claude: ๐Ÿš€ Creating PostgreSQL service...
        โœ… Service 'postgres-db' deployed successfully
        ๐Ÿ“ฆ Image: postgres:15
        ๐Ÿ”— Connected to project 'test'

๐Ÿ’ป Cursor IDE Integration

What is Cursor?

Cursor is an AI-powered code editor with built-in MCP support.

Installation

  1. Download Cursor
  2. Visit: https://cursor.sh
  3. Download for your platform (Windows, macOS, Linux)

  4. Install and open Cursor

Configuration

  1. Open Cursor Settings
  2. Cmd/Ctrl + Shift + P โ†’ "Cursor Settings"
  3. Or: File โ†’ Settings โ†’ AI โ†’ MCP Servers

  4. Add EasyPanel MCP:

{
  "mcpServers": {
    "easypanel": {
      "command": "python",
      "args": ["/absolute/path/to/easypanel-mcp/src/server.py"],
      "cwd": "/absolute/path/to/easypanel-mcp",
      "env": {
        "EASYPANEL_URL": "https://your-easypanel.com",
        "EASYPANEL_API_KEY": "ep_live_xxxxxxxxxxxxx"
      }
    }
  }
}
  1. Reload Cursor

Usage in Cursor

  • Use Cmd/Ctrl + K to open AI chat
  • Ask about your EasyPanel infrastructure
  • Deploy services directly from code comments
// @easypanel Deploy this API to production
async function deploy() {
  // Cursor will use EasyPanel MCP to deploy
}

๐Ÿ”ง Cline (VS Code Extension)

What is Cline?

Cline is a VS Code extension that brings AI coding assistance with MCP support.

Installation

  1. Install Cline in VS Code
  2. Open VS Code
  3. Extensions: Ctrl+Shift+X
  4. Search for "Cline"
  5. Install

  6. Configure Cline

Open Cline settings (Ctrl+,) and add MCP configuration:

{
  "cline.mcpServers": {
    "easypanel": {
      "command": "python",
      "args": ["/path/to/easypanel-mcp/src/server.py"],
      "cwd": "/path/to/easypanel-mcp",
      "env": {
        "EASYPANEL_URL": "https://your-easypanel.com",
        "EASYPANEL_API_KEY": "ep_live_xxxxxxxxxxxxx"
      }
    }
  }
}

Usage

  • Open Cline chat in VS Code
  • Ask Cline to manage your EasyPanel infrastructure
  • Deploy services while coding

๐Ÿค– ChatGPT Desktop Integration

What is ChatGPT Desktop?

Third-party desktop clients for ChatGPT that support MCP.

Supported Clients

  1. ChatGPT Desktop (macOS/Windows)
  2. GitHub: https://github.com/lencx/ChatGPT
  3. Supports MCP via plugins

  4. OpenAI Desktop

  5. Check for MCP support in settings

Configuration

Configuration varies by client. Look for MCP or plugin settings and add EasyPanel MCP server details.


โšก n8n Automation Integration

What is n8n?

n8n is a workflow automation platform that can integrate with MCP servers.

Installation

  1. Self-host n8n:

    docker run -d \
      -p 5678:5678 \
      -v n8n_data:/home/node/.n8n \
      n8nio/n8n
    

  2. Or use n8n Cloud:

  3. Visit: https://n8n.io/cloud

Configuration

  1. Install MCP Node for n8n
  2. Open n8n
  3. Settings โ†’ Community Nodes โ†’ Install
  4. Search for "MCP"

  5. Add EasyPanel MCP Node:

  6. Create new workflow
  7. Add MCP node
  8. Configure:

    Server URL: http://localhost:8080
    Transport: HTTP
    

  9. Run EasyPanel MCP in HTTP mode:

    python src/server.py http
    

Example Workflow

Trigger (Webhook)
    โ†“
MCP Node: list_projects
    โ†“
IF: Project exists?
    โ†“ YES โ†’ MCP Node: deploy_service
    โ†“ NO  โ†’ MCP Node: create_project โ†’ deploy_service
    โ†“
Response (Success message)

๐Ÿ”Œ Custom MCP Clients

HTTP Mode Configuration

For custom clients, run EasyPanel MCP in HTTP mode:

python src/server.py http

Default endpoint: http://127.0.0.1:8080

MCP Protocol Endpoints

Endpoint Method Description
/mcp POST Main MCP endpoint
/ POST Alternative endpoint

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2024-11-05",
    "capabilities": {},
    "clientInfo": {
      "name": "my-custom-client",
      "version": "1.0.0"
    }
  }
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2024-11-05",
    "capabilities": {
      "tools": {
        "list": true
      }
    },
    "serverInfo": {
      "name": "easypanel-mcp",
      "version": "1.0.0"
    }
  }
}

๐Ÿ› ๏ธ Available Tools

Once connected, AI agents can use these tools:

Projects

  • list_projects - List all projects
  • get_project - Get project details
  • create_project - Create new project
  • delete_project - Delete project

Services

  • list_services - List all services
  • get_service - Get service details
  • create_service - Create new service
  • update_service - Update service config
  • delete_service - Delete service
  • restart_service - Restart service
  • deploy_service - Deploy/redeploy service

Deployments

  • list_deployments - List all deployments
  • get_deployment - Get deployment details
  • create_deployment - Create new deployment
  • get_deployment_logs - Get deployment logs

Networks

  • list_networks - List all networks
  • create_network - Create new network
  • delete_network - Delete network

๐Ÿ”’ Security Considerations

1. Protect API Keys

  • Never commit .env files to version control
  • Use environment variables or secrets managers
  • Rotate API keys periodically

2. Network Security

{
  "mcpServers": {
    "easypanel": {
      "env": {
        "MCP_HOST": "127.0.0.1",  // Only localhost access
        "MCP_PORT": "8080"
      }
    }
  }
}

3. Access Control

  • Only trusted AI agents should have MCP access
  • Use separate API keys for different agents
  • Monitor logs for unusual activity

๐Ÿงช Testing Your Integration

Test Connection

# Test MCP server
python test_connection.py

Expected output:

โœ… Connected successfully!
โœ… Found 3 project(s)
โœ… ALL TESTS PASSED

Test with AI Agent

Ask your AI agent:

"List my EasyPanel projects"

If configured correctly, you should see your projects listed.


๐Ÿ†˜ Troubleshooting

Agent Doesn't See MCP Tools

Solution: 1. Restart the AI agent application 2. Verify MCP config file syntax (JSON) 3. Check that EasyPanel MCP is running

Connection Refused

Solution: 1. Ensure EasyPanel MCP is running 2. Check EASYPANEL_URL is correct 3. Verify API key is valid 4. Test with python test_connection.py

Tools Not Available

Solution: 1. Check MCP server logs for errors 2. Verify tRPC connection to EasyPanel 3. Ensure EasyPanel is accessible


๐Ÿ“š Additional Resources


๐Ÿค– Ready to deploy with AI? Choose your agent and start managing infrastructure with natural language!