MCP Server Studio

Openstates MCP Server MCP server

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

Registry name: io.github.cyanheads/openstates-mcp-server

Publisher
cyanheads
Runs
Local or hosted
Package
npm
Version
0.5.0
Category
Search & knowledge
Updated
2026-11-21

Source code on GitHub

Set up Openstates MCP Server (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openstates-mcp-server@0.5.0"
      ],
      "env": {
        "OPENSTATES_API_KEY": "<OPENSTATES_API_KEY>",
        "OPENSTATES_DAILY_REQUEST_BUDGET": "<OPENSTATES_DAILY_REQUEST_BUDGET>",
        "OPENSTATES_REQUEST_TIMEOUT_MS": "<OPENSTATES_REQUEST_TIMEOUT_MS>",
        "OPENSTATES_TOTAL_REQUEST_BUDGET_MS": "<OPENSTATES_TOTAL_REQUEST_BUDGET_MS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add openstates-mcp-server -e OPENSTATES_API_KEY='<OPENSTATES_API_KEY>' -e OPENSTATES_DAILY_REQUEST_BUDGET='<OPENSTATES_DAILY_REQUEST_BUDGET>' -e OPENSTATES_REQUEST_TIMEOUT_MS='<OPENSTATES_REQUEST_TIMEOUT_MS>' -e OPENSTATES_TOTAL_REQUEST_BUDGET_MS='<OPENSTATES_TOTAL_REQUEST_BUDGET_MS>' -e MCP_LOG_LEVEL='<MCP_LOG_LEVEL>' -- npx -y @cyanheads/openstates-mcp-server@0.5.0

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openstates-mcp-server@0.5.0"
      ],
      "env": {
        "OPENSTATES_API_KEY": "<OPENSTATES_API_KEY>",
        "OPENSTATES_DAILY_REQUEST_BUDGET": "<OPENSTATES_DAILY_REQUEST_BUDGET>",
        "OPENSTATES_REQUEST_TIMEOUT_MS": "<OPENSTATES_REQUEST_TIMEOUT_MS>",
        "OPENSTATES_TOTAL_REQUEST_BUDGET_MS": "<OPENSTATES_TOTAL_REQUEST_BUDGET_MS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "openstates-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openstates-mcp-server@0.5.0"
      ],
      "env": {
        "OPENSTATES_API_KEY": "<OPENSTATES_API_KEY>",
        "OPENSTATES_DAILY_REQUEST_BUDGET": "<OPENSTATES_DAILY_REQUEST_BUDGET>",
        "OPENSTATES_REQUEST_TIMEOUT_MS": "<OPENSTATES_REQUEST_TIMEOUT_MS>",
        "OPENSTATES_TOTAL_REQUEST_BUDGET_MS": "<OPENSTATES_TOTAL_REQUEST_BUDGET_MS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openstates-mcp-server@0.5.0"
      ],
      "env": {
        "OPENSTATES_API_KEY": "<OPENSTATES_API_KEY>",
        "OPENSTATES_DAILY_REQUEST_BUDGET": "<OPENSTATES_DAILY_REQUEST_BUDGET>",
        "OPENSTATES_REQUEST_TIMEOUT_MS": "<OPENSTATES_REQUEST_TIMEOUT_MS>",
        "OPENSTATES_TOTAL_REQUEST_BUDGET_MS": "<OPENSTATES_TOTAL_REQUEST_BUDGET_MS>",
        "MCP_LOG_LEVEL": "<MCP_LOG_LEVEL>"
      }
    }
  }
}

Set up Openstates MCP Server (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://openstates.caseyjhand.com/mcp"
      ]
    }
  }
}

Claude Code

Run in your terminal:

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

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "url": "https://openstates.caseyjhand.com/mcp"
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "openstates-mcp-server": {
      "type": "http",
      "url": "https://openstates.caseyjhand.com/mcp"
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "openstates-mcp-server": {
      "serverUrl": "https://openstates.caseyjhand.com/mcp"
    }
  }
}

Settings

NameRequiredWhat it is
OPENSTATES_API_KEYYesOpen States API key from open.pluralpolicy.com. Required to make any API requests.
OPENSTATES_DAILY_REQUEST_BUDGETNoMaximum 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_MSNoPer-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_MSNoWall-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 OPENS…
MCP_LOG_LEVELNoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More search & knowledge MCP servers