mcp-security-audit is a powerful MCP (Model Context Protocol) Server for auditing security vulnerabilities in npm package dependencies. It implements real-time security checks through remote npm registry integration.
Purpose
This project is mainly used for security vulnerability auditing of npm package dependencies. It runs as an MCP Server and can be invoked by clients integrated with the MCP protocol (such as Cline, Cursor, Claude Desktop), helping developers discover security risks in dependencies during development.
Main Capabilities
- Real-time security vulnerability scanning
- Remote npm registry integration
- Provides detailed vulnerability reports with severity levels
- Supports multiple severity levels: critical, high, moderate, low
- Compatible with npm / pnpm / yarn package managers
- Automatic fix suggestions
- Provides CVSS scores and CVE references
Usage
Installation methods include:
- Automatically install the Security Audit Tool for Claude Desktop via Smithery.
- Add the MCP configuration in Cline / Cursor.
The repository also provides manual installation steps:
- Clone the repository
- Install dependencies and build
- Add the MCP configuration in Cline / Cursor
The specific commands and configuration contents are not fully given in the original material; only the step titles are listed, so the specific commands are not expanded here. The repository contains configuration screenshots for Cursor Configuration and Cline Configuration.
Output Format
This tool provides detailed vulnerability information, including severity levels, fix suggestions, CVSS scores, and CVE references. In the public directory, example response files for development reference are provided:
- Severity-response.json: an example response when vulnerabilities are found (converted from the npm audit API response)
- no-Severity-response.json: an example response when no vulnerabilities are found (converted from the npm audit API response)
Note: These example responses are converted from the original npm audit API responses to provide a more structured format. The original npm audit API responses contain additional metadata, and the structure may differ.
Applicable Scenarios
Suitable for developers who need to check the security of npm project dependencies, especially when using MCP-enabled AI programming assistants (such as Cline, Cursor), allowing the assistant to directly invoke this tool for dependency vulnerability auditing. Compatible with npm, pnpm, and yarn projects.
Limitations
The original material does not provide information such as fees, pricing, platform restrictions, or performance metrics, so it is not provided for now. The project uses the MIT License.
Regarding contributions, contributions are welcome, and the repository contains a Contributing Guide and a Code of Conduct.