Skip to main content

ops-mcp-server

中文

ops-mcp-server: an AI-driven IT operations platform that fuses LLMs and MCP architecture to enable intelligent monitoring, anomaly detection, and natural human-infrastructure interaction with enterprise-grade security and scalability.


📖 Table of Contents


🚀 Project Overview

ops-mcp-server is an IT operations management solution for the AI era. It achieves intelligent IT operations through the seamless integration of the Model Context Protocol (MCP) and Large Language Models (LLMs). By leveraging the power of LLMs and MCP's distributed architecture, it transforms traditional IT operations into an AI-driven experience, enabling automated server monitoring, intelligent anomaly detection, and context-aware troubleshooting. The system acts as a bridge between human operators and complex IT infrastructure, providing natural language interaction for tasks ranging from routine maintenance to complex problem diagnosis, while maintaining enterprise-grade security and scalability.


🌟 Key Features

🖥️ Server Monitoring

  • Real-time CPU, memory, disk inspections.
  • System load and process monitoring.
  • Service and network interface checks.
  • Log analysis and configuration backup.
  • Security vulnerability scans (SSH login, firewall status).
  • Detailed OS information retrieval.

📦 Container Management (Docker)

  • Container, image, and volume management.
  • Container resource usage monitoring.
  • Log retrieval and health checks.

🌐 Network Device Management

  • Multi-vendor support (Cisco, Huawei, H3C).
  • Switch port, VLAN, and router route checks.
  • ACL security configuration analysis.
  • Optical module and device performance monitoring.

➕ Additional Capabilities

  • Extensible plugin architecture.
  • Batch operations across multiple devices.
  • Tool listing and descriptive commands.

🎬 Demo Videos

📌 Project Demo

On Cherry Studio

Demo Animation

📌 Interactive Client Demo

On Terminal

Client Demo Animation


⚙️ Installation

Ensure you have Python 3.10+ installed. This project uses uv for dependency and environment management.

1. Install UV

curl -LsSf https://astral.sh/uv/install.sh | sh

2. Set Up Virtual Environment

uv venv .venv

# Activate the environment
source .venv/bin/activate      # Linux/macOS
.\.venv\Scripts\activate       # Windows

3. Install Dependencies

uv pip install -r requirements.txt

Dependencies are managed via pyproject.toml.


🚧 Deployment

📡 SSE Remote Deployment (UV)

cd server_monitor_sse

# Install dependencies
pip install -r requirements.txt

# Start service
cd ..
uv run server_monitor_sse --transport sse --port 8000

🐳 SSE Remote Deployment (Docker Compose)

Ensure Docker and Docker Compose are installed.

cd server_monitor_sse
docker compose up -d

# Check status
docker compose ps

# Logs monitoring
docker compose logs -f

🛠️ Local MCP Server Configuration (Stdio)

Add this configuration to your MCP settings:

{
  "ops-mcp-server": {
    "command": "uv",
    "args": [
      "--directory", "YOUR_PROJECT_PATH_HERE",
      "run", "server_monitor.py"
    ],
    "env": {},
    "disabled": true,
    "autoApprove": ["list_available_tools"]
  },
  "network_tools": {
    "command": "uv",
    "args": [
      "--directory", "YOUR_PROJECT_PATH_HERE",
      "run", "network_tools.py"
    ],
    "env": {},
    "disabled": false,
    "autoApprove": []
  },
}

Note: Replace YOUR_PROJECT_PATH_HERE with your project's actual path.


💬 Interactive Client Usage

An interactive client (client.py) allows you to interact with MCP services using natural language.

1. Install Client Dependencies

uv pip install openai rich

2. Configure Client

Edit these configurations within client.py:

# Initialize OpenAI client
self.client = AsyncOpenAI(
    base_url="https://your-api-endpoint",
    api_key="YOUR_API_KEY"
)

# Set model
self.model = "your-preferred-model"

3. Run the Client

uv run client.py [path/to/server.py]

Example:

uv run client.py ./server_monitor.py

Client Commands

  • help - Display help.
  • quit - Exit client.
  • clear - Clear conversation history.
  • model <name> - Switch models.

📄 License

This project is licensed under the MIT License.


📌 Notes

  • Ensure remote SSH access is properly configured.
  • Adjust tool parameters based on actual deployment conditions.
  • This project is under active development; feedback and contributions are welcome.

Metadata

Release files for iflow-mcp_ops_mcp_server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_ops_mcp_server 0.1.0
File Size Uploaded
iflow_mcp_ops_mcp_server-0.1.0.tar.gz 53.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_ops_mcp_server 0.1.0
File Interpreter ABI Platform
iflow_mcp_ops_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 121.4 kB

Release files / iflow_mcp_ops_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_ops_mcp_server-0.1.0.tar.gz
Size 53.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ed563342ab2eabe15ffff98758ddc6242b8754a26ac1dc06acd345de685407c9
BLAKE2b-256 checksum
How to use checksums
69401cc60f887daf0485db08ab18d99141b14fc31fb92db0c13de13fdb45ab3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_ops_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_ops_mcp_server-0.1.0-py3-none-any.whl
Size 68.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
208c5645c0cda5985438b518ea2b215a2b7fbbaafebfcbc3daf286a5b4dcc695
BLAKE2b-256 checksum
How to use checksums
7bc1fda5c63b7bee125f356c2bf0ea8dc4bc237c3ac0c18c9dfffa7ca4829aaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page