devops-assistant-mcp
Enables querying local MySQL databases and managing Docker containers (listing, logs) through natural language via the Model Context Protocol.
README
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.
🛠️ 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
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.