openstates_get_legislators_by_location
Find every legislator representing a geographic coordinate (latitude/longitude) — state legislators and the federal delegation
How to use it
openstates_get_legislators_by_location is exposed by the Openstates MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the openstates_get_legislators_by_location tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Openstates MCP Server
docker run --rm -e OPENSTATES_API_KEY=your-key -e MCP_TRANSPORT_TYPE=http -p 3010:3010 openstates-mcp-serverOther tools in Openstates MCP Server (15)
, updatedsince, and createdsince date filters for change-tracking
takes OCD person IDs and returns exactly those people, so it needs no jurisdiction alongside it. It resolves the IDs that search results, openstatesgetbill sponsorships, and openstatesgetcommittee memberships hand back — several in one call, since upstream /people accepts id repeatedly and offers no
parameter requests sponsorships, actions, votes, abstracts, versions, and related bills inline — eliminates follow-up openstatesgetbill calls for most research workflows
separates the tiers: "state" is a state legislature, "country" is the US Congress. currentrole.orgclassification does not — it is upper/lower for a US Senator exactly as for a state senator
Fetch full detail for a specific bill by OCD ID or three-part path (jurisdiction + session + billid)
Fetch committee detail by OCD organization ID, with optional membership roster
Fetch full event detail including agenda, participants, and media links
Fetch full metadata for a specific jurisdiction including all legislative sessions and their identifiers
List all 56 jurisdictions (50 states, DC, and 5 US territories) covered by Open States with session identifiers and coverage metadata
Search state legislative bills across all covered US jurisdictions with full-text search, jurisdiction/session filtering, subject tags, and sponsor lookups
List committees for a jurisdiction (experimental — not all states have coverage)
Search hearings, floor sessions, and committee meetings (experimental)
Search state legislators and officials within a jurisdiction by name, chamber, or district, or fetch specific people by OCD person ID
targets a role type: upper (Senate), lower (House/Assembly), executive (governors and executive officials), legislature (every legislator — both chambers merged into one paginated set, all upper members then all lower)
and federalCount report the split, and the rendered text labels each legislator's tier