Openstates logo

Openstates

OpenStates MCP — bills, legislators, votes in all 50 US states

Install Openstates

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "openstates": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-openstates"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

7/7 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @pipeworx/mcp-openstates (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.6kPackage downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.

From the project README

@pipeworx/openstates

OpenStates v3 MCP — bills, legislators, votes in all 50 US states.

Part of Pipeworx — an MCP gateway connecting AI agents to 1819+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

  • search_bills(jurisdiction, query?, session?, classification?, sponsor?, sort?, per_page?, page?)
  • get_bill(openstates_id?, jurisdiction?, session?, identifier?)
  • search_legislators(jurisdiction?, name?, org_classification?, district?, party?, per_page?, page?)
  • get_legislator(person_id)

Auth

Data source

https://v3.openstates.org — header X-API-KEY.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

config.json
{
  "mcpServers": {
    "openstates": {
      "url": "https://gateway.pipeworx.io/openstates/mcp"
    }
  }
}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/openstates/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

config.json
{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1819+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

Terminal
curl -X POST https://gateway.pipeworx.io/v1/tools/openstates_search_bills \
  -H 'Content-Type: application/json' \
  -d '{"jurisdiction":"CA","query":"healthcare"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/openstates_search_bills. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:

config.json
{
  "mcpServers": {
    "openstates": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-openstates"]
    }
  }
}

Or run it directly to confirm it starts:

Terminal
npx -y @pipeworx/mcp-openstates

It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call for only this pack's tools — none of the shared meta-tools the gateway connection above adds. Same source, same tools, no ask_pipeworx routing.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

Code
ask_pipeworx({ question: "your question about Openstates data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openstates

Openstates is an MCP server that provides access to bills, legislators, and votes across all 50 US states. Developers can search bills and legislators or retrieve specific bills and legislators through MCP tools, the Pipeworx gateway, HTTP endpoints, or a standalone local stdio package using the OpenStates v3 data source.

Openstates provides tools to search bills, retrieve bills, search legislators, and retrieve legislators. The available tools are search_bills, get_bill, search_legislators, and get_legislator, with filters such as jurisdiction, session, party, district, sponsor, classification, and pagination.

Connect an MCP client to https://gateway.pipeworx.io/openstates/mcp. The endpoint works with clients such as Claude Desktop, Cursor, and Windsurf. You can also run the standalone package locally with the command npx -y @pipeworx/mcp-openstates for a stdio MCP connection.

Authenticate through the gateway with the PLATFORM_OPENSTATES_KEY environment variable, or bring your own OpenStates API key by adding ?_apiKey=<key> after registering at https://openstates.org/account/profile/. The upstream OpenStates API receives the key through the X-API-KEY header.

Yes, call Openstates tools over HTTP at the Pipeworx gateway. For example, POST JSON to https://gateway.pipeworx.io/v1/tools/openstates_search_bills with a body such as {"jurisdiction":"CA","query":"healthcare"}.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenstates AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openstates?style=directory)](https://allmcps.com/mcp/openstates)
HTML Embed
<a href="https://allmcps.com/mcp/openstates"><img src="https://allmcps.com/api/badge/openstates?style=directory" alt="Openstates on AllMCPs" /></a>