scan

Interrogate an MCP server for capabilities


Synopsis

mcptrust scan -- <command> [flags]

Starts the given command as an MCP server, connects via stdio, and lists all available tools.

Options

FlagDefaultDescription
-h, --helphelp for scan
-p, --prettyfalsePretty print JSON output
-t, --timeout10sTimeout for MCP operations
-t, --timeout10sTimeout for MCP operations

Examples

Scan a local Node.js server:

mcptrust scan -- "npx -y @modelcontextprotocol/server-filesystem /Users/me/data"

Scan a Python server:

mcptrust scan -- "python mcp_server.py"

Output

The scan command outputs a standard JSON object containing the server's capabilities. It is recommended to pipe the output to jq for readability.