Emqx MCP Server

Before using the EMQX MCP Server tools, you need to set up an EMQX cluster with properly configured API Key and client authentication. There are

Remote serverstreamable-http

What is the Emqx MCP server?

Before using the EMQX MCP Server tools, you need to set up an EMQX cluster with properly configured API Key and client authentication. There are several options:. Exposed over MCP by the emqx mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

Its toolset

Everything the assistant can do here goes through one of these:

  • list_mqtt_clients — The list_mqtt_clients tool exposed by this server
  • get_mqtt_client — The get_mqtt_client tool exposed by this server
  • kick_mqtt_client — The kick_mqtt_client tool exposed by this server
  • publish_mqtt_message — The publish_mqtt_message tool exposed by this server
  • subscribe_mqtt_topic — The subscribe_mqtt_topic tool exposed by this server

Adding it to your client

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration

You will need 3 environment variables: EMQX_API_URL, EMQX_API_KEY, EMQX_API_SECRET. 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.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Emqx's toolset — list_mqtt_clients, get_mqtt_client, kick_mqtt_client and 2 more — is a fair guide to whether it matches your workflow. It is maintained by Benniu; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Emqx's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the emqx mcp server does with a few real requests.

Available tools

ToolWhat it does
list_mqtt_clientsThe list_mqtt_clients tool exposed by this server.
get_mqtt_clientThe get_mqtt_client tool exposed by this server.
kick_mqtt_clientThe kick_mqtt_client tool exposed by this server.
publish_mqtt_messageThe publish_mqtt_message tool exposed by this server.
subscribe_mqtt_topicThe subscribe_mqtt_topic tool exposed by this server.

How to install the Emqx MCP server

{
  "mcpServers": {
    "emqx": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "EMQX_API_URL": "your-value",
        "EMQX_API_KEY": "your-value",
        "EMQX_API_SECRET": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
EMQX_API_URLEndpoint or connection string the server talks to.Yes
EMQX_API_KEYCredential the server authenticates with.Yes
EMQX_API_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • Use Emqx to list mqtt clients.
  • Use Emqx to get mqtt client.
  • Use Emqx to kick mqtt client.

Frequently asked questions

It connects Emqx to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (list_mqtt_clients, get_mqtt_client, kick_mqtt_client, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Emqx directly.