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
| 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, or use one-click install buttons:
{
"mcpServers": {
"packagephobia": {
"url": "https://gateway.pipeworx.io/packagephobia/mcp"
}
}
}
See Getting Started for client-specific install steps.