Free Public MQTT Broker (Test Only)
Spin up client demos, workshops, and protocol experiments without provisioning infrastructure. This shared endpoint is refreshed often, carries no SLA, and any credential can change without notice.
Understand the public broker limitations
Design your tests with the sandbox constraints in mind so you can validate quickly and know when it is time to upgrade.
Lightweight throughput
Capacity is shared. Traffic may be rate limited and connections may reset without notice.
Ephemeral data
Sessions, credentials, and retained state can reset without notice. Never send secrets or production telemetry through the public endpoint.
Shared security model
Use the TLS connection details published on RunMQTT and choose a unique client ID for each connection.
Connect with popular MQTT clients
Speed up your first publish with copy-paste ready examples for desktop apps, command-line tools, and low-code flows.
MQTTX
Create a new TLS connection with environment variables populated from the current RunMQTT public broker parameters.
{
"name": "Public MQTT Sandbox",
"clientId": "${MQTT_CLIENT_ID}",
"host": "${MQTT_HOST}",
"port": "${MQTT_TLS_PORT}",
"username": "${MQTT_USERNAME}",
"password": "${MQTT_PASSWORD}",
"ssl": true
}
Generate a unique client ID for every connection.
Mosquitto CLI
Test publish and subscribe flows without placing credentials directly in shell history.
# Subscribe with TLS
mosquitto_sub -h "$MQTT_HOST" -p "$MQTT_TLS_PORT" \
-u "$MQTT_USERNAME" -P "$MQTT_PASSWORD" \
-i "$MQTT_CLIENT_ID" -t "$MQTT_TOPIC" -q 1
# Publish a message
mosquitto_pub -h "$MQTT_HOST" -p "$MQTT_TLS_PORT" \
-u "$MQTT_USERNAME" -P "$MQTT_PASSWORD" \
-i "$MQTT_CLIENT_ID" -t "$MQTT_TOPIC" -q 1 \
-m "hello from mqtt_pro"
Export the variables in your shell before running these commands.
Node-RED
Use environment variable substitution in the MQTT broker configuration.
[
{
"id": "mqtt-public",
"type": "mqtt-broker",
"name": "Public MQTT Sandbox",
"broker": "${MQTT_HOST}",
"port": "${MQTT_TLS_PORT}",
"clientid": "${MQTT_CLIENT_ID}",
"credentials": {
"user": "${MQTT_USERNAME}",
"password": "${MQTT_PASSWORD}"
}
}
]
Set the variables in the Node-RED runtime environment before importing the flow.
Stay in the MQTT.pro ecosystem
Deepen your MQTT skills with detailed guides authored by our engineering team.
Hands-on MQTT tutorial
Follow a step-by-step walkthrough that builds from the public sandbox to production-ready patterns.
Read the guide →MQTT security checklist
Learn the hardening steps we apply on managed clusters, including TLS mutual auth and auditing.
Review best practices →MQTT Pro deployment tips
Explore capacity planning, message retention strategies, and growth milestones from our success team.
See how teams scale →Free public MQTT broker vs managed MQTT broker pricing
Compare the limitations of the free MQTT sandbox with the reliability of our fully managed MQTT broker plans before you launch a production workload.
| Feature | Public MQTT Broker (Free) | Managed MQTT Broker Plans |
|---|---|---|
| Authentication | Shared credentials rotated periodically and visible to all testers. | Revocable per-device credentials and topic policies. |
| Encryption | TLS and secure WebSocket endpoints for client testing. | TLS and secure WebSockets for private broker access. |
| Message throughput | Best effort; traffic can be throttled for noisy neighbors. | Plan limits for concurrent connections and monthly message units. |
| SLA and uptime | No uptime commitment and the host may restart without notice. | Private capacity with plan-specific limits. |
| Support | Community only; no dedicated response channel. | Email support. |
| Recommended use | Quick MQTT tutorials, client demos, protocol experiments. | Production IoT products, telemetry pipelines, messaging backbones. |
| Cost | Free, no SLA. | From $15/month. Eligible accounts can start a 7-day trial with a payment method. |
Ready for production? Compare private RunMQTT brokers with per-device credentials and topic policies.
Compare RunMQTT plansPublic MQTT broker FAQ
Answers to the most common questions about the free broker and how to transition to a managed MQTT deployment.
Can I run production traffic on the public broker?
No. The public endpoint is shared, and credentials, connections, and traffic limits may change. Use a private broker for production traffic.
How often do the public broker credentials change?
Authentication details can change at any time to protect the community from abuse. Review the RunMQTT public broker page before workshops or demos.
Is there any rate limiting or connection quota?
The sandbox has shared capacity. Connections can reset and traffic may be throttled during tests.
Which MQTT features are supported here?
Use QoS 0 or 1 for sandbox experiments. Session and retained state may reset without notice.
How do I keep my devices secure while testing?
Use the TLS connection details published on RunMQTT, choose a unique client ID, and publish only synthetic data.
What is the quickest path to upgrade when I outgrow the public sandbox?
Pick a plan on the pricing page, create a private broker, and test your clients with new credentials before changing their endpoint.
Do paid plans include logging and debugging tools?
RunMQTT provides broker usage views and a browser console for client testing on private brokers. Review the plan details before upgrading.
Launch a dedicated MQTT broker with our team
Need a custom quote, migration plan, or proof-of-concept support? Our engineers will help you move from the public sandbox to a production-ready MQTT cluster.