Skip to main content
Glama
devops-assistant-mcp

devops-assistant-mcp

by Karun9107

DevOps Assistant MCP Server (Modular)

A professional-grade Model Context Protocol (MCP) server built with TypeScript. It acts as a multi-functional "DevOps Assistant" that allows AI models to securely query local databases and manage Docker infrastructure through a standardized interface.

🚀 Features

  • Modern Architecture: Built using the latest @modelcontextprotocol/sdk (v1.3+).

  • Multi-Service Integration: Single entry point for Database, System, and Docker management.

  • Docker Management: Directly interact with the local Docker socket to inspect containers and debug logs.

  • Modular Design: Separation of concerns between configuration, server orchestration, and service-specific tool logic.

  • Type-Safe: Full TypeScript implementation with Zod schema validation for all tool inputs.

Related MCP server: Docker MCP Server

🛠️ Tools Provided

🗄️ Database Tools

  • query_database: Execute SQL queries on the local MySQL instance to analyze data or system records.

🐳 Docker Tools

  • list_containers: List all local Docker containers and their current status (Running, Stopped, etc.).

  • get_container_logs: Retrieve the last 50 lines of logs from a specific container for real-time debugging.

⚙️ System Tools

  • get_system_time: Utility tool to retrieve the server's current time for log synchronization.

📋 Prerequisites

  • Node.js (v18+)

  • Docker Desktop (or OrbStack)

  • MCP Client (e.g., VS Code with "Continue" or "Roo Code", or the MCP Inspector)

🚦 Quick Start

1. Start the Sample Database

Run the MySQL container using Docker:

docker run -d \
  --name mcp-app-db \
  -e MYSQL_ROOT_PASSWORD=mypassword \
  -e MYSQL_DATABASE=mcp_learning \
  -p 3306:3306 \
  mysql:latest

2. Install Dependencies

npm install

3. Seed the Database

Populate the database with sample user data:

npm run seed

4. Build and Test

Compile the TypeScript code and run the MCP Inspector:

npm run build
npx @modelcontextprotocol/inspector node dist/index.js

🏗️ Project Structure

  • src/config.ts: Centralized configuration for all services.

  • src/tools/database.ts: SQL query logic.

  • src/tools/docker.ts: Docker socket integration logic.

  • src/tools/system.ts: General utility tools.

  • src/index.ts: The main orchestrator and entry point.

📄 License

ISC

Available Tools

4 tools
get_container_logsA

Retrieve the last 50 lines of logs from a specific Docker container.

Inputs: containerId (required).

get_system_timeA

Returns the current system time from the MCP server.

Inputs: no named parameters.

list_containersA

List all local Docker containers and their current status (running, stopped, etc.).

Inputs: all.

query_databaseA

Execute a SQL query on the local MySQL database.

Inputs: sql (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct operation: container logs, system time, container listing, and database query. No overlap in purpose.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (get_, list_, query_), with clear actions and targets.

    Tool Count5/5

    With 4 tools, the set is well-scoped for basic DevOps monitoring tasks, each tool earning its place without redundancy.

    Completeness2/5

    Major gaps exist for a 'DevOps assistant': missing container management (start/stop/restart), deployment, database schema exploration, and system monitoring beyond time.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with MySQL databases through the Model Context Protocol, allowing users to execute SQL queries and check connection status. It provides tools for seamless database management and built-in SQL query examples.
      1
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Docker containers, images, networks, volumes, and Compose services through the Model Context Protocol. It supports system operations, command execution within containers, and integration with Docker Hub and GitHub Container Registry.
      94 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MySQL database analysis through natural language, including schema exploration, query execution, performance analysis, and ER diagram generation via the Model Context Protocol.
      MIT