MCP directory
OM

Openstates Mcp Server

by github.com/cyanheads · v0.5.0 · updated Nov 21, 2026

Search bills, legislators, committees, and events across all 50 US states, DC, and 5 US territories.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://openstates.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http openstates-mcp-server https://openstates.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • OPENSTATES_API_KEYrequired

    Open States API key from open.pluralpolicy.com. Required to make any API requests.

  • OPENSTATES_DAILY_REQUEST_BUDGET

    Maximum upstream Open States requests per rolling 24 hours. Rejects before the request is issued once spent. Defaults to the v3 free-tier daily cap.

  • OPENSTATES_REQUEST_TIMEOUT_MS

    Per-attempt upstream request deadline in milliseconds (minimum 1000). Expiry is non-retryable. Open States answers a scoped query in under a second to ~57s and its gateway gives up near 60s.

  • OPENSTATES_TOTAL_REQUEST_BUDGET_MS

    Wall-clock ceiling in milliseconds for one call across every retry attempt and the backoff between them. Bounds a slow upstream that keeps failing retryably. Must be at least OPENSTATES_REQUEST_TIMEOUT_MS; startup rejects a lower value.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • OPENSTATES_API_KEYrequired

    Open States API key from open.pluralpolicy.com. Required to make any API requests.

  • OPENSTATES_DAILY_REQUEST_BUDGET

    Maximum upstream Open States requests per rolling 24 hours. Rejects before the request is issued once spent. Defaults to the v3 free-tier daily cap.

  • OPENSTATES_REQUEST_TIMEOUT_MS

    Per-attempt upstream request deadline in milliseconds (minimum 1000). Expiry is non-retryable. Open States answers a scoped query in under a second to ~57s and its gateway gives up near 60s.

  • OPENSTATES_TOTAL_REQUEST_BUDGET_MS

    Wall-clock ceiling in milliseconds for one call across every retry attempt and the backoff between them. Bounds a slow upstream that keeps failing retryably. Must be at least OPENSTATES_REQUEST_TIMEOUT_MS; startup rejects a lower value.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers