MQTT
io.github.nagarjunr/mqtt
MCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
- Repository
- github.com/nagarjunr/iot-mcp-servers
- Version
- 0.1.0
- Author
- nagarjunr (namespace verified by the registry)
- Source
- Official MCP registry (updated Jul 24, 2026)
How to install it
Variables to fill in: MQTT_HOST, MQTT_PORT, MQTT_USERNAME, MQTT_PASSWORD, MQTT_USE_TLS.
On your machine
Claude Code
The server runs on your machine (pypi package). In a terminal:
claude mcp add mqtt -e MQTT_HOST=YOUR_MQTT_HOST -e MQTT_PORT=YOUR_MQTT_PORT -e MQTT_USERNAME=YOUR_MQTT_USERNAME -e MQTT_PASSWORD=YOUR_MQTT_PASSWORD -e MQTT_USE_TLS=YOUR_MQTT_USE_TLS -- uvx [email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"MQTT_HOST": "YOUR_MQTT_HOST",
"MQTT_PORT": "YOUR_MQTT_PORT",
"MQTT_USERNAME": "YOUR_MQTT_USERNAME",
"MQTT_PASSWORD": "YOUR_MQTT_PASSWORD",
"MQTT_USE_TLS": "YOUR_MQTT_USE_TLS"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"MQTT_HOST": "YOUR_MQTT_HOST",
"MQTT_PORT": "YOUR_MQTT_PORT",
"MQTT_USERNAME": "YOUR_MQTT_USERNAME",
"MQTT_PASSWORD": "YOUR_MQTT_PASSWORD",
"MQTT_USE_TLS": "YOUR_MQTT_USE_TLS"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"mqtt": {
"type": "stdio",
"command": "uvx",
"args": [
"[email protected]"
],
"env": {
"MQTT_HOST": "YOUR_MQTT_HOST",
"MQTT_PORT": "YOUR_MQTT_PORT",
"MQTT_USERNAME": "YOUR_MQTT_USERNAME",
"MQTT_PASSWORD": "YOUR_MQTT_PASSWORD",
"MQTT_USE_TLS": "YOUR_MQTT_USE_TLS"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.nagarjunr/mqtt)HTML
<a href="https://lagora.dev/en/entry/io.github.nagarjunr/mqtt"><img src="https://lagora.dev/badge/io.github.nagarjunr/mqtt.svg?lang=en" alt="io.github.nagarjunr/mqtt on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.
By the same author
Sparkplug B Local
Azure IoT Hub Local
AWS IoT Core Local
Eclipse Ditto Local