GovInfo
live GovernmentLegalFull text of US government publications — laws, CFR, Federal Register, hearings, public laws. Reuses your data.gov key.
5 tools
0ms auth
free tier 50 calls/day
Tools
list_collections Available GovInfo collections.
No parameters required.
Try it
Response
search_packages
required: query Full-text search across GovInfo.
Parameters
Name Type Description
query req string Free-text collections opt string Comma-separated collection codes congress opt number Congress number date_from opt string YYYY-MM-DD date_to opt string YYYY-MM-DD page_size opt number 1-100 offset_mark opt string Cursor Try it
Response
get_package
required: package_id Package metadata.
Parameters
Name Type Description
package_id req string packageId Try it
Response
list_granules
required: package_id Granules within a package.
Parameters
Name Type Description
package_id req string packageId page_size opt number 1-100 offset_mark opt string Cursor Try it
Response
get_granule
required: package_id, granule_id Granule metadata.
Parameters
Name Type Description
package_id req string packageId granule_id req string granuleId Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/govinfo/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' Call a tool
bash
curl -X POST https://gateway.pipeworx.io/govinfo/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_collections","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("list_collections", {}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("full text of us government publications — laws, cfr, federal register, hearings, public laws");