size
Pack: bundlephobia · Endpoint: https://gateway.pipeworx.io/bundlephobia/mcp
Bundle size analysis — minified + gzipped, tree-shakeability, dependencies, esm/cjs detection.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
package | string | yes | npm package name (scoped allowed) |
version | string | no | Specific version (default latest) |
record | boolean | no | Record the lookup publicly (default true) |
Example call
curl -X POST https://gateway.pipeworx.io/bundlephobia/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"size","arguments":{}}}'
Response shape
| Field | Type | Description |
|---|---|---|
name | string | Package name |
version | string | Package version |
size | number | Minified size in bytes |
gzip | number | Gzipped size in bytes |
brotli | number | Brotli compressed size in bytes |
dependencyCount | integer | Number of dependencies |
dependencies | array | List of dependencies |
hasJSNext | boolean | Has ES module support |
hasJSModule | boolean | Has CommonJS support |
description | string | Package description |
Full JSON Schema
{
"type": "object",
"description": "Bundle size analysis result from Bundlephobia API",
"properties": {
"name": {
"type": "string",
"description": "Package name"
},
"version": {
"type": "string",
"description": "Package version"
},
"size": {
"type": "number",
"description": "Minified size in bytes"
},
"gzip": {
"type": "number",
"description": "Gzipped size in bytes"
},
"brotli": {
"type": "number",
"description": "Brotli compressed size in bytes"
},
"dependencyCount": {
"type": "integer",
"description": "Number of dependencies"
},
"dependencies": {
"type": "array",
"description": "List of dependencies",
"items": {
"type": "object"
}
},
"hasJSNext": {
"type": "boolean",
"description": "Has ES module support"
},
"hasJSModule": {
"type": "boolean",
"description": "Has CommonJS support"
},
"description": {
"type": "string",
"description": "Package description"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"bundlephobia": {
"url": "https://gateway.pipeworx.io/bundlephobia/mcp"
}
}
}
See Getting Started for client-specific install steps.