curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-mcp-stack/mcp-discovery/releases/download/v0.2.4/mcp-discovery-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/rust-mcp-stack/mcp-discovery/releases/download/v0.2.4/mcp-discovery-installer.ps1 | iex"brew install rust-mcp-stack/tap/mcp-discoverycargo install mcp-discovery --lockednpm i -g @rustmcp/mcp-discovery@latest| File | Platform | Checksum |
|---|---|---|
| mcp-discovery-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | checksum |
| mcp-discovery-x86_64-apple-darwin.tar.gz | Intel macOS | checksum |
| mcp-discovery-x86_64-pc-windows-msvc.zip | x64 Windows (zip) | checksum |
| mcp-discovery-x86_64-pc-windows-msvc.msi | x64 Windows (msi) | checksum |
| mcp-discovery-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | checksum |
| mcp-discovery-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | checksum |
Usage: mcp-discovery [OPTIONS] -- <MCP Launch Command>...
mcp-discovery <COMMAND>
Commands:
print Displays MCP server capability details in the terminal
create Creates a file with MCP server capability details
update Updates a file by adding MCP server capability information between specified markers
help Print this message or the help of the given subcommand(s)
Arguments:
<MCP Launch Command>... Command and arguments to launch the MCP server
Options:
-t, --template <TEMPLATE>
Select an output template from the built-in options [possible values: md, md-plain, html, txt]
-p, --template-file <TEMPLATE_FILE>
Path to a custom template file written in the Handlebars format
-s, --template-string <TEMPLATE_STRING>
Template content provided as a string
-h, --help
Print help
-V, --version
Print versionPrint MCP Server capabilities to the terminal:
mcp-discovery -- npx -y @modelcontextprotocol/server-everythingprint: Displays MCP Server capabilities in the terminal.create: Creates a new file with MCP Server capability details.update: Updates an existing file by inserting MCP Server capabilities between specified markers.
👉 Note: If no subcommand is provided, the print subcommand will be used by default.
-f, --filename <FILENAME>: Used withcreateandupdatecommands to specify the output file to generate or modify.-t, --template <TEMPLATE>: Choose a built-in output template. Options:md,md-plain,html,txt.-p, --template-file <TEMPLATE_FILE>: Path to a custom Handlebars template file.-s, --template-string <TEMPLATE_STRING>: Inline Handlebars template provided as a string.-h, --help: Display help information.-V, --version: Display the version ofmcp-discovery.
👉 Note: If no template is provided, mcp-discovery will automatically select the most suitable built-in template based on the file extension.
The CLI supports the following built-in output templates:
md: Formatted Markdown that presents MCP Server capabilities in a table format.md-plain: Minimalist Markdown for straightforward output, using plain text instead of tables.html: Structured HTML with basic styling.txt: Plain text for raw, unformatted output.
You can provide custom Handlebars templates in different ways:
- Use the
--template-fileflag to provide a custom template file. - Use the
--template-stringflag to provide a raw Handlebars template directly as a string. - To use an inline template, define it in a file for the
updatecommand only — this will not function with print or create.
Inline templates must be enclosed within designated marker annotations.
?> 💡 See Example Commands for CLI usage examples across different configurations and scenarios.