{
  "info": {
    "name": "Npm — mcp.ai",
    "description": "REST API for the Npm MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/npm",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "npm_delete_user_token_legacy",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/user/token/legacy",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "user",
            "token",
            "legacy"
          ]
        },
        "description": "Tool to delete a user authentication token using the legacy endpoint. Use when you need to revoke or remove a specific token from the npm registry.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"token\": \"\",\n  \"npm_otp\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_all_packages_download_point",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/all/packages/download/point",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "all",
            "packages",
            "download",
            "point"
          ]
        },
        "description": "Get total npm registry download statistics for all packages for a specified time period. Returns aggregate download counts across the entire npm registry with start/end dates. Supports preset periods ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"period\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_download_counts_point",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/download/counts/point",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "download",
            "counts",
            "point"
          ]
        },
        "description": "Get npm package download statistics for a specified time period. Returns total download counts with start/end dates for single packages, scoped packages, or bulk queries (up to 128 packages). Supports",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"period\": \"\",\n  \"package\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_download_counts_range_package",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/download/counts/range/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "download",
            "counts",
            "range",
            "package"
          ]
        },
        "description": "Tool to get download counts for an npm package over a specified date range. Use when you need historical daily download data.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"end\": \"\",\n  \"start\": \"\",\n  \"package\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_download_range_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/download/range/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "download",
            "range",
            "all"
          ]
        },
        "description": "Tool to get daily download counts for all npm packages over a specified period. Use when you need aggregate download statistics across the entire npm registry.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"period\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_registry_changes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/registry/changes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "registry",
            "changes"
          ]
        },
        "description": "Tool to get a stream of registry changes for replication purposes. Returns CouchDB-style change feed for following registry updates.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"since\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_registry_meta",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/registry/meta",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "registry",
            "meta"
          ]
        },
        "description": "Retrieves npm registry metadata via meta endpoints. Use 'ping' to verify registry connectivity or 'whoami' to get the authenticated username.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"endpoint\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_get_version_downloads",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/version/downloads",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "version",
            "downloads"
          ]
        },
        "description": "Tool to get download counts for specific versions of a package over the last 7 days. Use when you need to understand which versions are most popular.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"package\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_query_bulk_security_advisories",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/query/bulk/security/advisories",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "query",
            "bulk",
            "security",
            "advisories"
          ]
        },
        "description": "Tool to bulk query security advisories for multiple npm packages. Use when you need to check vulnerability information for multiple packages and versions at once.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"packages\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_registry_get_package",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/registry/get/package",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "registry",
            "get",
            "package"
          ]
        },
        "description": "Tool to fetch metadata for a specified npm package. Use after confirming the exact package name, including scope. Responses can be large; prefer reading top-level fields like 'dist-tags', 'description",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"package\": \"\",\n  \"version\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_registry_get_root",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/registry/get/root",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "registry",
            "get",
            "root"
          ]
        },
        "description": "Fetches npm registry root metadata including total package count and update sequence. Returns database statistics from the npm replication service. No parameters required. Use this to get current regi",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "npm_registry_search_packages",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/registry/search/packages",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "registry",
            "search",
            "packages"
          ]
        },
        "description": "Tool to search for packages in the npm registry. Use when you need to find packages matching a search term. Results are returned in an 'objects' array; each element contains package metadata under a '",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"size\": 0,\n  \"text\": \"\",\n  \"offset\": 0,\n  \"quality\": 0,\n  \"popularity\": 0,\n  \"maintenance\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}