HAProxy

HAProxy

A Model Context Protocol (MCP) server for HAProxy implemented in Go, leveraging HAProxy Runtime API.

6
Stars
0
Forks
6
Releases

Overview

The HAProxy MCP Server provides a standardized way for LLMs to interact with HAProxy's runtime API via the Model Context Protocol (MCP). This enables LLMs to perform HAProxy administration tasks, monitor server status, manage backend servers, and analyze traffic patterns, all through natural language interfaces. The server maps MCP tools to corresponding HAProxy Runtime API commands across categories such as Statistics & Process Info, Topology Discovery, Dynamic Pool Management, Session Control, Maps & ACLs, Health Checks & Agents, and Miscellaneous. It supports full Runtime API coverage, context-aware operations with timeouts and cancellation, and integrates with HAProxy's web-based statistics page for enhanced metrics. Communication can be via multiple transports: stdio or HTTP, with options to run over TCP4 or Unix sockets, and optional secure authentication. The project includes Docker images and provides extensive configuration via environment variables for runtime mode, addresses, and timeouts. The MCP Tools are documented in tools.md; you can configure either the Runtime API, the Stats page, or both, and test using the provided CLI examples.

Details

Owner
tuannvm
Language
Go
License
Updated
2025-12-07

Features

Full HAProxy Runtime API Support

Comprehensive coverage of HAProxy's runtime API commands.

Context-Aware Operations

All operations support proper timeout and cancellation handling.

Stats Page Integration

Support for HAProxy's web-based statistics page for enhanced metrics and visualization.

Secure Authentication

Support for secure connections to HAProxy runtime API.

Multiple Transport Options

Supports both stdio and HTTP transports for flexibility in different environments.

Enterprise Ready

Designed for production use in enterprise environments.

Docker Support

Pre-built Docker images for easy deployment.

Audience

LLMsInteract with HAProxy runtime via MCP to administer and monitor.
DevOpsAutomate HAProxy administration and runtime management using natural language interfaces.
Sys AdminsUse MCP tools to manage backends, health checks, and status via MCP.

Tags

HAProxyMCPRuntime APIGoDockerStats PageTCP4Unix SocketStdioSecurity