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

NameTypeRequiredDescription
querystringyesSearch terms, e.g. “data privacy”, “minimum wage”, “abortion”
statestringno2-letter state abbreviation (e.g. “CA”, “TX”) or “ALL” to search every state. Default “ALL”.
yearnumbernoLegiScan year code: 1 = all years, 2 = current + prior session (default), or a specific year like 2024.
_apiKeystringnoOptional — your own LegiScan API key for higher limits; omit to use the shared Pipeworx key.

Example call

Arguments

{
  "query": "data privacy"
}

curl

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":{"query":"data privacy"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_bills', {
  "query": "data privacy"
});

More examples

{
  "query": "minimum wage",
  "state": "CA",
  "year": 2024
}
{
  "query": "recently introduced bills",
  "state": "CA"
}

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.

Regenerated from source · build September 6, 2026