Skip to main content
Glama
ofershap

mcp-server-npm-plus

by ofershap

mcp-server-npm-plus

npm version npm downloads CI TypeScript License: MIT

npm package research from your AI assistant. Search packages, check bundle sizes, scan for vulnerabilities, compare download counts, and inspect dependency trees. No API keys needed.

npx mcp-server-npm-plus

Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Uses public npm registry APIs.

MCP server for npm package search, bundle size, and vulnerability scanning

Demo built with remotion-readme-kit

Why

Choosing between npm packages usually means opening a bunch of browser tabs: npm for package info, Bundlephobia for size, Snyk for vulnerabilities, npm trends for download comparisons. This server puts all of that in one place, accessible through your AI assistant. Ask "compare zustand vs jotai vs valtio" and get download numbers, bundle sizes, and dependency counts side by side. Ask "are there any known vulnerabilities in express?" and get the answer without leaving your editor. It uses only public npm APIs, so there's nothing to sign up for.

Related MCP server: mcp-server-npm

Tools

Tool

Description

search

Search npm packages by query

package_info

Get detailed info: description, license, repo, dependencies

downloads

Get download stats for a package

compare_downloads

Compare download counts across multiple packages

bundle_size

Get bundle size (minified + gzip) via Bundlephobia

vulnerabilities

Get vulnerability info and advisory links

dependency_tree

Show direct dependencies as a tree

download_trends

Daily breakdown with sparkline

Quick Start

Cursor

Add to .cursor/mcp.json:

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

Claude Desktop

Add to claude_desktop_config.json:

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

VS Code

Use the MCP extension and configure the server with npx mcp-server-npm-plus.

Example Prompts

  • "Search npm for React state management libraries"

  • "What's the bundle size of lodash?"

  • "Compare downloads of zustand vs jotai vs valtio"

  • "Check for vulnerabilities in express"

  • "Show me the dependency tree for next"

  • "What are the download trends for typescript this month?"

Development

npm install
npm run typecheck
npm run build
npm test
npm run lint
npm run format

See also

More MCP servers and developer tools on my portfolio.

Author

Made by ofershap

LinkedIn GitHub


README built with README Builder

License

MIT © 2026 Ofer Shapira

Available Tools

8 tools
bundle_sizeB

Get bundle size (minified + gzip) for an npm package via Bundlephobia.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name (e.g. 'lodash' or 'lodash@4.17.21')

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states what the tool does without disclosing behavioral traits. It doesn't mention rate limits, error conditions, whether it queries an external service (Bundlephobia), or what the output format looks like (e.g., JSON with size metrics). This leaves significant gaps for agent understanding.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose with zero wasted words. It directly communicates the tool's function without unnecessary elaboration, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete for a tool that queries external data. It doesn't explain what information is returned (e.g., size in bytes/KB, comparison data, version specifics) or behavioral aspects like network dependencies. For a tool with 1 parameter but external complexity, this is inadequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the single parameter 'name' well-documented in the schema. The description adds no additional parameter semantics beyond implying it's for npm packages, which is already covered. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get bundle size') and resource ('npm package via Bundlephobia'), including the precise measurement format ('minified + gzip'). It distinguishes from siblings like 'downloads' or 'vulnerabilities' by focusing on bundle analysis rather than download metrics or security.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for npm package bundle analysis, but provides no explicit guidance on when to use this tool versus alternatives like 'package_info' for general metadata or 'compare_downloads' for download comparisons. The context is clear but lacks sibling differentiation or exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

compare_downloadsC

Compare download counts across multiple packages.

ParametersJSON Schema
NameRequiredDescriptionDefault
packagesYesPackage names to compare
periodNoPeriod: last-day, last-week, last-month, last-yearlast-month

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool compares download counts but doesn't mention how the comparison is presented (e.g., table, chart), data sources, rate limits, or error handling. This is a significant gap for a tool with potential complexity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, clearly stating the tool's purpose without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and a tool that likely returns structured comparison data, the description is incomplete. It doesn't explain what the output looks like (e.g., aggregated counts, trends), leaving the agent uncertain about the tool's behavior and results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents both parameters ('packages' and 'period'). The description adds no additional parameter semantics beyond what's in the schema, such as format examples or constraints, meeting the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('compare') and resource ('download counts across multiple packages'), providing specific purpose. However, it doesn't explicitly differentiate from sibling tools like 'downloads' or 'download_trends', which might offer related functionality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'downloads' or 'download_trends'. It mentions comparing 'multiple packages' but doesn't specify use cases, prerequisites, or exclusions, leaving the agent to infer context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

dependency_treeC

Get dependency tree for an npm package (direct deps only).

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the operation is a 'Get' (implying read-only) and specifies 'direct deps only,' but doesn't cover other important traits like rate limits, authentication needs, error conditions, or what the output format looks like. This leaves significant gaps for a tool that likely queries external data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero wasted words. It front-loads the core purpose and includes a clarifying limitation ('direct deps only') that adds value without verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for a tool that likely returns structured dependency data. It doesn't explain what the tree output includes (e.g., versions, licenses), how errors are handled, or any dependencies on external services like the npm registry, leaving the agent with insufficient context for reliable use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'name' documented as 'Package name.' The description adds no additional semantic context beyond what the schema provides (e.g., format examples, constraints like npm registry compatibility). Baseline 3 is appropriate since the schema adequately covers the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('dependency tree for an npm package') with a specific scope limitation ('direct deps only'). It distinguishes this from potential siblings that might provide full dependency trees or other package analyses, though it doesn't explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided about when to use this tool versus the sibling tools (like 'package_info' or 'vulnerabilities'). The description implies it's for dependency analysis but doesn't specify scenarios, prerequisites, or exclusions that would help an agent choose between available options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

