OpenStates
liveGovernmentLegislatureBills, legislators, votes in all 50 US states. Closes the federal-vs-state gap left by congress / propublica-congress.
Tools
search_billsrequired: jurisdictionSearch bills in any US statehouse. Pass jurisdiction as a 2-letter state code (e.g., "CA", "NY", "TX") or full name. Returns bill identifiers, titles, classifications, last action, sponsors, and OpenS
jurisdictionreqstring2-letter state code or namequeryoptstringFree-text searchsessionoptstringSession IDclassificationoptstringbill | resolution | etc.sponsoroptstringSponsor namesortoptstringSort orderper_pageoptnumber1-50pageoptnumber1-based pageTry it
get_billFetch a single bill with full detail: versions, sponsorships, related/companion bills, actions, and votes. Pass the OpenStates ID (e.g., "ocd-bill/abc...") or a state/session/identifier triple.
openstates_idoptstringOpenStates bill IDjurisdictionoptstringState codesessionoptstringSession IDidentifieroptstringBill identifier (e.g., "AB-123")Try it
search_legislatorsFind state legislators. Filter by jurisdiction, name, chamber (upper/lower), party, or district. Returns name, current/prior roles, party, contact details, OpenStates IDs.
jurisdictionoptstringState code or namenameoptstringName fragmentorg_classificationoptstringupper | lower | legislaturedistrictoptstringDistrict IDpartyoptstringParty nameper_pageoptnumber1-50pageoptnumber1-based pageTry it
get_legislatorrequired: person_idFetch a single legislator by OpenStates person ID. Returns biographical info, current roles, prior offices, contact methods, sources.
person_idreqstringOpenStates person IDTry it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/openstates/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/openstates/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_bills","arguments":{"jurisdiction": "example"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_bills", {"jurisdiction":"example"});// Or ask in plain English:
const answer = await px.ask("bills, legislators, votes in all 50 us states");