list_collections

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

List GovInfo collections (BILLS, CFR, USCODE, FR, CHRG, CRPT, HMAN, PLAW, SERIALSET, USCOURTS, etc.) with package counts. Use the collection code with search_packages to filter.

Example call

Arguments

{}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('list_collections', {});

Response shape

Always returns: count, collections

FieldTypeDescription
countnumberTotal number of collections
collectionsarrayList of available GovInfo collections
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of collections"
    },
    "collections": {
      "type": "array",
      "description": "List of available GovInfo collections",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Collection code (e.g., BILLS, CFR)"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Collection name"
          },
          "package_count": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of packages in collection"
          },
          "granule_count": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of granules in collection"
          }
        }
      }
    }
  },
  "required": [
    "count",
    "collections"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026