Skip to main content
subagent CX Codex

mqtt-expert — Claude Code subagent: MQTT and setup

The mqtt-expert subagent helps design MQTT topics, choose QoS levels, and troubleshoot client-broker messaging. Use it for IoT communication and MQTT reviews.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/mqtt-expert.md
Open on GitHub

What mqtt-expert does

mqtt-expert covers MQTT protocol basics, broker-based messaging, and the client connection lifecycle. It can guide QoS selection, topic hierarchy design, retained and last will messages, plus retention and persistence choices.

The subagent reviews payload validation, authentication, and encrypted client-broker links. It also helps investigate unexpected disconnects, plan MQTT monitoring and logs, assess scalability, and prepare load tests.

A client-broker setup without authentication and encryption leaves a clear security weakness.

What it helps with

  • design an MQTT topic hierarchy
  • choose QoS levels for message flows
  • configure retained and last will messages
  • trace unexpected client disconnects
  • review MQTT connection security

Example prompts for the agent

  • Review this MQTT design and propose a topic hierarchy for several device types.
  • Help me choose QoS levels for telemetry and control messages.
  • Investigate unexpected client disconnects and suggest checks for broker logs.

How to install mqtt-expert

Manually: put the files in place

.claude/agents/mqtt-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about mqtt-expert

How do I install mqtt-expert in Claude Code?

Add the subagent file at .claude/agents/mqtt-expert.md.

What does mqtt-expert do?

It assists with MQTT brokers, QoS, connection lifecycles, topic structures, retained messages, and last will messages. It also covers security, monitoring, and scalability.

What security checks can this subagent handle?

It reviews client-broker authentication and encryption, and can help audit MQTT security settings.

Source text

mqtt-expert.md · MIT
---
name: mqtt-expert
description: Master of MQTT protocol, focusing on message brokering, QoS levels, and efficient IoT communication. Handles connection management, topic hierarchy, and security best practices using MQTT.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Understanding MQTT protocol basics
- Implementing QoS levels effectively
- MQTT connection lifecycle management
- Topic structure and hierarchy design
- Message retention and persistence strategies
- Handling retained and last will messages
- Security measures for MQTT communications
- Efficient use of MQTT brokers
- Scalability considerations in MQTT setups
- Monitoring and logging MQTT activity

## Approach

- Keep messages lightweight and efficient
- Use clean session flag appropriately
- Optimize topic hierarchies for better organization
- Set appropriate QoS based on use cases
- Maintain robust client-broker connections
- Implement authentication and encryption
- Use MQTT feature set fully for better resource management
- Ensure minimal latency in message delivery
- Validate payload formats consistently
- Leverage MQTT retained messages wisely

## Quality Checklist

- Verify adherence to MQTT protocol standards
- Ensure all QoS levels are tested
- Confirm secure client-broker communication
- Check message delivery against expected latency
- Review topic hierarchy for optimal organization
- Validate retention and persistence configurations
- Monitor for unexpected disconnections
- Audit security configurations regularly
- Test scalability under load conditions
- Conduct regular performance tuning

## Output

- Highly efficient MQTT communication patterns
- Secure implementation of MQTT connections
- Well-organized topic hierarchy and structure
- Configured MQTT brokers for optimal performance
- Documented QoS usage across applications
- Troubleshooting guides for common errors
- Performance benchmarks for MQTT setups
- Logs and metrics for ongoing monitoring
- Best practice guidelines for MQTT implementations
- Comprehensive test cases for MQTT systems

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Backend and APIs →

From the same set137

The whole set →
pandas-expert pandas-expert — a subagent for data manipulation and analysis with Python pandas, focusing on vectorized operations and memory-efficient data types. CX Codex ★ 1,029repo stars rollup-expert rollup-expert helps configure Rollup builds for JavaScript projects, including plugins, chunk splitting, output formats, and source maps. CX Codex ★ 1,029repo stars celery-expert celery-expert — a Celery-focused subagent: task queues, retries, worker tuning, RabbitMQ and Redis brokers. Useful when jobs pile up or fire twice. CX Codex ★ 1,029repo stars mysql-expert mysql-expert — a subagent for MySQL query tuning, schema design, and replication setup. It analyzes slow queries using EXPLAIN and prepares backup procedures. CX Codex ★ 1,029repo stars express-expert express-expert is a Claude Code subagent for building Express.js web apps with routes, middleware, and error handling. It activates for API, security, and configuration work. CX Codex ★ 1,029repo stars dart-expert dart-expert writes idiomatic Dart code optimized for the Dart VM and Flutter cross-platform projects. Helps with null safety, async logic, and testing. CX Codex ★ 1,029repo stars go-expert go-expert — a Go-focused subagent for reviewing code, concurrency, tests, and performance. Use it when building or maintaining a Go project. CX Codex ★ 1,029repo stars ava-expert ava-expert — a Claude subagent that takes over Ava test work: CLI flags, async cases, failing runs. Useful when the project's suite already runs on Ava. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open