NPM包搜索MCP服务器

NPM包搜索MCP服务器

用于搜索NPM包的模型上下文协议(MCP)服务器

NPM包搜索MCP服务器使用指南

安装方式

通过Smithery安装(Claude桌面版)

npx -y @smithery/cli install npm-search-mcp-server --client claude

通过NPM安装(推荐)

npm install -g npm-search-mcp-server

使用uv运行: 通过uvx直接运行,无需安装。

配置指南

Claude.app配置: 添加到Claude设置中:

"mcpServers": {
  "npm-search": {
    "command": "npx",
    "args": ["-y", "npm-search-mcp-server"]
  }
}

Zed编辑器配置: 添加到Zed的settings.json:

"context_servers": {
  "npm-search-mcp-server": {
    "command": "npx",
    "args": ["-y", "npm-search-mcp-server"]
  }
},

可用工具

  • search_npm_packages - 搜索NPM包
    • 必需参数:
      • query(字符串):搜索查询

使用示例

向Claude提问:

  1. "搜索express包在npm上"
  2. "找到与react相关的包"
  3. "显示网页开发相关的npm包"