MQTT Server
БесплатноНе проверенEnables Cursor to subscribe to MQTT topics and read buffered messages from an MQTT broker.
Описание
Enables Cursor to subscribe to MQTT topics and read buffered messages from an MQTT broker.
README
An MCP (Model Context Protocol) server that enables Cursor to read messages from an MQTT broker.
Features
- Subscribe to MQTT topics (supports wildcards
+and#) - Read buffered messages from subscribed topics
- List active subscriptions
- Configurable message buffer size
Installation
- Install dependencies:
npm install
- Build the project:
npm run build
- Copy
.env.exampleto.envand configure your MQTT broker settings:
cp .env.example .env
Configuration
Edit the .env file with your MQTT broker details:
| Variable | Description | Default |
|---|---|---|
MQTT_BROKER_URL |
MQTT broker URL (mqtt:// or mqtts://) | mqtt://localhost:1883 |
MQTT_USERNAME |
Username for authentication | (none) |
MQTT_PASSWORD |
Password for authentication | (none) |
MQTT_CLIENT_ID |
Client ID for MQTT connection | cursor-mqtt-mcp-{timestamp} |
MAX_MESSAGES_PER_TOPIC |
Max messages to buffer per topic | 100 |
Cursor Configuration
Add this MCP server to your Cursor settings (.cursor/mcp.json or global settings):
{
"mcpServers": {
"mqtt": {
"command": "node",
"args": ["C:/path/to/mqtt-mcp/dist/index.js"],
"env": {
"MQTT_BROKER_URL": "mqtt://your-broker:1883",
"MQTT_USERNAME": "your_username",
"MQTT_PASSWORD": "your_password"
}
}
}
}
Alternatively, if using a .env file in the project directory:
{
"mcpServers": {
"mqtt": {
"command": "node",
"args": ["C:/path/to/mqtt-mcp/dist/index.js"],
"cwd": "C:/path/to/mqtt-mcp"
}
}
}
Available Tools
mqtt_subscribe
Subscribe to an MQTT topic to start receiving messages.
Parameters:
topic(required): The MQTT topic to subscribe toqos(optional): Quality of Service level (0, 1, or 2). Default: 0
Example:
Subscribe to "sensors/temperature"
Subscribe to "devices/+/status" (single-level wildcard)
Subscribe to "home/#" (multi-level wildcard)
mqtt_unsubscribe
Unsubscribe from an MQTT topic.
Parameters:
topic(required): The MQTT topic to unsubscribe from
mqtt_read_messages
Read buffered messages from subscribed topics.
Parameters:
topic(optional): Specific topic to read from. If omitted, reads from all topicslimit(optional): Maximum messages to return. Default: 10clear(optional): Clear buffer after reading. Default: false
mqtt_list_subscriptions
List all active subscriptions and their message counts.
Parameters: None
Usage Example
First, subscribe to a topic:
"Subscribe to the MQTT topic sensors/temperature"
Wait for messages to arrive, then read them:
"Read the latest messages from sensors/temperature"
Check all active subscriptions:
"List my MQTT subscriptions"
Unsubscribe when done:
"Unsubscribe from sensors/temperature"
License
MIT
Установка MQTT Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/brennanreamer/MQTT-MCP-ServerFAQ
MQTT Server MCP бесплатный?
Да, MQTT Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для MQTT Server?
Нет, MQTT Server работает без API-ключей и переменных окружения.
MQTT Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить MQTT Server в Claude Desktop, Claude Code или Cursor?
Открой MQTT Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare MQTT Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
