easyshell
Model Context Protocol server for EasyShell: manage hosts, execute scripts, orchestrate multi-host tasks, schedule AI inspections, and access infrastructure operations from AI assistants.
README
<p align="center"> <img src="docs/images/logo.png" alt="EasyShell Logo" width="200" /> </p>
EasyShell
AI-Native Server Operations Platform
Let AI write your scripts, orchestrate multi-host tasks, and analyze your infrastructure — while you focus on what matters.
Language: English | 简体中文 | 繁體中文 | 한국어 | Русский | 日本語
Why EasyShell?
Traditional server management tools expect you to write every script, SSH into every box, and interpret every output yourself. EasyShell flips that model: AI is the operator, you are the decision-maker.
- Describe what you need in plain language → AI writes production-ready shell scripts with diff review
- Set a goal across multiple hosts → AI plans the execution steps, runs them, and synthesizes the results
- Schedule automated inspections → AI analyzes output and decides whether to alert your team via bot channels
- Connect via Web SSH → Full terminal with file manager, multi-tab, search — no local client needed
Core Features
1. AI Script Assistant
Describe what you want. AI writes the script. Review the diff. One click to apply.
The AI Script Workbench is a split-panel editor where you describe requirements in natural language, and AI generates (or modifies) shell scripts targeting your chosen OS. Real-time streaming shows the script being written. A built-in diff view highlights exactly what changed. A summary tab explains the modifications in your language.
<p align="center"> <img src="docs/images/AI%20Script%20helper.png" alt="AI Script Assistant — live code generation with diff review" width="90%" /> </p>
How it works:
- Describe — write your requirements in natural language, choose the target OS
- Generate — AI streams a production-ready script in real time
- Review — built-in diff view highlights every change; summary tab explains modifications
- Apply — one click to save the script to your library or dispatch it immediately
2. AI Task Orchestration
"Check disk and memory on all hosts, flag anything over 80%, and suggest fixes." — Done.
The AI Chat interface lets you issue high-level operational goals. AI decomposes them into a multi-step execution plan (explore → analyze → report), dispatches scripts to target hosts, collects results, and delivers a structured analysis with risk assessment and actionable recommendations — all in a single conversation turn.
<p align="center"> <img src="docs/images/AI%20task%20orchestration.png" alt="AI Task Orchestration — multi-step execution plan with analysis" width="90%" /> </p>
How it works:
- Instruct — describe a high-level goal in the AI Chat (e.g. "check disk on all hosts")
- Plan — AI decomposes the goal into a multi-step execution plan (explore → analyze → report)
- Execute — scripts are dispatched to target hosts in parallel; results collected automatically
- Report — AI delivers a structured analysis with risk assessment and actionable recommendations
3. AI Scheduled Inspections
Cron → Script → AI Analysis → Intelligent Alert — AI analyzes output and decides whether to alert your team.
Schedule inspection tasks with cron expressions and select scripts from the built-in script library. EasyShell dispatches them to agents on schedule, collects output (disk, memory, services, logs), sends it to your AI model for intelligent analysis, and lets AI decide whether the results warrant an alert — pushing notifications only when they matter.
<p align="center"> <img src="docs/images/schedule_task.png" alt="AI Scheduled Inspections — cron-based tasks with AI-powered output analysis and intelligent alerting" width="90%" /> </p>
How it works:
- Configure — cron expression + script (from library or custom) + AI analysis prompt + notification rules
- Execute — EasyShell dispatches to target agents on schedule
- Analyze — Output sent to AI model (OpenAI / Gemini / GitHub Copilot / Custom) for intelligent analysis
- Notify — AI determines severity and pushes alerts via bot channels when action is needed
Notification modes: Always push, push on failure, push on warning, or AI decides — the AI model evaluates the output and autonomously determines if an alert is necessary.
Supported Bot Channels (Configuration Guide):
| Bot | Status |
|---|---|
| Telegram | ✅ Supported |
| Discord | ✅ Supported |
| Slack | ✅ Supported |
| DingTalk (钉钉) | ✅ Supported |
| Feishu (飞书) | ✅ Supported |
| WeCom (企业微信) | ✅ Supported |
4. Fully Functional Web SSH
Real terminal. Real file manager. No SSH client required.
A production-grade web terminal with multi-tab sessions, integrated file manager (upload, download, create, delete, navigate), full-text search within terminal buffer, and persistent connections via WebSocket. Manage files and run commands side by side.
<p align="center"> <img src="docs/images/Fully%20functional%20web%20SSH.png" alt="Web SSH — terminal with file manager and multi-tab" width="90%" /> </p>
5. Host Management & Monitoring
Unified view of all servers with real-time status, batch operations, and agent lifecycle management.
Manage hosts individually or in bulk — add via form or CSV import, organize into clusters, monitor connection status, and deploy/upgrade agents with one click. The unified dashboard shows health metrics at a glance.
<p align="center"> <img src="docs/images/host-management.png" alt="Host Management — unified server dashboard with batch operations" width="90%" /> </p>
6. Real-Time Streaming Logs
Watch script execution unfold live across all target hosts.
When you dispatch a script, EasyShell streams output from every agent in real time. Color-coded logs, timestamps, and per-host filtering help you spot issues instantly — no more waiting for batch jobs to complete.
<p align="center"> <img src="docs/images/realtime-logs.png" alt="Real-Time Logs — live streaming output from multiple hosts" width="90%" /> </p>
7. Security & Risk Controls
Built-in safeguards: approval workflows, audit trails, and operation restrictions.
Configure which operations require approval before execution. All actions are logged for compliance. Role-based access control limits who can do what, and sensitive commands can be flagged or blocked entirely.
<p align="center"> <img src="docs/images/security-controls.png" alt="Security Controls — approval workflows and audit logging" width="90%" /> </p>
Quick Start
git clone https://github.com/easyshell-ai/easyshell.git
cd easyshell
cp .env.example .env # Edit .env if needed
docker compose up -d
No local build required — pre-built images are pulled automatically from Docker Hub.
Open http://localhost:18880 → login with easyshell / easyshell@changeme.
Want to use GHCR instead? Set in
.env:EASYSHELL_SERVER_IMAGE=ghcr.io/easyshell-ai/easyshell/easyshell-server:latest EASYSHELL_WEB_IMAGE=ghcr.io/easyshell-ai/easyshell/easyshell-web:latest
Developer? Build from source:
docker compose -f docker-compose.build.yml up -d
Full Feature Set
| Category | Features |
|---|---|
| AI Intelligence | AI Script Assistant (generate / modify / diff / summary), AI Task Orchestration (multi-step plans, parallel execution, analysis), AI Scheduled Inspections (cron-based, AI output analysis, intelligent alert decisions, multi-channel bot push), AI Chat, Inspection Reports, Operation Approvals |
| Operations | Script library, batch execution, real-time streaming logs, Web SSH terminal with file manager |
| Infrastructure | Host management, real-time monitoring, cluster grouping, agent auto-deployment |
| Administration | User management, system config, AI model settings (OpenAI / Gemini / Copilot / Custom), risk control |
| Platform | i18n (EN / ZH), dark/light theme, responsive design, audit logging |
Architecture
┌──────────────┐ HTTP/WS ┌──────────────────┐
│ EasyShell │◄─────────────────────►│ EasyShell │
│ Agent │ register / heartbeat │ Server │
│ (Go 1.24) │ script exec / logs │ (Spring Boot 3.5)│
└──────────────┘ └────────┬─────────┘
│
┌────────┴─────────┐
│ EasyShell Web │
│ (React + Ant Design)│
└──────────────────┘
Tech Stack
| Component | Technology |
|---|---|
| Server | Java 17, Spring Boot 3.5, Gradle, JPA/Hibernate, Spring AI, Spring Security |
| Agent | Go 1.24, single binary, zero runtime dependencies |
| Web | React 19, TypeScript, Vite 7, Ant Design 6 |
| Database | MySQL 8.0 |
| Cache | Redis 7 |
Project Structure
easyshell/
├── easyshell-server/ # Central management server (Java / Spring Boot)
├── easyshell-agent/ # Agent client (Go, single binary)
├── easyshell-web/ # Web frontend (React + Ant Design)
├── docker-compose.yml # Production deployment (pulls pre-built images)
├── docker-compose.build.yml # Development (local build from source)
├── Dockerfile.server # Server + Agent multi-stage build
├── Dockerfile.web # Web frontend multi-stage build
├── .github/workflows/ # CI/CD: build & publish Docker images
└── .env.example # Environment configuration template
Documentation
Visit docs.easyshell.ai for:
- Installation & deployment guide
- Getting started walkthrough
- Configuration reference
- Development guide
Community
Join our Discord community for support, discussions, and updates: https://discord.gg/akQqRgNB6t
License
This project is licensed under the MIT License.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。