Plain Ballot

io.github.n8peace由 GitHub 帳號 n8peace 發布v1.0.0更新於 Nov 4, 2026

按地址檢視美國選民的選票,每位候選人的立場都附有確切引文和來源。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

A U.S. voter's ballot by address, with an exact quote and source behind every candidate position.

發布方自己的服務:Plain Insurance

已驗證Streamable HTTP可網頁執行

概覽

Plain Ballot 的託管 MCP 服務(plainballot.com);無需登入;Streamable HTTP;3 個工具。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

端點
plainballot.com
最近檢查

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Plain Ballot,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.n8peace%2Fplain-ballot/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "plain-ballot": {
      "type": "http",
      "url": "https://plainballot.com/mcp"
    }
  }
}

README

Plain Ballot

Every race on your ballot, matched to what you care about. Every position backed by a quote you can check.

plainballot.com · How it works · The open data · Contribute

[CI] [License: AGPL-3.0] [GitHub stars]

[Plain Ballot]

Who's running, and where do they stand? Pick the issues you care about, set a dial for each, and enter your address. Plain Ballot goes through your ballot and shows who fits you, why, and where that came from. Party labels stay hidden until you ask. No ads, no account, and your address isn’t stored.

Covering every race in California, plus U.S. House and Senate races in all 50 states, for Nov 3, 2026.

Two projects, both free and open:

  • Plain Ballot (this repo): the voter guide.
  • Open Election Data: the research behind it. Every candidate on the same 18 issues, each position with an exact quote and its source, researched by AI agents that have to agree. Free to use, including commercially, under the Open Database License, with a free API.

AI that has to show its work

Chatbots get voting facts wrong. Plain Ballot is built so no single model's word ever reaches a voter.

  • Agents have to agree. Every candidate is researched by independent agents on different models (Claude Code, Codex, GPT-5.6 Luna), each searching and reading on its own. A position is published only when they agree: 2 of 3 with no conflict, or a clear majority of 10 when they don't.
  • Every quote is verified. Each claim carries an exact quote, fetched from its source and matched word for word, or it's thrown out. A nightly job rechecks every published quote.
  • No guessing. An agent not finding a source never counts as a vote. No majority means the issue stays blank, and the ballot says so.
  • Matching isn't AI. It's plain, deterministic arithmetic in your browser (lib/match.ts). Same answers, same ballot, every time.
  • Voters can push back. "Not right?" on any claim files a public issue and reruns the research with fresh agents. Corrections are public.
  • Every change is checked for bias. Three models from different companies review each pull request for loaded wording and one-sided logic, and tests require that matching treats both ends of every dial the same.
  • Every word is public. The dial wording, the agreement rules and every researched position live in Open Election Data; the matching lives here.

Use the data

The research is its own project: Open Election Data. It has a free, static API with no key needed:

bash
curl -s https://n8peace.github.io/open-election-data/v1/divisions/ca/cd-10.json

Use it for anything, including commercial products, under the Open Database License: credit it, and share improvements to the data under the same terms.

Send your agent

Plain Ballot works without a browser. Point any AI agent that supports MCP (Claude, ChatGPT, Cursor and others) at:

https://plainballot.com/mcp

It has three read-only tools:

  • list_issues: the 18 issues and how each side is worded.
  • get_ballot: every researched race for a street address, with each choice's position, the exact quote, and the source.
  • score_fit: how closely each choice fits the priorities the voter gave, using the same arithmetic as the site. No model is involved.

The agent is told the same rules the site follows: stay nonpartisan, quote and link sources, never fill in a missing position, and only score priorities the voter actually stated. Addresses aren't stored.

Prefer plain JSON? GET https://plainballot.com/api/ballot?address=... returns the same ballot, and the research itself is a free static API.

What already exists, and why we still built this

Good sources are already out there, and Plain Ballot learns from them:

  • Ballotpedia is the most complete record of who's running, and the research agents read it. Its bulk data is a paid product, and its pages aren't ours to republish.
  • BallotReady offers candidate issue stances through a paid API for organizations.
  • Vote Smart collects positions through its Political Courage Test, a survey candidates fill in, along with voting records and ratings.
  • Google Civic and Democracy Works cover who's on the ballot and how to vote.

What we couldn't find was a free, open dataset of where candidates stand, with a checkable quote behind every position, with every candidate on the same issues so they can be compared, and free for anyone to reuse. So we built one: Open Election Data. Every claim still comes from the candidate's own words: agents follow a summary back to the candidate's site, voting record or interview and quote that.

Research your state

The research runs on your own Claude or ChatGPT plan, so anyone can add coverage without paying for API credits. It happens in Open Election Data, which has an open "research your state" issue for each state.

Run it locally

bash
npm installcp .env.example .env.localnpm run dev                        # http://localhost:3000

Without keys, it runs on a fictional sample ballot and the dials still work. Researched races come from the open data's API (set ELECTION_DATA_DIR to a local checkout's data/positions to work offline). Keys turn on typed priorities (AI_GATEWAY_API_KEY), real ballot lookup (GOOGLE_CIVIC_API_KEY) and address suggestions (GOOGLE_PLACES_API_KEY).

bash
npm test               # matching, neutrality, sharing, abuse limitsnpm run eval           # does the AI put people on the right side of each dial? (calls the model)npm run check:issues   # dial wording matches the research data

How it's built

Next.js on Vercel. The Census geocoder finds a voter's districts. Researched races come from the Open Election Data API, matched to voters by district. BotID, rate limits and a spending cap protect the paid endpoints (docs/security.md). The full picture, with a diagram: docs/ARCHITECTURE.md. Coding with an AI agent? Point it at AGENTS.md.

Contributing

The most useful help is research and checking research, and neither needs code. See CONTRIBUTING.md, or open a ready-to-run copy in your browser:

[Open in GitHub Codespaces]

License

AGPL-3.0. Anyone can run their own copy, but a hosted copy has to publish its changes, so nobody can quietly run a biased version.

Star history

[Star history]

來源:README.md,提交 da96633

工具

3

list_issues

List the issues

The 18 issues Plain Ballot tracks. Each has two sides, each worded the way its own supporters would say it. Use the short side labels ("l" and "r") when giving priorities to score_fit.

無需輸入參數。

get_ballot

Get a ballot

Every researched race on the ballot for a U.S. street address, with each choice's position on the issues that office decides, the exact quote, and the source URL.

輸入參數address必填

score_fit

Score fit with the voter's priorities

How closely each choice on the voter's ballot fits the priorities the voter stated, from 0 to 100. Plain arithmetic, the same as plainballot.com: issues where a choice has no sourced position are left out, never guessed. Only use priorities the voter actually gave you.

輸入參數address必填priorities必填

版本歷史

1
  1. v1.0.0最新Nov 4, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Plain 整合