size
Pack: packagephobia · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/size for the schema, then POST the same URL with its arguments for the data.
Return the publish size and full install size (including dependencies) in bytes for an npm package name and optional version via packagephobia.com.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package | string | yes | npm package name (scoped allowed) |
version | string | no | Specific 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
| Field | Type | Description |
|---|---|---|
package | string | npm package name |
version | string | Package version |
installSize | number | Install size in bytes |
publishSize | number | Publish 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 — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the packagephobia pack
{
"mcpServers": {
"packagephobia": {
"url": "https://gateway.pipeworx.io/packagephobia/mcp"
}
}
}
See Getting Started for client-specific install steps.