usc_search
Pack: us-code · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/usc_search for the schema, then POST the same URL with its arguments for the data.
Search the United States Code by subject to find which statutes are relevant — “wire fraud”, “endangered species take”. Returns matching section headings and their titles; call usc_section for the text. Needs a data.gov API key, which Pipeworx fronts; pass _apiKey to use your own. For a citation you already have, usc_section is keyless and more direct.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Subject matter, e.g. “wire fraud” or “clean water discharge permit”. |
limit | number | no | Maximum results (1-50, default 10). |
Example call
Arguments
{
"query": "wire fraud",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/us-code/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"usc_search","arguments":{"query":"wire fraud","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('usc_search', {
"query": "wire fraud",
"limit": 5
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the us-code pack
{
"mcpServers": {
"us-code": {
"url": "https://gateway.pipeworx.io/us-code/mcp"
}
}
}
See Getting Started for client-specific install steps.