downloadsC

Get download statistics for an npm package.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name
periodNoPeriod: last-day, last-week, last-month, last-yearlast-month

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves statistics, implying a read-only operation, but doesn't mention potential limitations like rate limits, authentication needs, or what the output format looks like (e.g., raw numbers, charts, or structured data). This leaves gaps in understanding how the tool behaves in practice.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence that efficiently conveys the core purpose without unnecessary words. It is front-loaded with the essential information, making it easy to parse quickly, which is ideal for conciseness in tool descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, and no annotations), the description is incomplete. It doesn't explain what the download statistics include (e.g., counts, trends, or breakdowns), how results are returned, or any dependencies on sibling tools, leaving the agent with insufficient context for effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with clear documentation for both parameters ('name' as package name and 'period' with default and options). The description adds no additional semantic context beyond what the schema provides, such as examples or edge cases, so it meets the baseline for adequate but not enhanced parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get download statistics') and resource ('for an npm package'), making the purpose immediately understandable. However, it doesn't differentiate this tool from sibling tools like 'download_trends' or 'compare_downloads', which likely provide related download data but with different scopes or comparisons.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'download_trends' or 'compare_downloads'. It lacks any context about prerequisites, such as needing a valid npm package name, or exclusions, leaving the agent to infer usage from the tool name and parameters alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

package_infoB

Get detailed info about an npm package: description, license, repo, dependencies.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name (e.g. 'express')

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it 'gets' info, implying a read-only operation, but doesn't clarify aspects like authentication requirements, rate limits, error handling, or data freshness. For a tool with no annotations, this leaves significant behavioral gaps unaddressed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Get detailed info about an npm package') and lists key data points. There is no wasted verbiage, and every word contributes to understanding the tool's function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (single parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and data returned, but lacks details on behavioral traits, usage context, or output format. Without annotations or output schema, more completeness would be beneficial for a read operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the single parameter 'name' clearly documented in the schema as 'Package name (e.g., 'express')'. The description adds no additional parameter semantics beyond what the schema provides, such as format constraints or examples. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('npm package'), specifying what information is retrieved (description, license, repo, dependencies). It distinguishes from siblings by focusing on comprehensive package metadata rather than specific aspects like downloads, vulnerabilities, or comparisons. However, it doesn't explicitly differentiate from all siblings (e.g., 'search' might overlap in purpose).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With multiple sibling tools available (e.g., 'vulnerabilities' for security info, 'dependency_tree' for dependencies, 'search' for finding packages), there is no indication of when this comprehensive metadata tool is preferred over more specialized ones or what prerequisites might exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

vulnerabilitiesB

Get vulnerability info for an npm package. Note: Full audit requires npm audit in project context.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that this tool provides 'vulnerability info' and notes a limitation compared to 'npm audit,' but doesn't describe what specific information is returned (e.g., severity levels, CVEs), whether it requires authentication, rate limits, or how up-to-date the data is. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with just two sentences that are front-loaded: the first states the core purpose, and the second adds a crucial limitation note. Every word earns its place, with no redundancy or unnecessary elaboration, making it efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (single parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and a key limitation, but lacks details on return values, error handling, or deeper behavioral traits. Without an output schema, the description should ideally explain what 'vulnerability info' includes, but it doesn't, leaving the agent with incomplete context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the single parameter 'name' clearly documented as 'Package name.' The description doesn't add any additional semantic context beyond this, such as format examples or constraints. According to the rules, when schema coverage is high (>80%), the baseline score is 3 even without parameter details in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('vulnerability info for an npm package'). It distinguishes from siblings like 'package_info' or 'dependency_tree' by focusing specifically on security vulnerabilities. However, it doesn't explicitly contrast with sibling tools, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides implied usage guidance through the note about 'Full audit requires npm audit in project context,' suggesting this tool provides limited vulnerability information compared to a full audit. However, it doesn't explicitly state when to use this tool versus alternatives like 'package_info' or when not to use it, leaving some ambiguity about its scope.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 8 tool updatesv1.0.0
    • First observedbundle_size
    • First observedcompare_downloads
    • First observeddependency_tree
    • First observeddownload_trends
    • First observeddownloads
    • First observedpackage_info
    • First observedsearch
    • First observedvulnerabilities

TDQS

B3.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose targeting specific aspects of npm package analysis, such as bundle size, downloads, dependencies, vulnerabilities, and search. There is no overlap in functionality, making it easy for an agent to select the right tool for each task.

Naming Consistency4/5

Most tools follow a consistent snake_case naming pattern with clear verbs and nouns, like 'bundle_size', 'downloads', and 'package_info'. However, 'dependency_tree' uses a compound noun without a verb, which is a minor deviation from the otherwise uniform style.

Tool Count5/5

With 8 tools, the server is well-scoped for npm package analysis, covering key areas like size, downloads, dependencies, info, search, and vulnerabilities. Each tool earns its place without feeling excessive or insufficient for the domain.

Completeness4/5

The tool set provides comprehensive coverage for npm package analysis, including info retrieval, dependency inspection, download trends, and vulnerability checks. A minor gap exists in direct package management actions like install or update, but core analysis workflows are fully supported.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofershap/mcp-server-npm-plus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server