# Npm — MCP server on mcp.ai > Connect your Npm account and use 12 tools for developer tools straight from your AI agent. Connect with your own API key. npm is the default package manager for JavaScript and Node.js, facilitating the sharing and reuse of code, managing dependencies, and streamlining project workflows. By: mcp.ai · official Page: https://mcp.ai/npm ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_npm?ms=1787296080000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/npm/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/npm/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/npm/skill.md Postman collection (v2.1): https://mcp.ai/npm/postman.json ## Tools - npm_delete_user_token_legacy(token: string, npm_otp?: string) — Tool to delete a user authentication token using the legacy endpoint. Use when you need to revoke or remove a specific token from the npm registry. - npm_get_all_packages_download_point(period: string) — Get total npm registry download statistics for all packages for a specified time period. Returns aggregate download counts across the entire npm registry with start/end dates. Supports preset periods - npm_get_download_counts_point(period: string, package: string) — Get npm package download statistics for a specified time period. Returns total download counts with start/end dates for single packages, scoped packages, or bulk queries (up to 128 packages). Supports - npm_get_download_counts_range_package(end: string, start: string, package: string) — Tool to get download counts for an npm package over a specified date range. Use when you need historical daily download data. - npm_get_download_range_all(period: string) — Tool to get daily download counts for all npm packages over a specified period. Use when you need aggregate download statistics across the entire npm registry. - npm_get_registry_changes(limit?: integer, since?: integer) — Tool to get a stream of registry changes for replication purposes. Returns CouchDB-style change feed for following registry updates. - npm_get_registry_meta(endpoint: string) — Retrieves npm registry metadata via meta endpoints. Use 'ping' to verify registry connectivity or 'whoami' to get the authenticated username. - npm_get_version_downloads(package: string) — Tool to get download counts for specific versions of a package over the last 7 days. Use when you need to understand which versions are most popular. - npm_query_bulk_security_advisories(packages: object) — Tool to bulk query security advisories for multiple npm packages. Use when you need to check vulnerability information for multiple packages and versions at once. - npm_registry_get_package(package: string, version?: string) — Tool to fetch metadata for a specified npm package. Use after confirming the exact package name, including scope. Responses can be large; prefer reading top-level fields like 'dist-tags', 'description - npm_registry_get_root() — Fetches npm registry root metadata including total package count and update sequence. Returns database statistics from the npm replication service. No parameters required. Use this to get current regi - npm_registry_search_packages(size?: integer, text: string, offset?: integer, quality?: number, popularity?: number, maintenance?: number) — Tool to search for packages in the npm registry. Use when you need to find packages matching a search term. Results are returned in an 'objects' array; each element contains package metadata under a ' ## Example prompts - "What can I do in Npm?" - "Show me a summary of my Npm account" ## Links Docs: https://mcp.ai/docs/mcps/npm Website: https://mcp.ai/mcps/npm