通用 MQTT 连接器:运行时配置 Broker,支持发布/订阅与业务消息协议模板
MQTT MCP Server
Published by nagarjunrMCP server for MQTT 5.0 brokers (publish, subscribe, topic discovery).
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.1.0
- SOURCE CHECKED
- Nov 30, 2026
Quick answers
How do I add MQTT MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'MQTT_HOST=<your-mqtt-host>' --env 'MQTT_PASSWORD=<your-mqtt-password>' --transport stdio mqtt -- uvx mqtt5-mcp-serverReplace the <your-…> placeholder with your own MQTT_HOST and MQTT_PASSWORD.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<your-mqtt-host>",
"MQTT_PASSWORD": "<your-mqtt-password>"
}
}
}
}Replace the <your-…> placeholder with your own MQTT_HOST and MQTT_PASSWORD.
CodexCommand
Run this in your terminal:
codex mcp add mqtt --env 'MQTT_HOST=<your-mqtt-host>' --env 'MQTT_PASSWORD=<your-mqtt-password>' -- uvx mqtt5-mcp-serverReplace the <your-…> placeholder with your own MQTT_HOST and MQTT_PASSWORD.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"mqtt": {
"type": "stdio",
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<your-mqtt-host>",
"MQTT_PASSWORD": "<your-mqtt-password>"
}
}
}
}Replace the <your-…> placeholder with your own MQTT_HOST and MQTT_PASSWORD.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"mqtt": {
"command": "uvx",
"args": [
"mqtt5-mcp-server"
],
"env": {
"MQTT_HOST": "<your-mqtt-host>",
"MQTT_PASSWORD": "<your-mqtt-password>"
}
}
}
}Replace the <your-…> placeholder with your own MQTT_HOST and MQTT_PASSWORD.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use MQTT MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does MQTT MCP Server need an API key?
To run it on your computer, set MQTT_HOST and MQTT_PASSWORD first, with values from the publisher.
Is MQTT MCP Server official?
It's published by nagarjunr. The Official MCP Registry accepts names under io.github.nagarjunr only from the GitHub account or organisation nagarjunr. We last checked its listing on Nov 30, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
pypi · mqtt5-mcp-server@0.1.0