Installing the mcplint executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install mcplint-cli
It will make the mcplint command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall mcplint-cli uninstalls.
Back to the crate overview .
Readme
mcplint
Static security analyzer for MCP (Model Context Protocol) configurations.
Scans MCP config files and live servers for security issues such as missing authentication, overly broad permissions, insecure transport, and sensitive data exposure.
Installation
cargo install mcplint-cli
Commands
mcplint scan — Scan MCP config files or live servers (--server )
mcplint list- rules — List all available security rules
mcplint explain < rule> — Show rule details and remediation guidance
mcplint diff — Compare current scan against a baseline
mcplint baseline — Create or diff configuration baselines
mcplint export — Export detected config to canonical format
mcplint mcp serve — Start as an MCP server on stdio
--format text| json| markdown| sarif
Exit Codes
Code
Meaning
0
Success — no findings above threshold
1
Operational error
2
Policy violation — findings above threshold
License
Apache-2.0