Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Config File Location

mcp-scanner stores its configuration at ~/.mcp-scanner/config.toml.

Create a default config with:

mcp-scanner init

Configuration Options

[scan]
# Timeout for each server connection (seconds)
timeout = 30

[output]
# Default output format: table, json, sarif
format = "table"

Data Directory

mcp-scanner stores data in ~/.mcp-scanner/:

PathDescription
config.tomlConfiguration file
mcp-scanner.dbSQLite database (audit logs, rules)
snapshots/Tool description snapshots for drift detection

Environment Variables

VariableDescription
MCP_GUARD_LOGLog level (error, warn, info, debug, trace)
MCP_GUARD_PORTDefault port for serve command