Haproxy MCP Server

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

Local serverstdioGo

What is the Haproxy MCP Server?

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

What it actually does

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.

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Haproxy MCP Server

{
  "mcpServers": {
    "haproxy": {
      "command": "haproxy-mcp-server",
      "env": {
        "HAPROXY_HOST": "localhost",
        "HAPROXY_PORT": "9999",
        "HAPROXY_RUNTIME_MODE": "tcp4",
        "HAPROXY_RUNTIME_TIMEOUT": "10",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
HAPROXY_HOSTDeclared in the maintainer’s client configuration.Check documentation
HAPROXY_PORTDeclared in the maintainer’s client configuration.Check documentation
HAPROXY_RUNTIME_MODEDeclared in the maintainer’s client configuration.Check documentation
HAPROXY_RUNTIME_TIMEOUTDeclared in the maintainer’s client configuration.Check documentation
MCP_TRANSPORTDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Haproxy to Miscellaneous.”
  • “Use Haproxy to Homebrew.”
  • “Use Haproxy to Testing.”

Frequently asked questions

A Model Context Protocol (MCP) server for HAProxy implemented in Go, leveraging HAProxy Runtime API and mcp-go. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.