easypanel-mcp
MCP server for EasyPanel that enables AI agents to manage servers, projects, services, databases, and domains via 40 curated tools or raw tRPC access to all 347 API procedures.
README
easypanel-mcp
MCP server for EasyPanel — manage your server, projects, services, databases, and domains through any MCP-compatible AI agent (Claude, Cursor, etc.).
40 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.
OAuth mode (browser sign-in, per-user)
- Create a project (e.g.
mcp), add an App service from GitHubdray-supadev/easypanel-mcp - Add a domain (e.g.
mcp.your-domain.com) - 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 - (Optional but recommended) Mount a volume at
/dataand setOAUTH_STORE_PATH=/data/oauth.jsonso tokens survive redeploys. - 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.logininternally 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)
-
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). -
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=3000Important: Use
http://easypanel:3000(internal Docker network) when deploying on the same EasyPanel instance.MCP_ACCESS_MODE:readonlyblocks all write operations; set tofullto allow mutations. ⚠️ SetMCP_API_KEY— without it, anyone with the URL can control your server. Use alphanumeric only (!,%,^may break in env vars). -
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" 🎉
💻 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 (40)
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
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_KEYprotects the endpoint,EASYPANEL_TOKENis 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 |
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 — blocks all mutations |
PORT |
No | HTTP port (default: 3100) |
OAuth Endpoints
When EASYPANEL_AUTH_MODE=oauth, the server exposes:
GET /.well-known/oauth-authorization-server— RFC 8414 metadataGET /.well-known/oauth-protected-resource— RFC 9728 metadataPOST /register— RFC 7591 dynamic client registrationGET /authorize— login pagePOST /authorize— credentials → authorization code (302 redirect to client)POST /token—authorization_codeandrefresh_tokengrants (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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。