usc_search
Pack: us-code · Endpoint: https://gateway.pipeworx.io/us-code/mcp
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, or use one-click install buttons:
{
"mcpServers": {
"us-code": {
"url": "https://gateway.pipeworx.io/us-code/mcp"
}
}
}
See Getting Started for client-specific install steps.