A Model Context Protocol (MCP) server for HAProxy implemented in Go, leveraging HAProxy Runtime API and mcp-go.
A Model Context Protocol (MCP) server for HAProxy implemented in Go, leveraging HAProxy Runtime API and mcp-go. Exposed over MCP by the haproxy mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
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.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Everything the assistant can do here goes through one of these:
Miscellaneous — View errors, run echo tests, and get help informationHomebrew — The Homebrew tool exposed by this serverTesting — The Testing tool exposed by this serverContributing — Contributions are welcome! Please feel free to submit a Pull RequestYou will need 8 environment variables: HAPROXY_HOST, HAPROXY_PORT, HAPROXY_RUNTIME_MODE, HAPROXY_RUNTIME_TIMEOUT, MCP_TRANSPORT, HAPROXY_RUNTIME_SOCKET, HAPROXY_STATS_ENABLED, HAPROXY_STATS_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Haproxy's toolset — Miscellaneous, Homebrew, Testing and 1 more — is a fair guide to whether it matches your workflow. It is maintained by tuannvm; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Miscellaneous | View errors, run echo tests, and get help information |
| Homebrew | The Homebrew tool exposed by this server. |
| Testing | The Testing tool exposed by this server. |
| Contributing | Contributions are welcome! Please feel free to submit a Pull Request. |
{
"mcpServers": {
"haproxy": {
"command": "haproxy-mcp-server",
"env": {
"HAPROXY_HOST": "localhost",
"HAPROXY_PORT": "9999",
"HAPROXY_RUNTIME_MODE": "tcp4",
"HAPROXY_RUNTIME_TIMEOUT": "10",
"MCP_TRANSPORT": "stdio"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| HAPROXY_HOST | Endpoint or connection string the server talks to. | Optional |
| HAPROXY_PORT | Configuration value read at startup. | Optional |
| HAPROXY_RUNTIME_MODE | Configuration value read at startup. | Optional |
| HAPROXY_RUNTIME_TIMEOUT | Configuration value read at startup. | Optional |
| MCP_TRANSPORT | Configuration value read at startup. | Optional |
| HAPROXY_RUNTIME_SOCKET | Configuration value read at startup. | Optional |
| HAPROXY_STATS_ENABLED | Configuration value read at startup. | Optional |
| HAPROXY_STATS_URL | Endpoint or connection string the server talks to. | Yes |
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.
AWS Labs' official server suite — current AWS docs, CDK guidance, cost analysis and service tools.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.