get_legislator
Pack: openstates · Endpoint: https://gateway.pipeworx.io/openstates/mcp
Fetch a single legislator by OpenStates person ID. Returns biographical info, current roles, prior offices, contact methods, sources.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
person_id | string | yes | OpenStates person ID (e.g., “ocd-person/…”) |
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":"get_legislator","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.