@kongyo2/npm-info-mcp-server
This server lets AI agents query the npm registry for package metadata, dependencies, READMEs, TypeScript support, and quality scores.
npm_search: Search npm packages by query with configurable result limit (1-30, default 10).
npm_package_info: Get detailed metadata for a package (latest version, license, repository, maintainers, dist-tags, etc.).
npm_package_versions: List recent package versions with publish dates, dist-tags, and deprecation notices.
npm_package_dependencies: Inspect direct dependencies (dev/peer/optional included by default) or resolve transitive production dependency trees up to depth 5.
npm_package_readme: Fetch a package's README markdown (truncated at 25,000 chars with notice).
npm_package_types: Check for bundled TypeScript type definitions,
typesVersions, and DefinitelyTyped companion packages.npm_package_score: Get quality, popularity, maintenance, GitHub, and download metrics from npms.io.
Provides tools for searching npm packages, retrieving package details, versions, dependencies, README, TypeScript type definitions, and quality scores from the npm registry.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@kongyo2/npm-info-mcp-server search for lodash"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@kongyo2/npm-info-mcp-server
MCP server that provides npm package information for AI agents during TypeScript development.
npm パッケージ情報を提供する MCP サーバー。AI エージェントが TypeScript 開発中に npm レジストリを参照できます。
Tools
Tool | Description | Parameters |
| Search packages |
|
| Get package details |
|
| List versions |
|
| Get dependencies |
|
| Fetch README |
|
| Check TypeScript type definitions |
|
| Get quality / popularity / maintenance score |
|
version defaults to latest. With depth above 1, npm_package_dependencies walks the production tree (dependencies plus optionalDependencies, marked (optional)) regardless of the include_* flags, which only shape the direct-dependency listing; resolution stops after 200 packuments or 20 seconds and says so.
Related MCP server: agent-workspace-mcp
Setup
{
"mcpServers": {
"npm-info": {
"command": "npx",
"args": ["-y", "@kongyo2/npm-info-mcp-server"]
}
}
}MCP Client Configuration
Claude Code
Install via CLI (MCP only):
claude mcp add --scope user npm-info -- npx -y @kongyo2/npm-info-mcp-serverCodex
codex mcp add npm-info -- npx -y @kongyo2/npm-info-mcp-serverDevelopment
npm install
npm run dev # Start dev server
npm test # Run unit tests
npm run check # Type check, lint & format
npm run build # BuildLicense
MIT
Available Tools
7 toolsnpm_package_dependenciesGet npm Package DependenciesARead-onlyIdempotent
Get dependency information for a specific version of an npm package.
By default returns direct dependencies of all kinds (dependencies, devDependencies,
peerDependencies, optionalDependencies) along with totals. When depth is
greater than 1, resolves the transitive production dependency tree (using the
abbreviated packument format and a bounded fetch limiter) and renders it as an
ASCII tree with deduplicated nodes.
Args:
package_name (string): The npm package name
version (string, optional): Specific version to check (defaults to latest)
depth (number, optional, 1-5): Transitive production-dep depth (default 1)
include_dev (boolean, optional): Include devDependencies (default true; ignored when depth > 1)
include_peer (boolean, optional): Include peerDependencies (default true; ignored when depth > 1)
include_optional (boolean, optional): Include optionalDependencies (default true; ignored when depth > 1)
Returns:
Counts summary (runtime/dev/peer/optional)
Direct dependency lists by category
When depth > 1: a transitive production-dep tree, deduplicated on resolved version
Examples:
"express" -> Express direct dependencies at latest
"react", version="18.2.0" -> React 18.2.0 dependencies
"express", depth=2 -> Express + its production deps' dependencies
Inputs: package_name (required), depth, version, include_dev, +2 more.
npm_package_infoGet npm Package InfoARead-onlyIdempotent
Get comprehensive information about an npm package including latest version, description, license, homepage, repository, keywords, engines, and maintainers.
Args:
package_name (string): The npm package name
Returns: Package metadata including:
name, latest version, description
license, homepage, repository URL
keywords, engines (node/npm version requirements)
dist-tags (latest, next, beta, etc.)
maintainers list
author information
Examples:
"react" -> React package info with latest version, license, etc.
"@anthropic-ai/sdk" -> Anthropic SDK details
Inputs: package_name (required).
npm_package_readmeGet npm Package READMEARead-onlyIdempotent
Get the README content of an npm package.
Returns the package's README markdown content, which typically includes installation instructions, usage examples, API documentation, and configuration options.
Args:
package_name (string): The npm package name
Returns: README content in markdown format. Large READMEs are truncated to 25000 characters with a notice.
Examples:
"zod" -> Zod README with schema validation examples
"express" -> Express README with routing examples
Inputs: package_name (required).
npm_package_scoreGet npm Package ScoreARead-onlyIdempotent
Get quality, popularity, and maintenance scores for an npm package from npms.io.
Provides detailed metrics including download counts, GitHub stars, test coverage indicators, and release frequency.
Args:
package_name (string): The npm package name
Returns: Comprehensive scoring breakdown:
Overall score (0-100%)
Quality score: carefulness, tests, health, branding
Popularity: community interest, downloads, dependents
Maintenance: release frequency, commit frequency, open issues
GitHub stats: stars, forks, issues
Download statistics
Examples:
"react" -> High scores across all categories
"lodash" -> Well-maintained with high popularity
Inputs: package_name (required).
npm_package_typesCheck npm Package TypeScript SupportARead-onlyIdempotent
Check whether an npm package ships TypeScript type definitions.
Detects bundled types from three sources (in priority order):
typesfieldtypingsfieldexportsmap with atypescondition (modern conditional exports)
Also checks for a DefinitelyTyped (@types/) companion package when no
bundled types are found, and surfaces typesVersions (TS-version-specific
type maps) when present.
Args:
package_name (string): The npm package name
version (string, optional): Specific version to check (defaults to latest)
Returns markdown with:
Whether bundled types are present and which field declared them
Type-definitions entry path
Number of subpaths typed via
exports(when applicable)Whether a
typesVersionsmap is declaredWhether @types/ exists on DefinitelyTyped, plus its latest version
An install command when @types is needed
Examples:
"express" -> @types/express on DefinitelyTyped
"zod" -> Bundled types (TypeScript-first library)
"react" -> Bundled types via exports/types condition
Inputs: package_name (required), version.
npm_package_versionsList npm Package VersionsARead-onlyIdempotent
List published versions of an npm package with release dates, sorted by most recent first.
Args:
package_name (string): The npm package name
limit (number): Maximum versions to return, 1-100 (default: 20)
Returns: Version list with publish dates, dist-tags, and deprecation notices. Includes:
version number and publish date for each version
dist-tags annotation (latest, next, beta, etc.)
deprecation warnings where applicable
total version count
Examples:
"react" -> Lists recent React versions with dates
"typescript", limit=5 -> Last 5 TypeScript releases
Inputs: package_name (required), limit.
npm_searchSearch npm PackagesARead-onlyIdempotent
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
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct aspect of npm packages: dependencies, metadata, readme, scores, types, versions, and registry search. No two tools overlap in purpose.
Six tools follow the pattern 'npm_package_<action>', but one uses 'npm_search' instead of 'npm_package_search'. This minor inconsistency does not hinder understanding.
Seven tools cover the essential operations for an npm info server without being excessive. The scope is well-defined and each tool serves a clear function.
The tool set provides comprehensive coverage of npm package information: metadata, versions, readme, dependencies, type definitions, quality scores, and registry search. No obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that gives your AI access to the source code and docs of all public github repos
Web search API and MCP server for developers building AI agents.
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.34 npm46MIT
- AlicenseAqualityDmaintenanceA TypeScript-aware MCP server that provides coding agents with repository discovery, code intelligence, and web project context for local codebases. It enables deep symbol navigation, diagnostic reporting, and structural analysis of monorepos without requiring full IDE integration.716 npm1MIT
- AlicenseAqualityDmaintenanceMCP server providing npm registry search, package details, dependency auditing, bundle size estimation, and package comparison tools for AI agents.539 npmMIT
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that provides TypeScript type inference and hover information using tsgo, enabling AI agents to get type details, diagnostics, references, and more without needing an editor.8 npm1MIT