TailOpsMCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TailOpsMCPCheck CPU usage on all database nodes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TailOpsMCP Gateway
๐ฐ๏ธ TailOpsMCP โ A secure control plane gateway for managing distributed infrastructure
Centralized management of multiple targets through a single control plane gateway โ powered by MCP Model Context Protocol (MCP) server that operates as a control plane gateway, managing SSH, Docker, and HTTP targets through capability-based authorization and policy enforcement.
๐ฏ What is TailOpsMCP?
TailOpsMCP is a control plane gateway that centralizes management of distributed infrastructure through AI assistants like Claude, ChatGPT, or any MCP-compatible client. Instead of deploying agents on every node, you deploy a single gateway that manages multiple targets through SSH, Docker, and HTTP connections.
Key Operational Model:
Control Plane Gateway: Single trusted node manages multiple targets
Target Registry: Central configuration of managed systems
Policy Gate: Capability-based authorization prevents "LLM imagination" risk
Execution Layer: Orchestrates commands across different target types
Instead of remembering complex commands, just ask:
"Deploy my monitoring stack to all web servers"
"Analyze security logs across the production cluster"
"What's using all the CPU across all database nodes?"
"Update packages on all staging servers"
Perfect for infrastructure teams, SREs, and DevOps engineers managing distributed systems across multiple environments.
Related MCP server: Peta Core
๐ Quick Start
Proxmox One-Liner Deployment (Recommended)
Deploy TailOpsMCP Gateway with a single command:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/mdlmarkham/TailOpsMCP/master/ct/tailops-gateway.sh)"What this does:
โ Creates isolated LXC container with sensible defaults
โ Installs TailOpsMCP with all dependencies
โ Configures for Tailscale and Docker integration
โ Starts the gateway service automatically
โ Provides clear access instructions
Customize deployment:
# High-performance deployment
RAM_SIZE=4096 CPU_CORES=4 DISK_SIZE=16 \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/mdlmarkham/TailOpsMCP/master/ct/tailops-gateway.sh)"
# Minimal deployment
RAM_SIZE=1024 CPU_CORES=1 DISK_SIZE=4 \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/mdlmarkham/TailOpsMCP/master/ct/tailops-gateway.sh)"Alternative: Legacy Proxmox Installer
For existing workflows, the legacy installer is still available:
# Legacy Proxmox installer
bash -c "$(wget -qLO - https://raw.githubusercontent.com/mdlmarkham/TailOpsMCP/master/ct/build.func)"This creates an isolated gateway container with:
Debian 12 LXC (2GB RAM, 2 CPU cores, 8GB disk)
Python 3.12 and all dependencies
Tailscale OAuth authentication
Systemd service configuration
๐จโ๐ป Development
Quick Development Setup
# Clone the repository
git clone https://github.com/mdlmarkham/TailOpsMCP.git
cd TailOpsMCP
# Set up complete development environment
make setup
# Run all quality checks
make quality
# Run tests
make test
# Fix code issues automatically
make fixDevelopment Environment
TailOpsMCP includes a comprehensive development environment with:
๐ง Code Quality Tools: ruff, mypy, bandit, safety, isort, black
๐งช Testing Framework: pytest with coverage reporting
๐ก๏ธ Security Scanning: Automated security vulnerability detection
๐ Pre-commit Hooks: Automatic quality checks before commits
๐ Complexity Analysis: radon for code maintainability metrics
๐ CI/CD Pipeline: Automated quality checks and testing
For detailed development setup and workflow, see DEVELOPER_SETUP.md
Quality Standards
Our code quality system ensures:
โ Automated Quality Checks: Every commit runs comprehensive quality checks
๐ก๏ธ Security First: Continuous security scanning for vulnerabilities
๐ Code Coverage: Minimum 80% test coverage requirement
๐ง Auto-Fix Tools: Automated fixing of common issues
๐ Comprehensive Documentation: Full documentation for all tools
Available Commands
Command | Description |
| Set up complete development environment |
| Run all quality checks (lint, typecheck, security, complexity) |
| Run ruff linting |
| Format code with ruff and isort |
| Run mypy type checking |
| Run security scans (bandit, safety) |
| Run complexity analysis |
| Run tests with coverage |
| Auto-fix code issues |
| Run CI pipeline (quality + tests) |
| Clean up generated files and caches |
For complete command reference, see QUALITY_TOOLS_REFERENCE.md
Automation Scripts
Script | Purpose |
| Comprehensive quality checks runner |
| Auto-fix code quality issues |
| Complete development environment setup |
For detailed automation documentation, see CODE_QUALITY.md
โจ Key Features
๐ Current Capabilities
Control Plane Architecture
โ Target Registry - Central configuration of SSH, Docker, and HTTP targets
โ Policy Gate - Capability-based authorization with parameter validation
โ Execution Layer - Orchestrates commands across multiple target types
โ Multi-Target Operations - Execute commands across groups of targets
Target Management
โ SSH Target Support - Manage remote systems via SSH connections
โ Docker Socket Access - Control Docker hosts through socket connections
โ HTTP API Integration - Interact with web services and APIs
โ Local System Management - Manage the gateway host itself
Security & Operations
โ Capability-Based Authorization - Prevent "LLM imagination" risk through explicit allowlisting
โ Parameter Validation - Enforce constraints on operation parameters
โ Audit Logging - Comprehensive tracking of all gateway operations
โ Multi-Gateway Support - Redundant gateways for high availability
๐ Security First
โ ๏ธ Read the Security Advisory before production deployment
โ Tailscale Required - Encrypted transport mandatory (no built-in TLS)
โ OAuth 2.1 with TSIDP - Tailscale Identity Provider authentication
โ Non-Root Service - Runs as dedicated
tailopsmcpuserโ Systemd Hardening - Full sandboxing with ProtectSystem, ProtectHome
โ Audit Logging - Complete tracking of all operations
โ Scope-Based Access - Fine-grained permission control
โ ๏ธ Approval Gates - Requires external webhook (not built-in)
๐ฎ Roadmap (See HOMELAB_FEATURES.md)
๐ LXC Network Auditing - Review and audit container network configs
๐ Backup & Snapshots - Automated backups with verification
๐ Certificate Management - Let's Encrypt automation
๐ Reverse Proxy Management - Traefik/Nginx/Caddy configuration
๐ Proxmox API Integration - Full VM/container management
๐ Security Scanning - Container vulnerability detection
๐๏ธ Control Plane Gateway Architecture
graph TD
A[AI Assistant] -- MCP Protocol --> B[Control Plane Gateway]
B -- Policy Gate --> C[Target Registry]
C -- Execution Layer --> D[SSH Targets]
C -- Execution Layer --> E[Docker Targets]
C -- Execution Layer --> F[HTTP Targets]
C -- Execution Layer --> G[Local System]
B -- Audit Logging --> H[Audit Trail]
B -- Capability Auth --> I[Security Policy]
subgraph "Network Segments"
J[Segment A Gateway] -- Manages --> K[Segment A Targets]
L[Segment B Gateway] -- Manages --> M[Segment B Targets]
endArchitecture Overview
Control Plane Gateway Model:
Single Gateway: One trusted node manages multiple targets
Target Registry: Central configuration of managed systems
Policy Enforcement: Capability-based authorization prevents unauthorized operations
Execution Orchestration: Commands routed to appropriate targets
Security Benefits:
Reduced Blast Radius: Compromise affects only gateway, not all targets
Capability Allowlisting: Explicit authorization prevents "LLM imagination" risk
Segment Isolation: Gateways can be deployed per network segment
Audit Trail: Comprehensive logging of all gateway operations
Operational Model:
Gateway Deployment: Typically runs in Proxmox LXC containers for isolation
Target Connectivity: SSH keys, Docker sockets, HTTP APIs for target access
Redundancy: Multiple gateways can manage overlapping target sets
Maintenance: Single point of control for updates and configuration
๐ณ Gateway Deployment & Management
Proxmox LXC Gateway Deployment
TailOpsMCP gateways are typically deployed in Proxmox LXC containers for isolation and security.
Recommended LXC Configuration
# /etc/pve/lxc/103.conf
arch: amd64
cores: 2
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,ip=dhcp
rootfs: local-lvm:vm-103-disk-0,size=8G
# Enable Docker for target management
features: nesting=1,keyctl=1
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: c 10:200 rwm # /dev/net/tun for TailscaleGateway Container Features
Isolation: LXC containers provide process and network isolation
Resource Control: CPU and memory limits prevent gateway resource exhaustion
Security: AppArmor profiles and cgroup device controls
Network Access: Tailscale integration for secure remote access
Multi-Gateway Deployment Strategy
Segment-Based Deployment
Deploy gateways per network segment to limit blast radius:
# Production Segment A
production-a-gateway:
segment: "production-a"
targets: ["web-a-01", "db-a-01", "cache-a-01"]
# Production Segment B
production-b-gateway:
segment: "production-b"
targets: ["web-b-01", "db-b-01", "cache-b-01"]
# Staging Segment
staging-gateway:
segment: "staging"
targets: ["staging-web-01", "staging-db-01"]Redundancy Configuration
Multiple gateways can manage overlapping target sets:
# Primary gateway for production
primary-gateway:
targets: ["web-01", "db-01", "cache-01", "monitoring-01"]
# Secondary gateway for redundancy
secondary-gateway:
targets: ["web-01", "db-01", "cache-01", "logging-01"]Gateway Maintenance Procedures
Updates & Upgrades
# Update gateway software
sudo systemctl stop tailopsmcp-mcp
cd /opt/tailopsmcp
git pull
pip install -r requirements.txt
sudo systemctl start tailopsmcp-mcp
# Verify gateway health
sudo systemctl status tailopsmcp-mcp
sudo journalctl -u tailopsmcp-mcp --since "5 minutes ago"Target Registry Management
# Backup target registry
cp targets.yaml targets.yaml.backup.$(date +%Y%m%d_%H%M%S)
# Validate configuration
tailopsmcp-mcp --validate-config targets.yaml
# Reload gateway configuration
sudo systemctl reload tailopsmcp-mcp๐ Security & Connectivity
Tailscale Integration for Gateway Security
TailOpsMCP uses Tailscale Identity Provider (TSIDP) for OAuth 2.1 authentication, providing secure gateway access control.
Gateway Network Security
Configure Tailscale ACLs to control gateway access:
{
"acls": [
{
"action": "accept",
"src": ["group:tailopsmcp-admins"],
"dst": ["tag:tailopsmcp-gateway:8080"]
}
],
"tagOwners": {
"tag:tailopsmcp-gateway": ["group:tailopsmcp-admins"]
}
}Target Network Connectivity
Ensure gateways can reach targets through Tailscale:
Subnet Routes: Configure Tailscale subnet routes for cross-network access
ACL Rules: Allow gateway-to-target communication
Service Tags: Use tags for gateway service discovery
Gateway-to-Target Connectivity
SSH Target Requirements
Network connectivity between gateway and target
SSH key authentication configured
Firewall rules allowing SSH access
Tailscale subnet routes if crossing networks
Docker Target Requirements
Docker socket access or API endpoint reachable
Network connectivity to Docker host
API token authentication if using remote API
HTTP Target Requirements
Network connectivity to API endpoint
Authentication credentials (API keys, tokens)
TLS/SSL certificate validation
Multi-Gateway Network Design
For segment isolation and redundancy:
# Segment A Gateway
segment-a-gateway:
network_segment: "production-a"
targets: ["web-a-01", "db-a-01", "cache-a-01"]
# Segment B Gateway
segment-b-gateway:
network_segment: "production-b"
targets: ["web-b-01", "db-b-01", "cache-b-01"]
# Overlapping targets for redundancy
shared-targets: ["monitoring-01", "logging-01"]๐ Documentation
Development Documentation
DEVELOPER_SETUP.md - Complete development environment setup
CODE_QUALITY.md - Comprehensive code quality guide
QUALITY_TOOLS_REFERENCE.md - Technical reference for all tools
Project Documentation
CONTRIBUTING.md - Contributing guidelines
SECURITY_REVIEW_REPORT.md - Security review results
HOMELAB_FEATURES.md - Feature roadmap and specifications
Technical Specifications
Specs Directory - Detailed technical specifications
Examples Directory - Usage examples and demonstrations
Plans Directory - Implementation plans and architecture
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Workflow
Fork and Clone: Fork the repository and clone locally
Setup Environment: Run
make setupto set up development environmentCreate Feature Branch: Create a feature branch for your changes
Develop: Make your changes with tests
Quality Checks: Run
make qualityto ensure code qualitySubmit PR: Submit a pull request with clear description
Code Quality Requirements
All contributions must:
โ Pass all quality checks (
make quality)โ Include comprehensive tests
โ Follow security best practices
โ Include documentation for new features
โ Maintain backward compatibility
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Links
Repository: https://github.com/mdlmarkham/TailOpsMCP
Documentation: https://mdlmarkham.github.io/TailOpsMCP
Discussions: https://github.com/mdlmarkham/TailOpsMCP/discussions
๐ Acknowledgments
Model Context Protocol (MCP) - The protocol that makes this possible
Tailscale - Secure network connectivity
Proxmox - Virtualization platform
Python Community - Amazing ecosystem of tools and libraries
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mdlmarkham/TailOpsMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server