MCP-Lint V0 is an experimental static security lint signal for TypeScript and Python MCP server repositories. It looks for security-relevant MCP server defects and weak controls, such as exposed HTTP transports, unsafe shell or URL-fetch tools, path handling risks, secret handling problems, and schema-only validation around security-sensitive values.
It produces deterministic JSON, Markdown, SARIF, and README badge artifacts. It does not execute target servers, does not certify security, and may produce false positives. Unsupported languages are not scored.
Normal users do not need to clone or build this repository. Run the CLI package directly and pass the path to the MCP server repository you want to scan:
pnpm dlx @agentsnative/mcp-lint scan .
# npm users can also run:
npx @agentsnative/mcp-lint scan .This one-off command uses a temporary copy of the CLI; there is no separate manual install step.
Use . when your terminal is already at the target repository root. You can also pass a relative or
absolute path:
pnpm dlx @agentsnative/mcp-lint scan ../my-mcp-server
pnpm dlx @agentsnative/mcp-lint scan /absolute/path/to/my-mcp-serverFor repeated local use, install the package as a development dependency and run the installed binary:
pnpm add -D @agentsnative/mcp-lint
pnpm exec mcp-lint scan .The package requires Node.js 20 or newer. If you are developing MCP-Lint itself from this repository, build the local CLI before running it:
pnpm install
pnpm build
node dist/cli.js scan .Public V0 scoring is intentionally narrow. By default, the public score only includes alpha scored rules:
MCP-SEC-003a
MCP-SEC-003b
MCP-SEC-001
MCP-SEC-005
MCP-QUAL-001
Week-2 / v0.1 and lower-confidence rules still appear in reports as preview or advisory findings, but they do not affect the public badge score unless scoring policy changes in a later release.
The <path> in mcp-lint scan <path> is the target MCP server repository root. All runtime
filtering and output paths are relative to that root. For example, mcp-lint scan ../my-mcp-server
writes results under ../my-mcp-server/.mcp-lint/.
The default scan mode is runtime: it ignores tests, fixtures, scripts, examples, build config, generated
files, type declarations, and common non-runtime app folders such as ui/, frontend/, client/, and web/.
Reports include runtime_file_count, ignored_file_count, and ignored_files_by_reason so coverage is explicit.
Use --all-files only for local investigation:
mcp-lint scan . --all-filesmcp-lint rules
mcp-lint scan .A normal evaluated scan writes:
.mcp-lint/results.json
.mcp-lint/report.md
.mcp-lint/results.sarif
.mcp-lint/badge.txt
Unsupported or no-runtime repositories are reported as not evaluated instead of receiving a clean score:
mcp-lint: not evaluated status=unsupported_language detected=go
- uses: agentsnative/mcp-lint@v0
with:
path: .The action executes the built CLI under dist/cli.js, so root dist/** is part of the public release surface.
The repository includes public artifact policy, public-safe SpecKit validation, fixture-backed tests, and package
gates under policy/, scripts/, specs/, and docs/.
Useful commands:
pnpm specs:check-public
pnpm governance:check
pnpm verifyPublic CI validates only public-safe artifacts. Raw prompts, private planning notes, generated implementation scratchpads, local scan outputs, and undisclosed evidence must stay outside this repository.