MCP Server Studio
Search bills, legislators, committees, and events across all 50 US states, DC, and 5 US territories.
Registry name: io.github.cyanheads/openstates-mcp-server
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>"
}
}
}
}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.0Add 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>"
}
}
}
}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>"
}
}
}
}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>"
}
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"openstates-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://openstates.caseyjhand.com/mcp"
]
}
}
}Run in your terminal:
claude mcp add --transport http openstates-mcp-server https://openstates.caseyjhand.com/mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"openstates-mcp-server": {
"url": "https://openstates.caseyjhand.com/mcp"
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"openstates-mcp-server": {
"type": "http",
"url": "https://openstates.caseyjhand.com/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"openstates-mcp-server": {
"serverUrl": "https://openstates.caseyjhand.com/mcp"
}
}
}| Name | Required | What it is |
|---|---|---|
OPENSTATES_API_KEY | Yes | Open States API key from open.pluralpolicy.com. Required to make any API requests. |
OPENSTATES_DAILY_REQUEST_BUDGET | No | 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 | No | 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 | No | 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 OPENS… |
MCP_LOG_LEVEL | No | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |