What it does
- Browse queues, topics and subscriptions, with message counts.
- Peek at messages and dead letters, page by page.
- Read a message in detail: body, properties and dead-letter reason.
- Send a message to a queue or topic.
- Re-send dead letters to the entity they came from.
- Purge a queue or a dead-letter queue.
- Read-only mode hides everything that changes data.
- MCP server, so an AI agent can inspect and replay messages.
Quick start
Paste this service into the compose file that already runs your emulator, then open http://localhost:8390.
servicebus-explorer:
image: ghcr.io/wondertalik/servicebus-emulator-explorer:1.1.0
ports:
# 127.0.0.1 only: the explorer has no login, so keep it on your machine.
- "127.0.0.1:${EXPLORER_HTTP_PORT:-8390}:${EXPLORER_HTTP_PORT:-8390}"
environment:
EXPLORER_HTTP_PORT: ${EXPLORER_HTTP_PORT:-8390}
# Service name of the emulator in your compose file.
EMULATOR_HOST: ${SERVICEBUS_EMULATOR_HOST:-servicebus-emulator}
# Hide send, re-send and purge.
# EXPLORER_READONLY: "true"
# MCP endpoint for AI agents, off by default.
# EXPLORER_MCP_ENABLED: "true"
# EXPLORER_MCP_TOKEN: ${EXPLORER_MCP_TOKEN}
If your emulator service has another name, change servicebus-emulator. EXPLORER_HTTP_PORT changes the port, on your machine and in the container. The image is published for linux/amd64 and linux/arm64.
MCP server
With EXPLORER_MCP_ENABLED on, the explorer serves the Model Context Protocol at /mcp. An AI coding agent on your machine can list entities, read messages and dead letters and, unless read-only mode is on, send, re-send and purge, instead of writing throwaway scripts. Set a token whenever it is on.
Turn it on
In the compose service, set EXPLORER_MCP_ENABLED: "true" and EXPLORER_MCP_TOKEN; the snippet above has both, commented out. Generate a token with openssl rand -hex 32.
Keep the token in your shell
Claude Code reads variables from the shell it starts in. Put the same token in ~/.zshrc or ~/.bashrc, then open a new terminal and start claude again.
export EXPLORER_MCP_TOKEN=<token>
Register it
With one command. The single quotes keep the reference instead of storing the token.
claude mcp add --transport http servicebus-explorer http://localhost:8390/mcp --header 'Authorization: Bearer ${EXPLORER_MCP_TOKEN}'
Or by hand, in a .mcp.json at the repository root. It is safe to commit, because it only names the variables: never put the token itself in it.
{
"mcpServers": {
"servicebus-explorer": {
"type": "http",
"url": "http://localhost:${EXPLORER_HTTP_PORT:-8390}/mcp",
"headers": { "Authorization": "Bearer ${EXPLORER_MCP_TOKEN}" }
}
}
}
Without a token, leave out the --header option or the headers block. More in the guide: adding it by hand, keeping the token in your shell, and the MCP server guide for tools, parameters and other agents.
Security
There is no login. This is a tool for local development: keep the port on 127.0.0.1, as the snippet does, and do not expose it to a network.