SuperAPI AI Directory

MBro

MBro (MCP Browser) is a command-line tool in the Magg package for browsing, managing, and interacting with MCP (Model Context Protocol) servers. It provides an interactive command shell that can discover MCP servers, list and execute tools/resources/prompts, view server metadata and capabilities, and supports script automation, JSON output, Tab completion, and an asynchronous Python REPL.

Open website

About this tool

MBro (MCP Browser) is a command-line tool included with the Magg package for browsing, managing, and interacting with MCP (Model Context Protocol) servers. It provides an interactive command shell to help explore MCP capabilities and execute tools.

Main uses and capabilities:

  • Browse and discover MCP servers.
  • List available tools, resources, and prompts.
  • Execute MCP tools, resources, and prompts with the correct argument format.
  • View server metadata and capabilities.

Installation and running: Installing with uv tool is recommended (it is part of the Magg package). It can also be run directly with uvx without installation. After starting interactive mode, use the connect command to connect to an MCP server (a name and connection string are required), or execute commands directly from the command line.

Usage:

  • Interactive shell: after connecting, use commands to manage connections, operate tools/resources/prompts, search for information, and more.
  • Non-interactive mode (-n, -X, or -): the exit status is 1 when any command fails (unknown command, connection failure, no active connection, tool error, invalid arguments, etc.); unless --fail-fast is specified, subsequent commands continue to execute after a failure.
  • Scripts: supports executing .mbro files, with one command per line; lines starting with # are comments, blank lines are ignored, a trailing backslash continues the line, and multi-line JSON arguments may span lines until brackets are balanced; all interactive commands can be used in scripts; scripts continue after a command fails (or stop with --fail-fast), and quit stops the script.
  • When connecting to an HTTP server that requires bearer token authentication, JWT tokens in environment variables are automatically checked in order.
  • Connection strings support multiple formats; URLs without a path (such as http://localhost:3000)连接默认 /mcp/ endpoint; URLs with a path are used with the given path. Connection failures show the underlying cause; if the server does not complete initialization within 30 seconds it times out, adjustable with --timeout SECONDS (0 disables).
  • Magg can be run directly in stdio mode for quick checks, suitable for quick debugging, testing changes, script development, and configuration validation.
  • Provides an async Python REPL mode with direct access to the underlying MCP client connection, suitable for testing and debugging MCP servers, exploring raw protocol responses, building custom scripts, and automation.
  • When integrated with Magg, you can browse aggregated servers and explore all tools of all servers managed by Magg through a single interface.

Modern CLI features:

  • Supports key=value syntax with automatic type conversion.
  • Natural multi-line command editing.
  • Smart argument completion and documentation: Tab completion shows argument names, types, whether required, descriptions, and type-aware suggestions such as enum values, booleans, and examples; Tab browses options, Enter selects, ESC cancels; smart parsing avoids duplicate arguments.
  • Suggests close matches when invoking unknown tools.
  • Multi-word search support (e.g. search file manager), searching across names, descriptions, and URIs, with a more flexible matching algorithm.

Tool argument format: Tool arguments can be provided in multiple ways; prompts accept the same formats (e.g. prompt greet name=Bob or prompt greet {"name": "Bob"}). Values are decoded as JSON (numbers, true/false, null, arrays, objects); non-valid JSON remains a string, so code=007 and range=10-20 are passed as strings; if the tool input schema declares a parameter as a string, the value is always passed as-is (id=12345 remains "12345"). Prompt arguments are always strings.

Output modes:

  • Default mode uses the Rich library for colored tables and formatted output.
  • Plain text mode disables Rich formatting.
  • JSON mode outputs machine-readable JSON; all output is valid JSON, errors include exception details, no interactive prompts, suitable for piping to other tools.

Command-line options include: commands (commands to execute), --version/-V, --json/-j, --no-rich, --indent N, --verbose/-v, --quiet/-q, --env-pass/-e, --env-set KEY VALUE/-E, --repl, -n/--no-interactive, -x/--execute-script, -X/--execute-script-n, --status-bar, --fail-fast, --timeout SECONDS, --help. Special usage: use - as the command to read commands from stdin (non-interactive); in non-interactive mode the exit status is 1 if any command fails; use ; to separate multiple commands; scripts provide reusable command sequences; minimize quoting, only values containing spaces need quotes.

Use cases: Testing and debugging MCP servers, exploring raw MCP protocol responses, building custom scripts and automation, browsing aggregated servers when integrated with Magg, quick checks of Magg configuration, etc.

Limitations: The material does not provide specific pricing, costs, platform support scope, performance metrics, or effectiveness data; some features depend on the Magg package and the uv/uvx environment; the connection timeout defaults to 30 seconds; in non-interactive mode the exit status is 1 on failure.