Us Elections

liveReference

us-elections -- U.S. election results by county and precinct (fleet #2952).

3tools
0msauth
free tier50 calls/day

Tools

election_results

Candidate-level election results by state/year/office at state, county or precinct granularity.

No parameters required.

▶Try it
election_race_summary

Totals, vote shares, winner and margin for a state/year/office race (one entry per district if applicable).

No parameters required.

▶Try it
list_elections

List available state/year/office/level combinations held in this pack.

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/us-elections/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/us-elections/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"election_results","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("election_results", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("us-elections -- u");