servicebus-emulator-explorer

Web UI and MCP server for the Azure Service Bus emulator.

Explorer page for the orders queue, Messages tab: active and scheduled order messages in a grid, with the detail panel open on a JSON order message showing its pretty-printed body, a Copy button and its system properties

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.
Queues page: the navigation bar with Queues (3) and Topics (1), the name filter and refresh button, and the sample queues orders, orders-expiring and orders-sessions with their total, active, dead-letter and scheduled counts
Queues with their message counts
Dead-letter tab of the orders queue: three dead letters ticked for Re-send selected, and the detail panel showing the dead-letter reason payment-declined and its description
Dead letters with their reason, ready to re-send
Send dialog for the orders queue: a JSON order body with its size, content type, subject, correlation ID and an application property priority set to high
Sending a message
Topic page for the events topic: three subscriptions with their message counts, and their rules expanded: the default rule, a correlation filter on the subject and a SQL filter on a priority property
A topic with its subscriptions and rules

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.