npm MCP server for AI agents

Let Claude, ChatGPT or your own agent read npm: 3 typed functions through one MCP server. No npm API key needed.

Functions
3
Sign-in
Not needed
Works with
MCP, HTTP, Node, Python

Connect

Just npm

An MCP server for npm alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.

https://api.bowmark.ai/mcp/site/npmjs
Every site

One MCP server for npm and every other site Bowmark covers. Your agent looks up what it needs and calls it.

https://api.bowmark.ai/mcp
Set it up in your client

Both need a Bowmark API key. The quickstart gets you one and a first result in a few minutes.

Functions

Open a function to see its arguments, what it returns and how to call it.

Read 3
  • getDownloadsReturns a package's real download count off npmjs.com's own public download-counts API.

    Arguments

    NameTypeRequired
    packageNamestringYes
    periodstringNo

    Returns npmjsDownloads

    interface npmjsDownloads {
      package: string;
      downloads: number;
      start: string;  // ISO date
      end: string;    // ISO date
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/npmjs/getDownloads

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.npmjs.getDownloads("react", "last-week");
  • getPackageInfoOne package's metadata straight off the npm registry (registry.npmjs.org/<package>): every published version, its dist-tags, and for the requested…

    Arguments

    NameTypeRequired
    packageNamestringYes
    versionstringNo

    Returns npmjsPackageInfo

    interface npmjsPackageInfo {
      name: string;
      description: string | null;
      distTags: Record<string, string>;  // dist-tags, e.g. { latest: "1.3.0" }
      versions: string[];                // every published version, oldest first
      created: string | null; modified: string | null;  // ISO-8601
      version: string;                   // the version the fields below describe
      publishedAt: string | null;
      license: string | null;
      deprecated: string | null;         // the deprecation message, if any
      dependencies: Record<string, string>;
      devDependencies: Record<string, string>;
      peerDependencies: Record<string, string>;
      dist: { tarball: string; shasum: string | null; integrity: string | null; fileCount: number | null; unpackedSize: number | null };
      repository: string | null;
      homepage: string | null;
      maintainers: { name: string; email: string | null }[];
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/npmjs/getPackageInfo

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.npmjs.getPackageInfo("left-pad");

Use it from code