← Back to NPM MCP Server

Install NPM MCP Server

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add npm -- npx -y mcp-server-npm

Available Tools (6)

Once configured, NPM MCP Server gives your AI agent access to:

npm_searchSearch npm packages by keyword
npm_infoGet detailed package info (version, license, deps, maintainers)
npm_downloadsGet download statistics (daily, weekly, monthly, yearly)
npm_versionsList recent versions of a package
npm_compareCompare two packages side by side
npm_depsList all dependencies of a package

Try It Out

After setup, try these prompts with your AI agent:

Search npm for state management libraries
Show me info about the express package
Compare react vs preact
How many downloads does zod get per month?
What are the dependencies of next?
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
Alternative installation methods

Cursor

npx -y mcp-server-npm

Keep this setup from going cold

Save the docs, env vars, and workflow around NPM MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup