Quick Start
Quick Start
Get mcmqtt running in under 2 minutes with our zero-configuration setup. No dependencies, no complex installation, just intelligent MQTT integration that works.
Instant Execution with uvx
The fastest way to try mcmqtt is with uvx - no installation required:
# Start mcmqtt instantlyuvx mcmqtt
# Or with specific optionsuvx mcmqtt --transport http --port 8080Thatโs it! mcmqtt is now running and ready for MCP clients.
Add to Claude Code
For persistent use with Claude Code, add mcmqtt as an MCP server:
# Add mcmqtt to your MCP configurationclaude mcp add task-buzz "uvx mcmqtt"
# Test the connectionclaude mcp test task-buzz
# Verify it's workingclaude mcp listFirst MQTT Connection
Once mcmqtt is running, you can immediately start using MQTT features:
Basic Pub/Sub
# In Claude Code, use the mcmqtt tools:# 1. Connect to broker (auto-spawns if needed)mqtt_connect({ "host": "localhost", "port": 1883, "client_id": "my-client"})
# 2. Subscribe to topicsmqtt_subscribe({ "topic": "test/messages", "qos": 1})
# 3. Publish messagesmqtt_publish({ "topic": "test/messages", "payload": "Hello from mcmqtt!", "qos": 1})Spawn a Broker
Need a dedicated broker? mcmqtt can spawn one instantly:
# Spawn broker on custom portspawn_mqtt_broker({ "port": 1884, "config": { "allow_anonymous": true, "max_connections": 100 }})Next Steps
Now that mcmqtt is running, explore these key capabilities:
๐ Deploy Agent Swarms
Ready to coordinate AI agents? Try the fractal coordination system:
# Deploy browser testing swarmuvx mcmqtt swarm deploy --agents browser-test --count 10Learn about Fractal Agent Coordination โ
๐ก Real-time Data Streams
Build reactive applications with MQTT streams:
# Stream sensor datamqtt_publish({ "topic": "sensors/temperature", "payload": {"value": 23.5, "unit": "C", "timestamp": "2024-01-15T10:30:00Z"}})Build Data Streaming Applications โ
๐๏ธ Production Deployment
Scale mcmqtt for production workloads:
# High-availability setupuvx mcmqtt --broker-cluster 3 --persistence enabledConfiguration Options
mcmqtt works out of the box, but you can customize behavior:
Environment Variables
export MQTT_BROKER_HOST="mqtt.example.com"export MQTT_BROKER_PORT="1883"export MQTT_CLIENT_ID="mcmqtt-server"uvx mcmqtt # Uses environment configCLI Options
uvx mcmqtt --help # See all options
# Common configurations:uvx mcmqtt --transport stdio # Default: MCP STDIOuvx mcmqtt --transport http # HTTP server modeuvx mcmqtt --mqtt-host broker.local # Connect to existing brokeruvx mcmqtt --auto-connect # Auto-connect on startupTroubleshooting
Connection Issues
If you canโt connect to MQTT:
# Check if broker is runningnetstat -an | grep :1883
# Test with mosquitto clientsmosquitto_pub -h localhost -t test -m "hello"mosquitto_sub -h localhost -t testMCP Integration Issues
If Claude Code canโt find mcmqtt:
# Remove and re-add the serverclaude mcp remove task-buzzclaude mcp add task-buzz "uvx mcmqtt"
# Check MCP server logsclaude mcp logs task-buzzPerformance Issues
For high-throughput scenarios:
# Increase connection limitsuvx mcmqtt --max-connections 1000 --buffer-size 65536
# Enable high-performance modeuvx mcmqtt --performance-modeWhatโs Next?
You now have mcmqtt running! Here are the most popular next steps:
- Build Agent Networks - Create coordinated AI agent systems
- Real-time Monitoring - Set up health checks and observability
- Custom Tools - Extend mcmqtt with your own MCP tools
- Production Scaling - Deploy at enterprise scale
Need Help?
- ๐ Documentation - Comprehensive guides and references
- ๐ Issues - Report bugs or request features
- ๐ฌ Discussions - Community support and ideas
Ready to revolutionize your AI coordination? mcmqtt makes it simple to build sophisticated agent networks with enterprise-grade reliability. Start with basic MQTT, scale to agent swarms. ๐