Skip to main content
Glama

easypanel-mcp

MCP server for EasyPanel — manage your server, projects, services, databases, and domains through any MCP-compatible AI agent (Claude, Cursor, etc.).

42 curated tools + raw tRPC access to all 347 EasyPanel API procedures.

🚀 Quick Setup (Deploy on EasyPanel)

The easiest way — deploy the MCP server as a service on your own EasyPanel. Pick an auth mode:

  • OAuth (recommended) — users sign in with their Easypanel email/password in a browser popup. No tokens to generate or paste. Per-user access.

  • Bearer — one shared API key + one Easypanel token baked into env vars. MCP_API_KEY is required: the server refuses to start without it.

OAuth mode (browser sign-in, per-user)

  1. Create a project (e.g. mcp), add an App service from GitHub dray-supadev/easypanel-mcp

  2. Add a domain (e.g. mcp.your-domain.com)

  3. Set environment variables:

    EASYPANEL_URL=http://easypanel:3000
    EASYPANEL_MCP_MODE=http
    EASYPANEL_AUTH_MODE=oauth
    OAUTH_ISSUER_URL=https://mcp.your-domain.com
    MCP_ACCESS_MODE=readonly
    PORT=3000

    EASYPANEL_AUTH_MODE=oauth is what makes MCP_API_KEY unnecessary here. In the default bearer mode an HTTP deployment requires MCP_API_KEY and the server refuses to start without it.

  4. (Optional but recommended) Mount a volume at /data and set OAUTH_STORE_PATH=/data/oauth.json so tokens survive redeploys.

  5. Deploy.

Connect Claude Desktop or another OAuth-aware MCP client:

{
  "mcpServers": {
    "easypanel": { "url": "https://mcp.your-domain.com/mcp" }
  }
}

On first use the client will pop a browser window asking for your Easypanel credentials, then return you to Claude with an access token. No manual curl required.

The login page calls Easypanel's auth.login internally and binds the session token to an opaque OAuth access token scoped to this MCP server. Credentials are never stored.

Bearer mode (shared key, simpler)

  1. Get your API token:

    curl -X POST https://YOUR_PANEL:3000/api/trpc/auth.login \
      -H "Content-Type: application/json" \
      -d '{"json":{"email":"you@email.com","password":"your-pass"}}'

    If you have 2FA enabled, add "code":"123456" with your authenticator code.

    The response contains "token":"xxx" — that's your API token.

    ⚠️ This is a session token that expires in 30 days. For a permanent token, use users.generateApiToken (see below).

  2. Deploy on EasyPanel:

    EASYPANEL_URL=http://easypanel:3000
    EASYPANEL_TOKEN=your-api-token
    EASYPANEL_MCP_MODE=http
    MCP_API_KEY=your-secret-key
    MCP_ACCESS_MODE=readonly
    PORT=3000

    Important: Use http://easypanel:3000 (internal Docker network) when deploying on the same EasyPanel instance. MCP_ACCESS_MODE: readonly rejects every tool call that would mutate your panel — including mutating procedures called through trpc_raw — and allows read-only calls through. Set to full to allow mutations. ⚠️ MCP_API_KEY is required in HTTP bearer mode — the server exits at startup if it is unset, rather than serving every tool unauthenticated. Use alphanumeric only (!, %, ^ may break in env vars).

  3. Connect Claude Desktop:

    {
      "mcpServers": {
        "easypanel": {
          "url": "https://mcp.your-domain.com/mcp",
          "headers": { "Authorization": "Bearer your-secret-key" }
        }
      }
    }

Restart Claude Desktop. Done! Ask Claude to "show my projects" 🎉

Related MCP server: coolify-mcp

💻 Local Setup (Alternative)

Run the MCP server locally via stdio (no deployment needed):

git clone https://github.com/dray-supadev/easypanel-mcp.git
cd easypanel-mcp
npm install && npm run build
{
  "mcpServers": {
    "easypanel": {
      "command": "node",
      "args": ["/path/to/easypanel-mcp/dist/index.js"],
      "env": {
        "EASYPANEL_URL": "https://your-panel:3000",
        "EASYPANEL_TOKEN": "your-api-token"
      }
    }
  }
}

🔧 Available Tools (42)

Projects

list_projects · create_project · destroy_project · inspect_project

App Services

create_app · inspect_app · deploy_app · start_app · stop_app · restart_app · destroy_app · set_app_source_image · set_app_source_github · set_app_env · set_app_resources

Databases (Postgres, MySQL, MariaDB, MongoDB, Redis)

create_database · inspect_database · destroy_database

Domains & Ports

list_domains · create_domain · delete_domain · create_port · list_ports

Volumes

create_mount · list_mounts

Monitoring

system_stats · service_stats · storage_stats

Docker Compose

create_compose · inspect_compose · deploy_compose

System

cleanup_docker · system_prune · restart_panel · reboot_server · list_users · list_certificates · list_nodes · deploy_template · list_actions · get_action_log

Escape Hatch

trpc_raw — call any of the 347 tRPC procedures directly

