MQTTX SSE Server
An implementation of the Model-Context Protocol (MCP) that enables MQTT operations over Server-Sent Events (SSE) transport.
Overview
MQTTX SSE Server is an implementation of the Model-Context Protocol (MCP) that enables MQTT operations over Server-Sent Events (SSE) transport, allowing AI assistants to interact with external tools and services.
To use the MQTTX SSE Server, clone the repository, install the dependencies, and run the server. Configure your MQTTX settings to connect to the server using the provided URL.
- Implements MCP protocol version 2024-11-05 - Uses SSE for real-time message delivery - Supports MQTT operations: connect, subscribe, and publish messages - Session management for multiple clients
- Connecting AI assistants to MQTT brokers for real-time data exchange.
- Enabling real-time updates for IoT applications.
- Facilitating communication between different services using MQTT.
Add to your AI client
Use these steps to connect MQTTX SSE Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mqttx-mcp-sse-server-ysfscream": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mqttx-mcp-sse-server-ysfscream": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mqttx-mcp-sse-server-ysfscream": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mqttx-mcp-sse-server-ysfscream": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mqttx-mcp-sse-server-ysfscream": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mqttx-mcp-sse-server-ysfscream": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mqttx-mcp-sse-server-ysfscream"
]
}
}
}FAQ
What is the MCP protocol?
The Model-Context Protocol (MCP) is a standardized protocol that allows AI assistants to interact with external tools and services.
How do I install MQTTX SSE Server?
Clone the repository, install dependencies using npm, and run the server.
Can I use MQTTX SSE Server with any MQTT broker?
Yes, as long as the broker supports standard MQTT operations.