MCP server
MQTT
MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- 5 days ago
About MQTT
MQTT is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add mqtt --env MQTT_HOST='<MQTT_HOST>' --env MQTT_PASSWORD='<MQTT_PASSWORD>' -- uvx mqtt5-mcp-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<MQTT_HOST>",
"MQTT_PASSWORD": "<MQTT_PASSWORD>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<MQTT_HOST>",
"MQTT_PASSWORD": "<MQTT_PASSWORD>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mqtt": {
"type": "stdio",
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<MQTT_HOST>",
"MQTT_PASSWORD": "<MQTT_PASSWORD>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<MQTT_HOST>",
"MQTT_PASSWORD": "<MQTT_PASSWORD>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<MQTT_HOST>",
"MQTT_PASSWORD": "<MQTT_PASSWORD>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
MQTT_HOSTBroker hostname or IPRequiredMQTT_PORTBroker port, default 1883 (or 8883 for TLS)MQTT_USERNAMEBroker usernameMQTT_PASSWORDBroker passwordMQTT_USE_TLStrue/false, default false
Pricing
Open source
MQTT FAQ
Is MQTT free?
Yes. MQTT is open source, so you can use and self-host it for free.
How do I add MQTT to Claude Code?
Run this command in your terminal: claude mcp add mqtt --env MQTT_HOST='<MQTT_HOST>' --env MQTT_PASSWORD='<MQTT_PASSWORD>' -- uvx mqtt5-mcp-server
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.