LogoSTMCP
Download
haproxy-mcp-server

HAProxy MCP Server

HAProxy MCP Server is a Model Context Protocol implementation that enables LLMs to interact with HAProxy's runtime API for administration, monitoring, and traffic analysis through natural language interfaces.

Tools

1. show_info

Retrieve HAProxy process information and runtime details.

2. show_stat

Display HAProxy statistics with optional filtering capabilities.

3. show_frontends

List all configured frontends and their current states.

4. show_backends

List all configured backends and their current states.

5. show_servers

Display server information for specified backends.

6. add_server

Add a new server to a backend dynamically.

7. del_server

Remove a server from a backend dynamically.

8. enable_server

Enable a previously disabled server in a backend.

9. disable_server

Disable a server in a backend for maintenance or other reasons.

10. set_server

Adjust server properties such as weight or health status.

11. show_sess

View active sessions and their details.

12. clear_counters

Reset statistical counters to zero.

13. show_map

Display contents and usage of HAProxy maps.

14. show_acl

List ACL definitions and their current states.

15. check_health

Perform health checks on specified servers or backends.

16. show_errors

Display recent error messages and events.

17. help

Show available commands and their usage.

Open Graph image for HAProxy MCP Server

JSON Config

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

Information