emqx-admin-mcp
Administers the EMQX MQTT broker through its REST API — cluster and node health, client listing and forced disconnects, subscriptions, authorization sources and ACL hot-reload, ban entries, broker metrics and alarms, log tracing, and injecting diagnostic MQTT messages.
Retrieves raw Prometheus metrics text from the EMQX broker alongside other broker counters for monitoring and diagnostics.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
emqx-admin-mcp
MCP server for EMQX broker administration. Exposes EMQX v5/v6 REST API operations as Claude tools — cluster health, client management, ACL hot-reload, log tracing, banned clients, and metrics.
Built and tested against EMQX Enterprise 6.2.0 on Kubernetes. Compatible with EMQX v5.x and v6.x (open-source and enterprise editions). The REST API base path
/api/v5is shared across both major versions.
Requirements
Requirement | Version |
Node.js | ≥ 18 |
EMQX | v5.x or v6.x (open-source or enterprise) |
Claude Code / Claude Desktop | any recent version |
An EMQX API key is required per environment. Create one in the EMQX Dashboard under System → API Keys → Create. The key needs no special role beyond the default — it inherits the REST API access the dashboard user has.
Related MCP server: proxmox-mcp-server
Tools
Tool | Category | Description |
| Cluster | All nodes: status, uptime, version, memory |
| Cluster | Single node detail |
| Cluster | Live connections, throughput, memory |
| Clients | Paginated client list with filters |
| Clients | Full detail for one client |
| Clients | Force-disconnect a client |
| Subscriptions | Active subscriptions with filters |
| ACL | Configured authorization sources |
| ACL | Allow/deny counters |
| ACL | Hot-reload file-based ACL rules |
| ACL | Global authz settings |
| Banned | All banned clientids, usernames, IPs |
| Banned | Add a ban entry |
| Banned | Remove a ban entry |
| Tracing | Active log traces |
| Tracing | Start a trace (clientid, topic, or IP) |
| Tracing | Fetch captured log lines |
| Tracing | Remove a trace and its log files |
| Metrics | Broker counters |
| Metrics | Active and historical alarms |
| Metrics | Raw Prometheus metrics text |
| Publish | Inject a diagnostic message |
Every tool accepts an environment parameter: "test" (default) or "production".
Setup
1. Create EMQX API keys
In the EMQX Dashboard: System → API Keys → Create. Create one key per environment (test and production).
2. Install and build
npm install
npm run build3. Configure environment variables
cp .env.example .env
# Edit .env with your API keys and URLs4. Wire up Claude Code
Add to .mcp.json in your project root. Keep this file out of version control — it contains secrets.
{
"mcpServers": {
"emqx-admin": {
"command": "node",
"args": ["/absolute/path/to/emqx-admin-mcp/dist/index.js"],
"env": {
"EMQX_TEST_URL": "https://mqtt-admin-test.example.com",
"EMQX_TEST_API_KEY": "...",
"EMQX_TEST_API_SECRET": "...",
"EMQX_PROD_URL": "https://mqtt-admin.example.com",
"EMQX_PROD_API_KEY": "...",
"EMQX_PROD_API_SECRET": "..."
}
}
}
}5. Wire up Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"emqx-admin": {
"command": "node",
"args": ["/absolute/path/to/emqx-admin-mcp/dist/index.js"],
"env": {
"EMQX_TEST_URL": "...",
"EMQX_TEST_API_KEY": "...",
"EMQX_TEST_API_SECRET": "...",
"EMQX_PROD_URL": "...",
"EMQX_PROD_API_KEY": "...",
"EMQX_PROD_API_SECRET": "..."
}
}
}
}Development
npm run dev # Run with tsx (no build needed)
npm run build # Compile to dist/Operational notes
ACL hot-reload
EMQX v5/v6 reads acl.conf only at startup. After updating the file (or a Kubernetes ConfigMap) and waiting for it to remount (~30s), call reload_acl_file to push the new rules live without a pod restart.
Log trace lifecycle
EMQX buffers trace events in memory while a trace is running. The buffer is only flushed to disk when the trace expires naturally (the duration elapses). Calling delete_trace on a running trace discards the buffer — log data is lost.
Correct workflow:
create_tracewith an appropriate durationWait for status to become
stopped(check withlist_traces)get_trace_logto read the captured eventsdelete_traceto clean up
License
Copyright 2026 Abena A/S
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Create and manage dynamic QR codes and read their scan analytics from Claude and other MCP clients.
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
Manage your Elocuenti AI sales agents, CRM, campaigns and analytics from Claude.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables Claude to manage Proxmox VE infrastructure — VMs, LXC containers, snapshots, storage, and more.372MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to manage a Proxmox VE host through natural language, including guest lifecycle, snapshots, host status monitoring, and shell execution via a companion bridge.1Apache 2.0
- AlicenseCqualityBmaintenanceEnables MCP clients like Claude Code, Claude Desktop, or Cursor to read and manage Remnawave 3.x VPN panel resources — users, nodes, hosts, config profiles, squads, subscription templates, billing, and HWID devices — through the panel's REST API, with contract-driven tool schemas, numeric user IDs, multi-panel config lookup, and an optional readonly mode.204MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to manage a Proxmox cluster through chat: inventory, power control, configuration changes, VM/container creation and cloning, snapshots, network/firewall/cluster visibility, guest command execution, and file writes via the QEMU Guest Agent.-