Skip to content

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:

Terminal window
# Start mcmqtt instantly
uvx mcmqtt
# Or with specific options
uvx mcmqtt --transport http --port 8080

Thatโ€™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:

Terminal window
# Add mcmqtt to your MCP configuration
claude mcp add task-buzz "uvx mcmqtt"
# Test the connection
claude mcp test task-buzz
# Verify it's working
claude mcp list

First MQTT Connection

Once mcmqtt is running, you can immediately start using MQTT features:

Basic Pub/Sub

Terminal window
# 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 topics
mqtt_subscribe({
"topic": "test/messages",
"qos": 1
})
# 3. Publish messages
mqtt_publish({
"topic": "test/messages",
"payload": "Hello from mcmqtt!",
"qos": 1
})

Spawn a Broker

Need a dedicated broker? mcmqtt can spawn one instantly:

Terminal window
# Spawn broker on custom port
spawn_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:

Terminal window
# Deploy browser testing swarm
uvx mcmqtt swarm deploy --agents browser-test --count 10

Learn about Fractal Agent Coordination โ†’

๐Ÿ“ก Real-time Data Streams

Build reactive applications with MQTT streams:

Terminal window
# Stream sensor data
mqtt_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:

Terminal window
# High-availability setup
uvx mcmqtt --broker-cluster 3 --persistence enabled

Deploy to Production โ†’

Configuration Options

mcmqtt works out of the box, but you can customize behavior:

Environment Variables

Terminal window
export MQTT_BROKER_HOST="mqtt.example.com"
export MQTT_BROKER_PORT="1883"
export MQTT_CLIENT_ID="mcmqtt-server"
uvx mcmqtt # Uses environment config

CLI Options

Terminal window
uvx mcmqtt --help # See all options
# Common configurations:
uvx mcmqtt --transport stdio # Default: MCP STDIO
uvx mcmqtt --transport http # HTTP server mode
uvx mcmqtt --mqtt-host broker.local # Connect to existing broker
uvx mcmqtt --auto-connect # Auto-connect on startup

Troubleshooting

Connection Issues

If you canโ€™t connect to MQTT:

Terminal window
# Check if broker is running
netstat -an | grep :1883
# Test with mosquitto clients
mosquitto_pub -h localhost -t test -m "hello"
mosquitto_sub -h localhost -t test

MCP Integration Issues

If Claude Code canโ€™t find mcmqtt:

Terminal window
# Remove and re-add the server
claude mcp remove task-buzz
claude mcp add task-buzz "uvx mcmqtt"
# Check MCP server logs
claude mcp logs task-buzz

Performance Issues

For high-throughput scenarios:

Terminal window
# Increase connection limits
uvx mcmqtt --max-connections 1000 --buffer-size 65536
# Enable high-performance mode
uvx mcmqtt --performance-mode

Whatโ€™s Next?

You now have mcmqtt running! Here are the most popular next steps:

  1. Build Agent Networks - Create coordinated AI agent systems
  2. Real-time Monitoring - Set up health checks and observability
  3. Custom Tools - Extend mcmqtt with your own MCP tools
  4. 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. ๐Ÿš€