MD

MCP Discovery

Created 5 months ago

A command-line tool written in Rust for discovering and documenting MCP Server capabilities.

development documentation public CLI open-source

What is MCP Discovery?

A lightweight CLI tool built in Rust for discovering MCP server capabilities.

Documentation

Installation# Running as CLI

Check the project documentation for instructions on installing the tool on different platforms.

GitHub Action

The easiest way to automate and maintain up-to-date MCP Server documentation, is to use mcp-discovery as a GitHub action. Please see rust-mcp-stack/mcp-discovery-action for installation and configuration instructions.

Subcommands

  • print: 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.

Options

  • -f, --filename : Used with create and update commands to specify the output file to generate or modify.
  • -t, --template : Choose a built-in output template. Options: md, md-plain, html, txt.
  • -p, --template-file : Path to a custom Handlebars template file.
  • -s, --template-string : Inline Handlebars template provided as a string.
  • -h, --help: Display help information.
  • -V, --version: Display the version of mcp-discovery.

Built-in Templates

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.

Custom Templates

You can provide custom Handlebars templates in different ways:

  1. Use the --template-file flag to provide a custom template file.
  2. Use the --template-string flag to provide a raw Handlebars template directly as a string.
  3. To use an inline template, define it in a file for the update command only — this will not function with print or create.

Defining Update Regions with Markers

When using the update subcommand, mcp-discovery places capabilities between designated markers in the target file, which vary by file format and are typically comment lines. The update command simplifies the process for developers and maintainers to keep documentation current effortlessly. Run the mcp-discovery update command anytime to refresh the file with the latest MCP Server capabilities.

Contributing

We welcome everyone who wishes to contribute! Please refer to the contributing guidelines for more details. All contributions, including issues and pull requests, must follow Rust's Code of Conduct. Unless explicitly stated otherwise, any contribution you submit for inclusion in mcp-discovery is provided under the terms of the MIT License, without any additional conditions or restrictions.

Server Config

{
  "mcpServers": {
    "mcp-discovery-server": {
      "command": "npx",
      "args": [
        "mcp-discovery"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: Yes

Project Info

Hosted Featured
Created At: Jul 02, 2025
Updated At: Aug 07, 2025
Author: rust-mcp-stack
Category: official
License: MIT License
Tags:
development documentation public