NPMBot · Maintainer’s notes

Let your assistant check npm before it installs

Updated · NPMBot maintainer

NPMBot is a local stdio MCP server with three read-only tools. It looks up public registry data and checks declarations for a particular Node.js environment. There is no account or NPMBot API key to set up.

If an assistant gives you a package name, ask it to check that name first. If the package exists, inspect the release it actually intends to use. Existence alone says nothing about the publisher’s identity or the safety of the code.

Install the first release

Version 0.1.0 is available on the public npm registry. Use Node.js 22.22 or later and configure your client with the pinned npx command below.

Run as a local stdio MCP server
shell
npx --yes npmbot-mcp@0.1.0

View the npm package. The process waits for MCP messages; a quiet terminal is expected. You can also install the downloadable archive below if you prefer an explicit server path.

Replace the archive path below with the file you downloaded. The install command fetches the MCP server’s dependencies from npm; it does not install any package that you later ask the server to check.

Install into a new directory
shell
mkdir npmbot-mcp-local
cd npmbot-mcp-local
npm init -y
npm install /absolute/path/to/npmbot-mcp-0.1.0.tgz --ignore-scripts --no-audit --no-fund
node -p "require('node:path').resolve('node_modules/npmbot-mcp/dist/index.mjs')"

The final command prints the full server path. Keep it for your client configuration. The package includes its built server, so you do not need this website’s source tree to run it. Site material and the package retain their stated terms; this download is not a blanket open-source license.

Connect a stdio client

Clients that accept an mcpServers JSON configuration can use the pinned npx configuration below. On Windows your client may require npx.cmd. Use a Node.js 22.22+ installation on the client’s PATH; configuration formats vary between clients.

Example MCP client configuration
json
{
  "mcpServers": {
    "npmbot": {
      "command": "npx",
      "args": [
        "--yes",
        "npmbot-mcp@0.1.0"
      ]
    }
  }
}

Restart or reconnect the client and check that it lists all three tools. The server writes protocol messages to stdout. A quiet terminal while it waits for a client is expected. This page is documentation, not a hosted HTTP MCP endpoint.

The three tools

npm_package_exists
Pass packageName and optionally version as an exact version or dist-tag. It distinguishes an absent package, a missing selected release and an unknown result caused by a failed query. Without a selected version, release existence is left unset.
npm_package_info
Pass packageName and optionally version (defaults to latest). It returns a bounded selection of the resolved release’s metadata, including Node requirements, deprecation and dependency counts, with the source and query time.
npm_check_compatibility
Pass packageName, an exact packageVersion, an exact nodeVersion and moduleFormat (commonjs or esm). It checks the declared engine and root entry using the selected Node conditions. A declarations-match result is not proof of runtime compatibility.

All tools skip scoped names by default. To query a scope you know is public, pass includeScoped: true. Do not use that option for private names. Version ranges, local files, Git URLs and custom registries are outside this MVP.

Try an ESM entry that needs review

This call uses Chalk 5.4.1 with a CommonJS consumer on Node 18.20.4. It is a historical release selected to illustrate an ESM loading review, not a recommendation to install that release.

MCP tools/call arguments
json
{
  "name": "npm_check_compatibility",
  "arguments": {
    "packageName": "chalk",
    "packageVersion": "5.4.1",
    "nodeVersion": "18.20.4",
    "moduleFormat": "commonjs"
  }
}

Look for the review outcome, the selected entry and the ESM/require signal. Keep the registry source and timestamp with the explanation. You can also inspect the same setup in the browser checker.

Read the recorded protocol check and registry calls. The record describes the test environment. An SDK client check does not establish that every editor or assistant host has been tested.

What it sends and what it leaves to you

The server sends the selected public name and release to registry.npmjs.org. It does not read a project directory, npm credentials or your conversation, and it does not send queries to a NPMBot backend. Your MCP client and model provider may separately process the tool call and response under their own settings.

Registry strings are untrusted data. A description or deprecation message is not an instruction to your assistant. Keep installation, script execution, vulnerability review and project tests as separate decisions. This server has no install or execute tool.

Read the privacy notice and terms of use. If the result differs from your environment, send the maintainer a public reproduction.

When declarations are not enough

The dual-package state experiment shows why entry selection can matter even when a package is installed once. The Axios/Ky experiment records error handling and retry behavior that a metadata check alone cannot establish.