npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcp-monorepo/npm

v1.2.0

Published

MCP server for npm command tools (run scripts, install packages, list scripts)

Readme

@mcp-monorepo/npm

version repo

MCP server for npm command tools (run scripts, install packages, list scripts)

This package provides a set of tools to interact with Node.js projects using the npm command-line interface. It allows a model to perform common development tasks like installing dependencies, running scripts, and inspecting the project's configuration, all within a specified working directory.

Key Features

  • Run npm Scripts: Execute any script defined in package.json using the npm-run tool, with support for passing arguments.
  • Manage Dependencies: Use the npm-install tool to install all project dependencies or add new packages, including support for development dependencies.
  • Inspect Scripts: The list-scripts tool can read the package.json file and return a list of all available npm scripts.
  • Monorepo Support: All tools include an optional workspace parameter, allowing them to target specific packages within a monorepo.
  • Safe Execution: Commands are executed in isolated child processes within the designated project directory, capturing all output (stdout, stderr) and the exit code.

Usage

You can run this MCP server directly using npx for local testing:

npx @mcp-monorepo/npm@latest

To integrate this server with a compatible AI model (like Claude), provide the following MCP server configuration:

{
  "mcpServers": {
    "npm": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-monorepo/npm"
      ],
      "env": {
        "NPM_WORKING_DIRECTORY": "<Your NPM_WORKING_DIRECTORY Here>"
      }
    }
  }
}

Environment Variables

| Variable | Description | Default | | :--- | :--- | :--- | | NPM_WORKING_DIRECTORY | The absolute or relative path to the root of the Node.js project where npm commands will be executed. | <required> |

Tools

list-scripts

List npm scripts - Lists all available npm scripts defined in the project's package.json file. Optionally specify a workspace (relative path to package.json).

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | workspace | string | Relative path to the package.json for a monorepo workspace |


npm-run

Run npm script - Runs an npm script in the current workin directory

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | scriptName | string | The name of the npm script to run (e.g., "start", "test"). | | args | string | Arguments to pass to the npm script as string. Seperated by spaces. | | workspace | string | Relative path to the package.json for a monorepo workspace |


npm-install

Install npm packages - Installs npm packages with optional dev dependency and workspace support

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | packageName | string | The name of the package to install. If not provided, installs all dependencies from package.json. | | isDev | boolean | Whether to install as a dev dependency (adds --save-dev flag) | | workspace | string | Relative path to the package.json for a monorepo workspace |

Other MCP Servers

This monorepo contains several other MCP server packages available on npm. Each provides a distinct set of tools for use with the Model Context Protocol.

Recent Changes

Version 1.1.4

  • fd22b00: Fixed yarn versioning during publish

Version 1.1.3

  • Updated dependencies [7929a55]

Version 1.1.2

  • 75e8973: migrate monorepo to yarn 4, update CI/husky/scripts and run-on-changed, add yarnrc and packageManager, switch internal deps to workspace:* and simplify bin fields

Authors

  • The MCP Monorepo Team

License

This project is licensed under the AGPL-3.0-only License. See the LICENSE file for details.