• DATA
  • ANALYSIS
  • AUDIT
  • HUMAN

How to audit election race results with your AI

Connect the AP Elections API to your agent to pull live, granular data for any specific race. Once connected, your AI handles the data retrieval and comparison.

Ask AI about this page

Short answer

How can I use AI to audit election results?

Your AI uses the AP Elections API to fetch precise vote counts and candidate metrics for specific races. You can then ask it to spot trends, compare performance across precincts, or flag unexpected shifts. This breakdown shows how to move from raw data to actionable audit insights.

Audit outcomes

Where your data lands.

What you get when your AI processes the election data.

DATA

Granular race counts

The AI pulls specific vote totals for every candidate in a race. You get the exact numbers needed for a deep dive into local results.

ANALYSIS

Performance trends

Your agent compares how candidates are performing across different areas. It identifies where support is growing or shrinking.

AUDIT

Anomaly detection

The AI flags unusual shifts in vote counts or unexpected swings in specific precincts. This highlights areas that need a human look.

HUMAN

Manual verification

The AI identifies the specific data points that look suspicious. You then step in to verify those specific numbers against official records.

The workflow

What your AI does when the data arrives.

The AI acts as your data analyst, pulling from the API to build a picture of the election landscape.

  1. Fetch race data

    The AI identifies the specific race you are interested in and pulls the current vote tallies.

    get_race_details
  2. Isolate candidates

    It breaks down the results to show exactly how each candidate is performing in that specific contest.

    get_race_details
  3. Compare precincts

    The agent looks at the granular data to see how results vary between different geographic areas.

    get_race_details
  4. Flag discrepancies

    The AI highlights any data points that deviate from expected patterns or previous trends.

    get_race_details

Try it

Copy these to start.

Use these prompts to begin your audit.

Starting points

Replace the bracketed text with the specific race or candidate you want to investigate.

AP Elections API Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_ErnvmclTpJOBVwbKuP5EHbMHyfPWLqw3gKLX2VWQ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — AP Elections API capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "ap-elections-api-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_ErnvmclTpJOBVwbKuP5EHbMHyfPWLqw3gKLX2VWQ/mcp"
    }
  }
}
Copy into chat04
  • Get the latest vote counts for the [Candidate Name] race.

  • Show me the granular vote breakdown for the [Specific County] precinct.

  • Compare the performance of [Candidate A] and [Candidate B] in the [Race Name] race.

  • Are there any unusual shifts in vote totals for the [Specific Race] in the last hour?

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect AP Elections API once, then ask.

One click connects the API to your client. Your credentials stay encrypted and secure, and you can find the full tool list on the Connector page.

Connect AP Elections API to your AI

FAQ

How this task behaves

  • 01

    Can the AI change the election results?

    No. The AI only reads data from the API. It cannot modify, delete, or influence any official election records.

  • 02

    Does the AI perform the final audit?

    No. The AI identifies patterns and anomalies, but the final verification and decision-making must be done by you.

  • 03

    How granular is the data?

    The AI can access specific candidate performance and vote counts for individual races via the API.

  • 04

    Can I use this with Claude?

    Yes, you can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

  • 05

    How often is the data updated?

    The AI pulls the most recent data available through the AP Elections API at the moment you ask.

  • More questions about AP Elections API? The Connector page answers them. See everything the AP Elections API Connector can do

Connect AP Elections API to Claude, Cursor, ChatGPT & more