Skip to content
MCP server

Us Elections

Look up US election results by state, county, precinct and House district

Install
Pricing
Freemium
Platforms
API, CLI
Runs
Locally or Remotely
Version
0.2.1
Listing updated
2 days ago

About Us Elections

Us Elections is a freemium MCP server for analytics and data. It can run locally on your machine or as a hosted remote server.

Coverage is uneven, and the README spells it out. President and Senate results come from MIT Election Data and Science Lab at state level for 1976 to 2024. District-by-district House results for the 2020 and 2022 general elections come from the FEC. County detail for the 2024 general election covers 13 states, and precinct detail covers Pennsylvania and Michigan.

Three tools handle it. list_elections tells you which state, year, office and level combinations exist, so call it first. election_results returns candidate rows with party, votes, race total and vote share, plus source, licence and data date. election_race_summary gives totals, winner and margin, summing from county or precinct data when no statewide row exists.

A request with no data returns an error naming the levels that do exist rather than an empty list. States accept postal codes or full names, and offices accept president, senate or house with common synonyms.

Install

Run in a terminal

claude mcp add --transport http us-elections https://gateway.pipeworx.io/us-elections/mcp

Add to Settings → Connectors → Add custom connector

https://gateway.pipeworx.io/us-elections/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "us-elections": {
      "url": "https://gateway.pipeworx.io/us-elections/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "us-elections": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/us-elections/mcp"
    }
  }
}

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

{
  "mcpServers": {
    "us-elections": {
      "serverUrl": "https://gateway.pipeworx.io/us-elections/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "us-elections": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/us-elections/mcp"
    }
  }
}

Configuration

  • PIPEWORX_API_KEYOptional Pipeworx API key. Without it calls are anonymous and capped daily; a free key raises the cap.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

election_results
Candidate-level results for a state, year and office.
election_race_summary
Totals, vote shares, winner and margin for a race.
list_elections
State, year, office and level combinations held in the pack.

What it does

Candidate-level rows
Votes, party, race total and share for a state, year and office.
Race summaries
Totals, winner and margin, one summary per district for House races.
Coverage listing
Shows which combinations and levels the pack holds.
Sourced results
Each row carries source, source URL, licence and data date.
Clear not-found errors
Missing combinations name the levels that do exist.

Good for

  • Compare state Senate results across years
  • Pull county totals for a 2024 race
  • Check House margins by district for 2020 or 2022
  • Cite election data with its licence and source

Pricing

Freemium, from $49 a month

Anonymous 50 calls/day, free account 200/day; paid from $49/month or pay as you go

Prices change. Check pipeworx.io before you buy.

Us Elections FAQ

Do I need an API key?

No. The registry says an optional Pipeworx key raises the daily cap; without one calls are anonymous and capped daily.

How far back does it go?

State-level President and Senate returns run from 1976 to 2024.

Is precinct data available?

The README lists precinct returns for Pennsylvania and Michigan in the 2024 general election.

What licence covers the data?

The README gives CC0 for the MEDSL returns and public domain for the FEC House results.

Is Us Elections free?

Us Elections has a free plan, with paid plans for more usage or features. Paid plans start at $49 a month.

How do I add Us Elections to Claude Code?

Run this command in your terminal: claude mcp add --transport http us-elections https://gateway.pipeworx.io/us-elections/mcp

What are the best alternatives to Us Elections?

The closest alternatives to Us Elections are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

Alternatives to Us Elections

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  4. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  5. CompanyData

    MCP server

    Search and enrich company records from official registers via the CompanyData API

    • 3 tools
    • Remote
    • Paid
    • 3 GitHub stars
    • Analytics and data
  6. New York LLC publication rules, deadline, county prices, clerks and notice text

    • 8 tools
    • Remote
    • Free
    • Legal and government