search_legislators
Pack: openstates · Endpoint: https://gateway.pipeworx.io/openstates/mcp
Find state legislators. Filter by jurisdiction, name, chamber (upper/lower), party, or district. Returns name, current/prior roles, party, contact details, OpenStates IDs.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
jurisdiction | string | no | 2-letter state code or name |
name | string | no | Name fragment |
org_classification | string | no | upper | lower | legislature |
district | string | no | District identifier |
party | string | no | Party name (e.g., “Democratic”, “Republican”) |
per_page | number | no | 1-50 (default 20) |
page | number | no | 1-based page |
Example call
curl -X POST https://gateway.pipeworx.io/openstates/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_legislators","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"openstates": {
"url": "https://gateway.pipeworx.io/openstates/mcp"
}
}
}
See Getting Started for client-specific install steps.