search_bills
Pack: legiscan · Endpoint: https://gateway.pipeworx.io/legiscan/mcp
Full-text search US state (and federal) legislation to find out what bills are about a given topic. Searches one state or nationwide (ALL) and returns matching bills with number, title, state, last action, and a LegiScan bill_id you can pass to get_bill. Example: search_bills({ query: “data privacy”, state: “CA” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms, e.g. “data privacy”, “minimum wage”, “abortion” |
state | string | no | 2-letter state abbreviation (e.g. “CA”, “TX”) or “ALL” to search every state. Default “ALL”. |
year | number | no | LegiScan year code: 1 = all years, 2 = current + prior session (default), or a specific year like 2024. |
_apiKey | string | no | Optional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key. |
Example call
curl -X POST https://gateway.pipeworx.io/legiscan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_bills","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"legiscan": {
"url": "https://gateway.pipeworx.io/legiscan/mcp"
}
}
}
See Getting Started for client-specific install steps.