Skip to main content
Glama
kongyo2

@kongyo2/npm-info-mcp-server

Search npm Packages

npm_search
Read-onlyIdempotent

Search the npm registry for packages matching a query. Returns package details including name, version, description, keywords, and scores.

Instructions

Search the npm registry for packages matching a query.

Returns a list of packages with name, version, description, keywords, and quality scores.

Args:

  • query (string): Search query for npm packages

  • limit (number): Maximum results to return, 1-30 (default: 10)

Returns: List of matching packages with metadata and scores. Each result includes:

  • name, version, description, keywords

  • links (npm, homepage, repository)

  • scores (quality, popularity, maintenance, overall)

Examples:

  • "react state management" -> finds Redux, MobX, Zustand, etc.

  • "typescript orm" -> finds Prisma, TypeORM, Drizzle, etc.

  • "zod" -> finds zod and related packages

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 10, max: 30)
queryYesSearch query for npm packages (keywords, package names, descriptions)
Behavior4/5

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

Annotations already provide readOnlyHint, idempotentHint, etc. Description adds context: returns list with 'name, version, description, keywords, quality scores' and links. Does not contradict annotations.

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?

Efficient use of sentences: main purpose, return fields, args, returns, and examples. Front-loaded with core action. No wasted words.

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

Completeness5/5

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

Given high schema coverage and no output schema, description fully covers search behavior, parameters, and return structure. Examples add practical completeness.

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

Parameters4/5

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

Schema coverage is 100% (baseline 3). Description adds meaningful examples of query strings and elaborates on limit constraint (1-30, default 10). Provides value beyond schema.

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?

Clear verb+resource: 'Search the npm registry for packages matching a query.' Distinguishes from sibling tools that focus on specific package details (e.g., npm_package_info), dependencies, etc. Examples further clarify scope.

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?

Examples illustrate usage, but no explicit guidance on when not to use this tool vs alternatives (siblings not mentioned). Agent lacks information on when to prefer search_package vs package_info or dependencies.

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

Install Server

Other Tools

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/kongyo2/npm-info'

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