Search npm Packages
npm_searchSearch 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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "npm_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default: 10, max: 30) | |
| query | Yes | Search query for npm packages (keywords, package names, descriptions) |