size

Pack: packagephobia · Endpoint: https://gateway.pipeworx.io/packagephobia/mcp

Return the publish size and full install size (including dependencies) in bytes for an npm package name and optional version via packagephobia.com.

Parameters

NameTypeRequiredDescription
packagestringyesnpm package name (scoped allowed)
versionstringnoSpecific version (default latest)

Example call

Arguments

{
  "package": "react"
}

curl

curl -X POST https://gateway.pipeworx.io/packagephobia/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"size","arguments":{"package":"react"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('size', {
  "package": "react"
});

More examples

{
  "package": "@babel/core",
  "version": "7.23.0"
}

Response shape

FieldTypeDescription
packagestringnpm package name
versionstringPackage version
installSizenumberInstall size in bytes
publishSizenumberPublish size in bytes
Full JSON Schema
{
  "type": "object",
  "properties": {
    "package": {
      "type": "string",
      "description": "npm package name"
    },
    "version": {
      "type": "string",
      "description": "Package version"
    },
    "installSize": {
      "type": "number",
      "description": "Install size in bytes"
    },
    "publishSize": {
      "type": "number",
      "description": "Publish size in bytes"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "packagephobia": {
      "url": "https://gateway.pipeworx.io/packagephobia/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026