🔒 Security

  • OAuth mode — per-user access via browser sign-in; the MCP server acts as an OAuth 2.1 authorization server (PKCE required, dynamic client registration per RFC 7591). Access tokens are opaque and bound to the user's Easypanel session token server-side; credentials never leave this server in stored form.

  • Bearer mode — MCP_API_KEY protects the endpoint and is mandatory (the server refuses to start without it), EASYPANEL_TOKEN is used for all API calls.

  • Health endpoint (/health) is always public (returns no sensitive data).

  • In local/stdio mode, no network auth is needed.

Environment Variables

Variable

Required

Description

EASYPANEL_URL

✅

Your EasyPanel URL

EASYPANEL_TOKEN

Bearer/stdio

API token from login (not needed in OAuth mode)

EASYPANEL_MCP_MODE

For HTTP

stdio (default) or http

EASYPANEL_AUTH_MODE

No

bearer (default) or oauth

MCP_API_KEY

✅ Bearer HTTP

Shared key protecting the endpoint — required, the server will not start without it

OAUTH_ISSUER_URL

OAuth

Public URL of this server (e.g. https://mcp.example.com)

OAUTH_STORE_PATH

No

Where to persist OAuth state (default ./.easypanel-mcp-oauth.json)

MCP_ACCESS_MODE

No

full (default) or readonly — readonly rejects every mutating tool call, trpc_raw mutations included

PORT

No

HTTP port (default: 3100)

MCP_BIND_HOST

No

Listen address (default: 0.0.0.0)

MCP_ALLOWED_ORIGINS

No

Comma-separated CORS origin allowlist

EASYPANEL_TIMEOUT_MS

No

Timeout for calls to EasyPanel, in ms (default: 30000)

LOG_LEVEL

No

debug, info (default), warn or error

CF_ACCESS_TEAM_DOMAIN

No

Cloudflare Access team domain (e.g. your-team.cloudflareaccess.com) — enables JWT verification

CF_ACCESS_AUD

No

Cloudflare Access application AUD tag — required with CF_ACCESS_TEAM_DOMAIN

CF_ACCESS_REQUIRE_EMAIL_MATCH

No

true to require the submitted Easypanel email to match the Cloudflare-authenticated one

CF_ACCESS_CLIENT_ID

No

Cloudflare Access service token ID, sent on every backend Easypanel call

CF_ACCESS_CLIENT_SECRET

No

Cloudflare Access service token secret

OAuth Endpoints

When EASYPANEL_AUTH_MODE=oauth, the server exposes:

  • GET /.well-known/oauth-authorization-server — RFC 8414 metadata

  • GET /.well-known/oauth-protected-resource — RFC 9728 metadata

  • POST /register — RFC 7591 dynamic client registration

  • GET /authorize — login page

  • POST /authorize — credentials → authorization code (302 redirect to client)

  • POST /token — authorization_code and refresh_token grants (S256 PKCE required)

Generating a Permanent API Token

Session tokens from auth.login expire in 30 days. For a permanent token:

Step 1. Get your user ID:

curl -s "https://YOUR_PANEL:3000/api/trpc/users.listUsers" \
  -H "Authorization: Bearer YOUR_SESSION_TOKEN"

Find your email in the response and copy the "id" field.

Step 2. Generate the permanent token:

curl -s -X POST "https://YOUR_PANEL:3000/api/trpc/users.generateApiToken" \
  -H "Authorization: Bearer YOUR_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"json":{"id":"YOUR_USER_ID"}}'

Step 3. Retrieve the token — list users again:

curl -s "https://YOUR_PANEL:3000/api/trpc/users.listUsers" \
  -H "Authorization: Bearer YOUR_SESSION_TOKEN"

Your user now has an "apiToken" field — that's the permanent token. Set it as EASYPANEL_TOKEN in your MCP service env.

This token never expires unless you revoke it via users.revokeApiToken.

How It Works

EasyPanel exposes a tRPC API at /api/trpc/. This MCP server was built by reverse-engineering EasyPanel's frontend to extract all 347 procedure names across 43 namespaces, then mapping the most useful ones to typed MCP tools.

Disclaimer

This tool communicates with EasyPanel's public tRPC API. Some EasyPanel features may require a valid license. Please respect EasyPanel's licensing terms. This project is not affiliated with or endorsed by EasyPanel.

License

MIT

Available Tools

42 tools
cleanup_dockerB

Clean up unused Docker images

Inputs: no named parameters.

create_appC

Create an app service

Inputs: projectName (required), serviceName (required).

create_composeC

Create a Docker Compose service

Inputs: projectName (required), serviceName (required).

create_databaseC

Create a database service

Inputs: engine (required), projectName (required), serviceName (required), password.

create_domainB

Add a domain to a service

Inputs: host (required), projectName (required), serviceName (required), port, +1 more.

create_mountB

Create a volume mount for a service

Inputs: mountPath (required), projectName (required), serviceName (required), name, +1 more.

create_portC

Expose a port for a service

Inputs: targetPort (required), projectName (required), serviceName (required), publishedPort (required), +1 more.

create_projectC

Create a new project

Inputs: name (required).

delete_domainB

Remove a domain from a service

Inputs: domainId (required), projectName (required), serviceName (required).

deploy_appC

Trigger deployment for an app

Inputs: projectName (required), serviceName (required).

deploy_composeC

Deploy a compose service

Inputs: projectName (required), serviceName (required).

deploy_templateC

Deploy from an EasyPanel one-click template

Inputs: schema (required), projectName (required).

destroy_appB

Delete an app service

Inputs: projectName (required), serviceName (required).

destroy_databaseC

Delete a database service

Inputs: engine (required), projectName (required), serviceName (required).

destroy_projectA

Delete a project and all its services

Inputs: projectName (required).

get_action_logB

Get deploy action details including full build/deploy log

Inputs: id (required).

inspect_appA

Get app service details (env, domains, build, source)

Inputs: projectName (required), serviceName (required).

inspect_composeC

Get compose service details

Inputs: projectName (required), serviceName (required).

inspect_databaseA

Get database service info (connection string, status)

Inputs: engine (required), projectName (required), serviceName (required).

inspect_projectA

Get project details and Docker containers

Inputs: projectName (required).

list_actionsA

List recent deploy actions/builds. Filter by project or service.

Inputs: limit, projectName, serviceName.

list_certificatesA

List SSL certificates

Inputs: no named parameters.

list_domainsA

List domains for a service

Inputs: projectName (required), serviceName (required).

list_mountsB

List volume mounts for a service

Inputs: projectName (required), serviceName (required).

list_nodesA

List cluster nodes

Inputs: no named parameters.

list_portsB

List exposed ports for a service

Inputs: projectName (required), serviceName (required).

list_projectsA

List all projects and their services

Inputs: no named parameters.

list_usersC

List panel users

Inputs: no named parameters.

reboot_serverB

Reboot the server

Inputs: no named parameters.

restart_appB

Restart an app service

Inputs: projectName (required), serviceName (required).

restart_panelC

Restart EasyPanel

Inputs: no named parameters.

service_statsC

Get resource stats for a service

Inputs: projectName (required), serviceName (required).

set_app_envC

Update environment variables for an app

Inputs: env (required), projectName (required), serviceName (required).

set_app_resourcesB

Set CPU/memory limits for an app

Inputs: projectName (required), serviceName (required), cpuLimit, memoryLimit, +2 more.

set_app_source_githubC

Set app source to a GitHub repo

Inputs: repo (required), owner (required), projectName (required), serviceName (required), +2 more.

set_app_source_imageC

Set app source to a Docker image

Inputs: image (required), projectName (required), serviceName (required).

start_appC

Start an app service

Inputs: projectName (required), serviceName (required).

stop_appC

Stop an app service

Inputs: projectName (required), serviceName (required).

storage_statsA

Get storage usage breakdown

Inputs: no named parameters.

system_pruneB

Docker system prune (remove all unused data)

Inputs: no named parameters.

system_statsA

Get system stats (CPU, memory, disk, network)

Inputs: no named parameters.

trpc_rawA

Call any EasyPanel tRPC procedure directly. 347 procedures across 43 namespaces. Use for anything not covered above. Examples: wordpress.getPlugins, box.createService, traefik.getDashboard, branding.getBasicSettings, cloudflareTunnel.listTunnels

Inputs: procedure (required), input, isMutation.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 42 tools

    Disambiguation4/5

    Most tools map to a distinct resource and action, and the resource type is almost always in the name (app vs database vs compose). A few pairs like cleanup_docker/system_prune and system_stats/service_stats/storage_stats have overlapping boundaries, but the descriptions largely clarify them.

    Naming Consistency4/5

    The set largely follows verb_noun snake_case (create_app, inspect_app, destroy_app, deploy_app). Minor deviations include delete_domain instead of destroy_domain, noun-style stats tools, system_prune, and trpc_raw.

    Tool Count2/5

    42 tools is well above the heavy threshold, and the inclusion of trpc_raw as a catch-all suggests the curated surface could be much smaller. The broad EasyPanel domain justifies some sprawl, but the count remains hard to navigate.

    Completeness3/5

    Core workflows for projects, apps, databases, domains, ports, mounts, compose, and system operations are present, but lifecycle coverage is uneven: ports and mounts cannot be deleted, compose has no destroy/update, and databases lack start/stop/restart. trpc_raw provides a fallback, but the first-class surface has notable gaps.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      This MCP server enables AI assistants to interact with a BT Panel server through natural language, allowing users to query logs, manage websites, and monitor system status without manual panel login.
      9
      42 npm
      12
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for Coolify infrastructure management, providing 45 tools for servers, applications, databases, deployments, and diagnostics via natural language.
      10 npm
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      MCP Server for full Easypanel control via Claude Code, Cursor, and Claude Desktop. Provides 37 tools for deploy, logs, env vars, domains, databases, and monitoring with built-in safety guards.
      57
      309 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives AI agents full access to the Clever Cloud API through three tools: search, execute, and doc, using a code mode pattern to compose API commands.
      4
      Apache 2.0