Local DevOps MCP Server
Enables Docker container management through natural language conversations, including deployment, health monitoring, dependency resolution, auto-redeployment on file changes, and environment snapshots.
README
Local DevOps MCP Server
A professional Model Context Protocol (MCP) server that transforms Docker container management into natural language conversations.
Executive Summary
The Local DevOps MCP Server bridges the gap between complex Docker operations and intuitive human interaction. It enables developers, DevOps engineers, and teams to manage containerized environments through simple conversational commands, eliminating the need for memorizing complex Docker commands and scripts.
Key Innovation: Transform technical Docker operations into natural language while maintaining enterprise-grade reliability and scalability.
Why This Matters
For Development Teams
- Reduce Onboarding Time: New team members can manage containers without Docker expertise
- Increase Productivity: Deploy complex multi-service environments in seconds, not hours
- Eliminate Human Error: Smart dependency management prevents common deployment failures
For DevOps Engineers
- Automate Repetitive Tasks: Auto-redeployment, health monitoring, and environment snapshots
- Ensure Consistency: Templates and snapshots guarantee identical environments across teams
- Reduce Support Burden: Self-healing containers and intelligent error handling
For Business
- Lower Operational Costs: Reduced manual intervention and faster deployment cycles
- Improve Time-to-Market: Streamlined development workflows accelerate feature delivery
- Enhance Reliability: Proactive health monitoring prevents production incidents
Core Capabilities
Smart Dependency Management
- Problem: Services fail when dependencies aren't ready
- Solution: Automatic dependency resolution with intelligent waiting (TCP, HTTP, log patterns)
- Business Impact: Eliminates deployment failures and reduces debugging time by 80%
Auto-Deployment with File Watching
- Problem: Developers waste time manually rebuilding containers
- Solution: Automatic rebuild and redeployment on file changes
- Business Impact: Accelerates development cycles by 3-5x
Proactive Health Monitoring
- Problem: Production issues detected only after user impact
- Solution: Continuous health checks with automatic restart capabilities
- Business Impact: Reduces downtime by 90% through self-healing infrastructure
Environment Snapshots
- Problem: Inconsistent environments across development, testing, and production
- Solution: Complete environment state capture and one-click restoration
- Business Impact: Eliminates "it works on my machine" issues
Service Templates
- Problem: Inconsistent service configurations across teams
- Solution: Reusable, version-controlled service templates
- Business Impact: Ensures consistency and reduces configuration drift
Architecture Overview
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ User/AI │◄──►│ MCP Server │◄──►│ Docker Engine │
│ (Natural Lang.) │ │ (Smart Logic) │ │ (Containers) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ State Storage │
│ (Templates, │
│ Snapshots, │
│ Dependencies) │
└─────────────────┘
Technical Components
- Modular Python Architecture: Clean separation of concerns with dedicated modules
- Intelligent Wait Logic: Multiple waiting strategies for different service types
- Robust Error Handling: Graceful degradation and automatic recovery
- Cross-Platform Compatibility: Windows, macOS, and Linux support
Quick Start Guide
Prerequisites
- Docker Desktop installed and running
- Python 3.8 or higher
- MCP-compatible IDE (Windsurf, VS Code with MCP extension)
Installation (5 minutes)
# 1. Clone the repository
git clone https://github.com/Ayala-Yagelnik/local-devops-mcp
cd local-devops-mcp
# 2. Create virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure MCP client
# Add to ~/.codeium/windsurf/mcp_config.json or other mcp config of any agent:
{
"local-devops": {
"command": "python",
"args": ["C:\\path\\to\\local-devops-mcp\\server.py"]
}
}
# 5. Restart IDE
Verification
# Test basic functionality
python server.py # Should start without errors
Usage Examples
For Developers
Simple Deployment:
User: "Deploy nginx on port 8080"
AI: [Deploys nginx] "nginx is running at http://localhost:8080"
Complex Stack:
User: "I need a full-stack environment with database and API"
AI: [Deploys postgres + redis + api + frontend]
"Your development environment is ready! Database on 5432, API on 8000, frontend on 3000"
For DevOps Engineers
Environment Management:
User: "Save current production setup as template"
AI: [Creates template] "Production template saved as 'webapp-v2'"
User: "Deploy staging environment using production template"
AI: [Deploys from template] "Staging environment deployed with production configuration"
Health Monitoring:
User: "Add health monitoring to all services"
AI: [Adds health checks] "Health monitoring enabled with auto-restart"
For Teams
Collaboration:
User: "Share my development setup with the team"
AI: [Creates snapshot] "Development snapshot shared. Team can restore with one command"
Enterprise Features
Security
- Credential Management: Automatic Docker credential handling
- Isolated Environments: Complete environment isolation
- Audit Trail: Full operation logging and tracking
Scalability
- Multi-Project Support: Manage multiple projects simultaneously
- Template Library: Enterprise-wide template sharing
- Performance Monitoring: Resource usage tracking and optimization
Integration
- CI/CD Pipeline Ready: Seamless integration with existing workflows
- Multi-Cloud Support: Works with any Docker-compatible environment
- API Access: Programmatic access for automation
Technical Specifications
Supported Operations
- Container lifecycle management (create, start, stop, remove)
- Multi-service deployment with dependency resolution
- Health monitoring with auto-healing
- File watching and automatic redeployment
- Environment snapshots and restoration
- Service templates and reuse
- Log aggregation and analysis
- Network and volume management
Compatibility
- Docker Versions: 20.10+
- Python Versions: 3.8+
- Operating Systems: Windows 10+, macOS 10.15+, Ubuntu 18.04+
- IDE Support: Windsurf, Claude, Cursor...
Use Cases by Industry
Software Development
- Microservices Architecture: Manage complex service dependencies
- Feature Branch Testing: Isolated environments for each feature
- Continuous Integration: Automated testing environments
E-commerce
- Seasonal Scaling: Quick environment provisioning
- A/B Testing: Parallel environment management
- Performance Testing: Realistic production replicas
Financial Services
- Compliance Environments: Consistent regulated environments
- Disaster Recovery: Quick environment restoration
- Audit Trails: Complete operation logging
Learning Resources
Documentation
- API Reference: Complete technical documentation
- Usage Examples: Real-world implementation examples
- Troubleshooting Guide: Common issues and solutions
Built with ❤️ for teams that value productivity and reliability
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。