JSDelivr

liveDeveloper

CDN package stats, file listing, version resolution for npm + GitHub. Keyless.

6tools
0msauth
free tier50 calls/day

Tools

npm_package_statsrequired: package_name

Request counts + bandwidth for an npm package served via JSDelivr.

Parameters
NameTypeDescription
package_namereqstring—
periodoptstring—
▶Try it
gh_repo_statsrequired: owner, repo

Return JSDelivr CDN request count and bandwidth for files served from a GitHub owner/repo for the specified period (day/week/month/quarter/year).

Parameters
NameTypeDescription
ownerreqstring—
reporeqstring—
periodoptstring—
▶Try it
top_npm_packages

JSDelivr leaderboard of top-served npm packages.

Parameters
NameTypeDescription
periodoptstring—
byoptstring—
limitoptnumber—
▶Try it
list_npm_filesrequired: package_name

jsDelivr Data API — the file tree of one published npm package version (latest by default) as jsDelivr indexes it for CDN delivery. Returns the directory structure with each file's path, byte size, co

Parameters
NameTypeDescription
package_namereqstring—
versionoptstring—
▶Try it
resolve_versionrequired: package_name

Resolve a semver range or tag to a concrete published version.

Parameters
NameTypeDescription
package_namereqstring—
rangeoptstring—
▶Try it
list_npm_versionsrequired: package_name

All published versions for an npm package.

Parameters
NameTypeDescription
package_namereqstring—
▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/jsdelivr/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/jsdelivr/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"npm_package_stats","arguments":{"package_name": "example"}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("npm_package_stats", {"package_name":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("cdn package stats, file listing, version resolution for npm + github");