NPM 守卫
STDIO基于AI的NPM包分析MCP服务器
基于AI的NPM包分析MCP服务器
A powerful Model Context Protocol (MCP) server that revolutionizes NPM package analysis through AI. Built to integrate with Claude and Anthropic AI, it provides real-time intelligence on package security, dependencies, and performance. This MCP server delivers instant insights and smart analysis to safeguard and optimize your npm ecosystem, making package management decisions faster and safer for modern development workflows.
Note: The server provides AI-assisted analysis through MCP integration.
Add this to your VS Code MCP config file. See VS Code MCP docs for more info.
{ "servers": { "npm-sentinel": { "type": "stdio", "command": "npx", "args": ["-y", "@nekzus/mcp-server@latest"] } } }
# Build the Docker image docker build -t nekzus/npm-sentinel-mcp .
You can run the MCP server using Docker with directory mounting to /projects
:
{ "mcpServers": { "npm-sentinel-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-w", "/projects", "--mount", "type=bind,src=${PWD},dst=/projects", "nekzus/npm-sentinel-mcp", "node", "dist/index.js" ] } } }
For multiple directories:
{ "mcpServers": { "npm-sentinel-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-w", "/projects", "--mount", "type=bind,src=/path/to/workspace,dst=/projects/workspace", "--mount", "type=bind,src=/path/to/other/dir,dst=/projects/other/dir,ro", "nekzus/npm-sentinel-mcp", "node", "dist/index.js" ] } } }
Note: All mounted directories must be under /projects
for proper access.
Add this to your claude_desktop_config.json
:
{ "mcpServers": { "npmsentinel": { "command": "npx", "args": ["-y", "@nekzus/mcp-server@latest"] } } }
Configuration file locations:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "npm-sentinel-mcp": { "command": "npx", "args": [ "-y", "@nekzus/mcp-server@latest" ] } } }
The server exposes its tools via the Model Context Protocol. All tools adhere to a standardized response format:
{ "content": [ { "type": "text", "text": "string", "isError": boolean // Optional } // ... more content items if necessary ] }
npm://registry
: NPM Registry interfacenpm://security
: Security analysis interfacenpm://metrics
: Package metrics interfaceThe server also provides the following informational resources accessible via MCP GetResource
requests:
doc://server/readme
:
README.md
file content for this NPM Sentinel MCP server.text/markdown
doc://mcp/specification
:
llms-full.txt
content, providing the comprehensive Model Context Protocol specification.text/plain
packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])period
("last-week" | "last-month" | "last-year")packages
(string[])packages
(string[])packages
(string[])packages
(string[])query
(string)limit
(number, optional)packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])packages
(string[])# Build with npm npm install npm run build
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
MIT © nekzus