Enterprise DevOps MCP Server

Enterprise DevOps MCP Server

Enables AI agents to securely manage Linux, Docker, Kubernetes, and SSH infrastructure through MCP with permission control, audit logging, and dangerous command filtering.

Category
Visit Server

README

Enterprise DevOps MCP Server

中文 | English

Python 3.11+ Tests CI MCP Release License: MIT

Enterprise AI DevOps MCP Server for secure infrastructure automation with MCP, Docker, Kubernetes and SSH.

基于 MCP(Model Context Protocol) 的企业级 AI 运维 Agent Server:
让 AI Agent 在安全控制下管理 Linux、Docker、Kubernetes 与 SSH 基础设施。

AI Agent → MCP Server → Security Layer → Infrastructure

Architecture · Security · Contributing · Changelog · Release Notes


Why This Project

传统运维

痛点 表现
SSH 手动执行 工程师逐条敲命令,难规模化
权限不可控 模型或脚本一旦拿到 shell,几乎等同 root
缺少审计 谁改了什么、何时执行,事后难追溯
Engineer → SSH → Manual Command

AI DevOps(本项目)

AI Agent
   ↓
MCP Tool
   ↓
Security Layer
   ↓
Infrastructure

AI 不直接拥有服务器权限。 每次调用都经过 Permission Control、Execute Protection、Command Filtering 与 Audit Logging。


Features

Feature Status
Linux Monitoring
Docker Management
Kubernetes
SSH Automation
Permission Control
Execute Protection
Audit Logging
Docker Deployment
GitHub Actions CI

MCP Tools:17(System 7 · Docker 3 · Kubernetes 4 · SSH 3)


Security

企业级默认:只读运维

EXECUTE_TOOLS_ENABLED=false
能力 说明
ReadOnly / Execute 分离 巡检与变更权限拆分
默认关闭执行权限 管理员显式开启后才可修改
Dangerous command filtering 建连前拦截危险 SSH 命令
Audit trail Tool 调用可查询留痕

拦截示例

rm -rf /
   ↓
Blocked by security module
(不会发起远程 SSH)

详见:docs/security.md


Architecture

                 AI Agent
                    |
              MCP Protocol
                    |
        Enterprise DevOps MCP Server
                    |
 ------------------------------------------------
 |              |              |                |
System        Docker       Kubernetes        SSH
                    |
              Security Layer

详见:docs/architecture.md


Screenshots

  1. MCP Server Connection
  2. AI Infrastructure Health Check
  3. Docker Container Inspection
  4. MySQL Log Analysis
  5. SSH Security Filter
  6. Disk Cleanup Automation

MCP Server Connection

AI Infrastructure Health Check

Docker Container Inspection

MySQL Log Analysis

SSH Security Filter

Disk Cleanup Automation

更多:docs/screenshots/README.md


Quick Start

git clone https://github.com/zhifengjin050-arch/enterprise-devops-mcp-server.git
cd enterprise-devops-mcp-server

pip install -r requirements.txt
cp .env.example .env

python -m app.server

Cursor MCP

cwd 设为 YOUR_PROJECT_PATH(勿提交真实路径):

{
  "mcpServers": {
    "enterprise-devops": {
      "command": "python",
      "args": ["scripts/run_devops_mcp.py"],
      "cwd": "YOUR_PROJECT_PATH",
      "env": {
        "FASTMCP_SHOW_SERVER_BANNER": "false",
        "EXECUTE_TOOLS_ENABLED": "false"
      }
    }
  }
}

示例:mcp_config_examples/cursor_mcp.json

Test

pytest

Docker

docker compose up -d --build

Project Structure

enterprise-devops-mcp-server/
├── README.md / README_EN.md
├── CONTRIBUTING.md / CHANGELOG.md
├── LICENSE
├── app/                 # MCP Server + Tools + Security
├── docs/                # Architecture / Security / Screenshots
├── examples/            # MCP client examples
├── tests/               # 225+ pytest cases
└── .github/workflows/   # CI

Contributing

CONTRIBUTING.md


License

MIT


Disclaimer

开启执行权限后,本软件可控制服务器与容器。请先在非生产环境验证。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured