L'Atlas / MCP servers / ElectionsMCP
MCP server

ElectionsMCP

com.electionsmcp/electionsmcp

MCP server OK 48 tools

Get a review See pricing

Model and map any 2028 U.S. race down to the precinct: scenarios, swing, turnout, and roll-ups.

Technical sheet

Author
electionsmcp.com (registry namespace)
Repository
—
Site
www.electionsmcp.com
Version
0.2.0
Transport
Streamable HTTP SSE
Authentication
None (observed by our test)
Server address
https://www.electionsmcp.com/mcp Streamable HTTP
https://www.electionsmcp.com/sse SSE
Tools
48
Categories
Maps, places and weather
Last updated
26 Sept 2026
Published
26 Sept 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 4 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/com.electionsmcp/electionsmcp.svg?lang=en)](https://latlas.dev/en/mcp/com.electionsmcp/electionsmcp)
HTML
<a href="https://latlas.dev/en/mcp/com.electionsmcp/electionsmcp"><img src="https://latlas.dev/badge/statut/mcp/com.electionsmcp/electionsmcp.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/com.electionsmcp/electionsmcp.svg?lang=en)](https://latlas.dev/en/mcp/com.electionsmcp/electionsmcp)
HTML
<a href="https://latlas.dev/en/mcp/com.electionsmcp/electionsmcp"><img src="https://latlas.dev/badge/fiche/com.electionsmcp/electionsmcp.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://www.electionsmcp.com/mcp
Last result
OK 28 Nov 2026, 09:26
Response time
1,994 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
electionsmcp 1.0.0
Tools
48

Address
https://www.electionsmcp.com/sse
Last result
OK 28 Nov 2026, 10:30
Response time
2,043 ms (initialize + tools/list)
Protocol version
2024-11-05
Announced name
electionsmcp 1.0.0
Tools
48

History

DateAddressResultResponseTools
28 Nov 2026, 10:30www.electionsmcp.com/sseOK2,043 ms48
28 Nov 2026, 09:26www.electionsmcp.com/mcpOK1,994 ms48

Exposed tools (48, from tools/list, 28 Nov 2026)

resolve_geography

Turn a place name or shorthand into its canonical geo_id — resolve natural-language or structured location input. Handles "CA-03"/"NC-4" (congressional districts), bare state names/abbreviations, " County…

ParameterTypeRequiredDescription
querystringyes"CA-03", "El Dorado County CA", "the 4th state senate district in California", "Pennsylvania"
yearintegernoDisambiguates post-redistricting boundaries; defaults to current cycle.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

resolve_candidate

WHO holds or runs for WHAT — turn a candidate/officeholder name into their seat + next race. Given a name (full, last-name, or a registry alias — "Lauren Boebert", "Boebert"), returns the person(s) who match with their…

ParameterTypeRequiredDescription
namestringyesA candidate or officeholder name — full ("Lauren Boebert"), last-name ("Boebert"), or any registry alias. Matching folds free-typed names onto the canonical person.
partystringnoOptional — keep only matches of this party (D/R/I), normalized by leading letter. For a stage/party-scoped picker.
officestringnoOptional — keep only matches whose current OR next-race office matches (house, senate, governor, state_senate, state_assembly, …); the "us_" prefix is optional ("house" == "us_house").
cycleintegernoOptional — keep only matches whose next_race is in this cycle (e.g. 2026).
limitintegernoMax people to return when a name is ambiguous (default 8).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

search_candidates

BROWSE the canonical candidate registry WITHOUT a name — the nameless companion to resolve_candidate (which requires a name). Filter the registry of canonical people by party, office, and/or a name substring:…

ParameterTypeRequiredDescription
partystringnoOptional — only this party (D/R/I/L/G), normalized by leading letter.
officestringnoOptional — match the registry office label. Keywords president / senate / house / governor are normalized; anything else is a case-insensitive substring on the label. The "us_" prefix is ignored.
qstringnoOptional — case-insensitive substring on the candidate name or any alias (typeahead).
limitintegernoMax results (default 50). `total` reports the full match count; `truncated:true` when the list was trimmed.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

lookup_address

Resolve a US street address, ZIP, state, or U.S. House district and show workspace campaigns covering the result. Street addresses return a geocoded point and containing districts, with a precinct when coverage exists.…

ParameterTypeRequiredDescription
addressstringyesA full street address ("123 Main St, Dallas, TX"), a 5-digit ZIP, a district code ("NC-4", "AK-AL"), a state name/abbreviation, or a canonical state/House geography ID.
include_officialsbooleannoAttach the sitting officeholder for each resolved seat (from the committed legislator file).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_contests

Discover contests for a geography and election cycle. Filter general, primary (dem_primary/rep_primary), or all stages; count describes the returned top-level rows. National presidential primaries are discoverable in…

ParameterTypeRequiredDescription
geo_idstringyes"us" (national), a state as "us-pa" / postal "PA" / FIPS "42", or a district id — all accepted.
cycleintegernoDefaults to the next election year from today.
stageenum: "primary" | "general" | "all"noprimary selects the dem_primary and rep_primary variants; general excludes them; all returns both.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

election_calendar

The election planning calendar. National form ({cycle}) returns federal contests, governors and by_state office lists; state form ({state,cycle}) returns a four-year horizon. Other statewide executive offices use the…

ParameterTypeRequiredDescription
statestringnoPostal abbreviation ("PA") for the per-state 4-year horizon; omit for the national summary.
cycleintegernoDefaults to the next election year from today.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_performance

Set a candidate's vote share, such as the Democratic candidate to 54%, in one specific county, district, state, or precinct (the general-election override). Routes a county/state/district geo_id to a feature override…

ParameterTypeRequiredDescription
expected_versionstringnoOptional optimistic-concurrency token: the scenario updated_at you last read. If the scenario changed since, the write is refused with version_conflict + the current token instead of overwriting concurrent edits.
simulation_idstringno
total_votesintegernoExplicit vote volume for a custom campaign city or reviewed precinct. Use level:"custom" and geo_id from get_campaign_vote_data. A precinct requires its own total; source-election turnout is never copied automatically.
scenario_idstringyesThe simulation_id (scenario_id alias until the scenario model lands).
geo_idstringyes
sharesobjectyescandidate_id → share. Accepts 0–1 or 0–100.
turnoutnumberno0–1 expected turnout (stored as metadata on precinct overrides).
marginnumbernoShorthand for two-candidate D−R margin in points; sets D/R shares around 50.
rebalanceenum: "undecided" | "proportional"no
levelenum: "custom" | "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" …noEM-136: explicit office for the override. A bare state geo (us-pa) otherwise defaults to senate — pass level to target president or governor instead (president is stored as a state-level aggregate that roll_up_race and get_view honor). For a district geo it must match the geo grain. tk_3c0569e9b025…
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

target_precincts

Return structured precinct model rows: precinct_id, name, county, county_fips, baseline_share, modeled_share, ballots_est, overridden, and gap_to_goal. The response does not include demographic columns or demographic…

ParameterTypeRequiredDescription
scenario_idstringyesThe scenario/simulation handle (EM-056: simulation_id is accepted as an alias).
geo_idstringnoDistrict or state geography — accepts the resolve_geography slug ("us-pa"), postal ("PA"), or FIPS ("42") (EM-056). Defaults to the simulation's race_scope geography.
goal_modeenum: "plurality" | "majority" | "share"noplurality = beat the leading opponent (default); majority = 50.01% share; share = explicit target_pct.
marginnumbernoplurality: win by at least this many votes.
target_pctnumberno
candidate_idstringno
contextstringnoFree-text constraints, echoed back (e.g. "field ops in Orange and Durham only").
filterobjectnoPrecinct property → condition map within the requested geography. Properties: external_id, GEOID, name, state, county, county_fips, shape_id, votes_dem, votes_rep, votes_total, pct_dem_lead, official_boundary, lat, lng, population, mhi, median_home, pct_bachelors, pct_foreign_born, unemp_pct, media…
limitintegerno
offsetintegernoPage start; pass next.offset from the prior result with the same scope and filters.
rolloff_ratenumbernoExplicit roll-off rate (see compute_vote_goal).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

create_scenario

Create a new Scenario (a modeled path) — optionally inside a Race and seeded from a contest_id or an existing scenario (import_from). Seeds an immutable baseline version (v1). Returns scenario_id + version_id. (A…

ParameterTypeRequiredDescription
namestringyes
baseline_idstringnoOptional explicit source pin. Only 2024_president_mixed_grain is currently selectable. Known county sources return baseline_selection_unavailable; unreconciled sources return baseline_not_model_eligible; unknown IDs return unknown_baseline. No source is silently substituted.
campaign_idstringnoCustom campaign to model inside its exact attached city boundary.
expected_campaign_revisionintegerno
boundary_versionstringno
idempotency_keystringnoOptional workspace-scoped retry key for listed races; required for custom campaign models. Identical retries return the same scenario and baseline version. Reusing a key with different creation inputs returns idempotency_conflict.
race_idstringnoOptional; the Race this scenario belongs to.
contest_idstringnoOptional; sets the scenario's race_scope from a canonical contest_id.
import_fromstringnoOptional; copy overrides+candidates from an existing scenario_id.
tagsarray<string>no
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_view

Read the exact map/view state the application renders for a canonical scenario: headline totals, selected geography, modeled feature colors, annotations, primary-calendar playhead, candidate roster, presence, and a…

ParameterTypeRequiredDescription
version_idstringnoExact saved version for a custom city model.
expected_version_hashstringno
simulation_idstringyes
campaign_id_astringnoOptional campaign custody for A when the model belongs to multiple readable campaigns. Does not grant access.
campaign_id_bstringnoOptional campaign custody for B when the model belongs to multiple readable campaigns. Does not grant access.
version_astringnoDifference comparison: exact saved version of A. Omit only when its latest version matches the live model.
version_bstringnoDifference comparison: exact saved version of B. Omit only when its latest version matches the live model.
expected_hash_astringnoOptional expected immutable version hash for A; mismatches refuse.
expected_hash_bstringnoOptional expected immutable version hash for B; mismatches refuse.
compare_simulation_idstringnoCompare B against simulation_id (A), using D-minus-R margin(B) minus margin(A). Requires one explicit state and county/precinct grain; both saved general-election models must share office/cycle/electorate and be readable.
difference_scale_ppnumbernoDifference-only symmetric color extent: legend runs from negative this value through zero to positive this value. Omit to fit the largest absolute delta; out-of-scale values are disclosed as clamped.
viewenum: "result" | "difference"nodifference uses compare_simulation_id as B and simulation_id as A; returns the zero-centered B-minus-A color scale and exact county/precinct rows.
levelenum: "custom" | "president" | "senate" | "house" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" …noWhich map the view renders. Default president (or whatever set_view last scoped). house = HOUSE CONTROL (per-state delegation winners + the 218 banner); state_senate/state_assembly = one state's chamber (state required).
statestringnoOptional postal code or 2-digit FIPS — scope the map to one state. president → its county breakdown; senate/governor/exec → that RACE's local county (default) or precinct features from its own overrides (each with modeled margin, baseline_margin, and a basis label: direct_override | county_override…
grainenum: "city" | "county" | "precinct"noWith a state scoped, the grain of the local features returned: "county" (default) or "precinct". Applies to a statewide-level race (senate/governor/exec — its own overrides) AND to a PRIMARY sim scoped to a state (its per-county/precinct share-leader map from primary.feature_shares — mirroring rend…
cycleintegerno
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

render_view

A headless server-rendered IMAGE of the map — the rendered view a viewer sees, as SVG or PNG, WITHOUT a browser (tk_0b6d3501 P2). For a scenario + level (president | senate | house | governor | the execs) it draws the…

ParameterTypeRequiredDescription
simulation_idstringyes
campaign_id_astringnoOptional campaign custody for A when the model belongs to multiple readable campaigns. Does not grant access.
campaign_id_bstringnoOptional campaign custody for B when the model belongs to multiple readable campaigns. Does not grant access.
version_astringnoDifference comparison: exact saved version of A. Omit only when its latest version matches the live model.
version_bstringnoDifference comparison: exact saved version of B. Omit only when its latest version matches the live model.
expected_hash_astringnoOptional expected immutable version hash for A; mismatches refuse.
expected_hash_bstringnoOptional expected immutable version hash for B; mismatches refuse.
compare_simulation_idstringnoCompare B against simulation_id (A), using D-minus-R margin(B) minus margin(A). Requires one explicit state and county/precinct grain; both saved general-election models must share office/cycle/electorate and be readable.
difference_scale_ppnumbernoDifference-only symmetric color extent: legend runs from negative this value through zero to positive this value. Omit to fit the largest absolute delta; out-of-scale values are disclosed as clamped.
comparison_layoutenum: "difference" | "triptych"noDifference-only 1200x630 card: one B-minus-A map (default), or the same-grain A | B | B-minus-A maps with explicit legends.
levelenum: "president" | "senate" | "house" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer"noWhich map to render. Default president. house = HOUSE CONTROL: states shaded by delegation majority, D/R seat tally, 218 banner (for one state's district map use grain:"house" with a state scope instead).
layersobjectnoDraw saved highlight annotations on matching visible geography. Omit to honor set_view layers.highlights (default true); false hides them for this export only. Pins and notes are not rendered.
formatenum: "svg" | "png"noImage format. Default svg (png needs the resvg renderer on the host; degrades to svg if absent).
statestringnoOptional — scope the image to a state (postal "NC" or 2-digit FIPS). president → that state's per-county choropleth; senate/governor/exec → that RACE's LOCAL county map from its own overrides (5-digit county edits + its state override as uniform swing) over the labeled inherited-proxy baseline — ne…
geo_idstringnoOptional — a geo slug like "us-nc" to scope to that state.
feature_idstringnoOptional — a state fips (37) or county/precinct id (37xxx) to scope to its state.
viewenum: "result" | "swing" | "difference"no"result" (default) = the outcome map; "swing" = colour by margin CHANGE vs the baseline (where the scenario MOVES the map). "difference" = margin(B)-margin(A), requires compare_simulation_id and one explicit state; supports saved general-election county/precinct maps, with a zero-centered in-frame…
themestringnoMAP THEME preset for the rendered image (list_map_themes: control | analyst | field | civic | accessible | broadcast | terrain) — the SAME token resolution the live wall uses, so a civic-themed report map and the analyst on-screen map disagree only in paint, never in data. Omit = the classic dark c…
statesarray<string>noCUSTOM MAP (president): a list of states (postal "PA" or 2-digit FIPS) → a cropped county choropleth of just those states' counties, in their real relative positions, zoomed to the region. Combine with features[]. e.g. ["PA","OH","MI"] for a Rust Belt map.
featuresarray<string>noCUSTOM MAP (president): an explicit list of geo_ids to include — county FIPS (5-digit), state FIPS (2-digit), or "us-xx". Hand-pick any counties across states; the map crops to exactly them. Combine with states[].
region_groupstringnoCUSTOM MAP — a saved workspace map region-group slug. Expands to its member counties or states; add region to render one named region. Ignored if states[] or features[] are passed.
regionstringnoCUSTOM MAP — with region_group, render exactly ONE region in the group (its slug).
titlestringnoCUSTOM MAP: a title for the card (e.g. "Rust Belt swing"). Defaults to the state list (or the region group / region name).
grainenum: "county" | "precinct" | "house" | "state_senate" | "state_assembly"noWhen scoped to ONE state (state/geo_id/feature_id), the geographic grain to render: "county" (default) per-county; "precinct" per-precinct (finest, within-county) — both work at president level AND at the statewide-race levels (senate/governor/exec, which render that race's own overrides/fold, tk_3…
asofinteger | nullnoPRIMARY sims — render the delegate banner/standings AS OF this calendar checkpoint (contests counted; the same asof roll_up_primary / render_chart take). Omit to honor the scenario's STORED playhead (set_primary_asof) so the served image matches the viewer's scoreboard; null = the full projected ca…
sharebooleannoPUBLISH this map to a hostable URL: mints a share token and returns share.hosted_image_url / hosted_svg_url + a public page_url (/f/ ) that resolve for ANYONE — cross-workspace, embeddable in an or iframe. Default false (URLs are owner/public-scoped only). Anyone with the link sees the map; revoke…
share_ttl_daysnumbernoDays the shared URL stays live (default 90, max 365). Only with share:true.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

render_chart

share_comparison compares candidate shares for two saved versions of one model or two same-contest statewide general-election models. Returns canonical integer candidate votes, all-ballot shares, D-minus-R margins,…

ParameterTypeRequiredDescription
simulation_idstringnoScenario to render; for share_comparison this is A, or the single model with version_a/version_b.
simulation_id_astringnoshare_comparison only: A model, alternative to simulation_id. Conflicting aliases refuse.
simulation_id_bstringnoshare_comparison only: B model in the same contest. Omit for two explicit versions of A.
compare_simulation_idstringnoshare_comparison only: alias for simulation_id_b.
campaign_id_astringnoOptional campaign custody for A when the model belongs to multiple readable campaigns. Does not grant access.
campaign_id_bstringnoOptional campaign custody for B when the model belongs to multiple readable campaigns. Does not grant access.
version_astringnoDifference comparison: exact saved version of A. Omit only when its latest version matches the live model.
version_bstringnoDifference comparison: exact saved version of B. Omit only when its latest version matches the live model.
expected_hash_astringnoOptional expected immutable version hash for A; mismatches refuse.
expected_hash_bstringnoOptional expected immutable version hash for B; mismatches refuse.
levelenum: "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer"noshare_comparison only: statewide office; defaults to the saved scope. Both versions must match office, state, cycle and general-election stage.
typeenum: "delegate_standings" | "clinch_dial" | "delegate_momentum" | "calendar_strip" | "ranking_board" | "swing_bars" | "chamber_control" | "seat_hemicycle" …yesWhich widget. share_comparison = saved candidate shares before/after, with paired version anchors and one state. Primary: delegate_standings (bars+clinch), clinch_dial (gauge), delegate_momentum (lines), calendar_strip (calendar grid), ranking_board (portrait tiles ranked by delegates + per-candida…
partyenum: "d" | "r"noFor the primary charts — which party's race (defaults to the sim's primary mode).
asofinteger | nullnoFor the primary charts — evaluate the race at this calendar checkpoint (contests counted), the same asof roll_up_primary takes: standings/clinch totals, the momentum timeline's end, and the calendar strip's counted set all stop there. Omit to use the scenario's STORED playhead (set_primary_asof) wh…
officeenum: "house" | "senate" | "governor" | "state_senate" | "state_assembly"noFor seat_hemicycle / decisive_seats — which chamber (default house). state_senate/state_assembly also need state.
statestringnoState postal or FIPS. Required for share_comparison and state-leg seat_hemicycle/decisive_seats.
cycleintegernoElection cycle for seat_hemicycle / decisive_seats (defaults to the sim's cycle, else 2026) — drives the Senate class + governor calendar.
context_simulation_idstringnoseat_hemicycle / decisive_seats only — compute the WHOLE chamber rollup from THIS scenario (a linked national/statewide view's scenario) instead of simulation_id. Pair with overlay_from_simulation_id + overlay_race to swap exactly one race's result in from a campaign's scenario: one seat changes ha…
overlay_from_simulation_idstringnoseat_hemicycle / decisive_seats only — the scenario that supplies the ONE overlaid race's modeled result. Travels with overlay_race; passing one without the other is refused (overlay_incomplete).
overlay_raceobjectnoThe single race to swap in from overlay_from_simulation_id: {office, state, district}. office must match the card's chamber; statewide offices need only state; house takes the district GEOID ("0604") or the bare number with its state; state chambers take the district external_id.
highlight_raceobjectnoMark one race on the card (same shape as overlay_race): its dot wears an amber ring on seat_hemicycle, and decisive_seats always includes it on the board with its true closest-races rank.
themeenum: "control" | "analyst" | "field" | "civic" | "accessible" | "broadcast" | "terrain" | "print"noChart audience palette, using the map-theme registry. Supported by primary charts, swing_bars and chamber_control. Default control.
styleobjectnoOptional brand overrides for the supported themed charts. Does not remove attribution or change candidate colors or model data.
titlestringnoOptional eyebrow/title for the chart.
clinchbooleannoranking_board only — show each candidate's clinch line on the tiles (CLINCHES · , or how many delegates short). Default true; pass false for a name+delegates-only board. The response's rows[] carry the clinch data either way.
formatenum: "svg" | "png"noImage format. Default svg (png needs the resvg renderer; degrades to svg if absent).
sharebooleannoPUBLISH to a hostable URL: mints a share token and returns share.hosted_image_url / hosted_svg_url that resolve for ANYONE (cross-workspace, embeddable). Default false. Revoke with revoke_share(token).
share_ttl_daysnumbernoDays the shared URL stays live (default 90, max 365). Only with share:true.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_view

Set the active scenario view and selected map context: race stage, calendar playhead, geography grain, result source, selected feature, camera, map theme, and rail. The same persisted view state and deep link are used…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "custom" | "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" …noThe map/level the view should show.
statestringnoPostal code or 2-digit FIPS to scope to (pass empty string to clear to the national view).
cycleintegerno
camera_geo_idstringnoOptional geo to frame the camera on (defaults to the scoped state). 2-digit state / 5-digit county / district GEOID / precinct id.
zoomnumbernoOptional camera zoom; omit to fit the geo's bounds.
layersobjectnoView toggles such as precincts/highlights plus the canonical "actuals:pres_2024" baseline layer.
stageenum: "general" | "d_primary" | "r_primary" | "top_two"noThe race stage the viewer should see. Persisted on view_state + broadcast live; a primary-mode sim's own mode remains the identity truth (this is the VIEW).
asofinteger | nullnoThe primary calendar playhead — contests counted in the race-so-far (the number set_primary_asof takes). null = full calendar. Writes sim.primary.asof (the store the viewer's scoreboard/map run at), so this one DOES change the sim document. Primary sims only (a general sim answers with an asof_igno…
conteststringnoPlayhead targeting by contest instead of a number: a state postal code ("FL"), 2-digit FIPS, or full name — the playhead jumps to INCLUDE that contest (same semantics as set_primary_asof).
contest_indexintegernoPlayhead targeting by 1-based calendar ordinal (list_primary_calendar order).
map_grainenum: "states" | "counties" | "precincts" | "state" | "county" | "precinct"noThe Map View grain toggle: states | counties | precincts (singular accepted, stored plural).
map_themestringnoPin a MAP THEME audience preset on this view (list_map_themes has the registry: control | analyst | field | civic | accessible | broadcast | terrain). The open viewer restyles live; "none" clears the pin. Colors only — data, winners and margins never change.
sourceenum: "auto" | "state" | "county" | "precinct" | "flat"noThe per-state Outcome SOURCE control (which grain governs the shown outcome). Stored on view_state; the sim's own grain_pref pin stays set_primary_grain_pref's job.
selected_geoobjectnoThe selected feature on the map ({level, feature_id} — e.g. {level:"county", feature_id:"12086"} for Miami-Dade). Pass feature_id:"" to clear the selection.
railenum: "select" | "notes" | "strategy" | "none"noWhich right-rail panel the viewer should have open.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_scenario

A Scenario at its latest version (or a specified version_id): metadata (incl. latest_hash) + the version's top_line (margin / EC / viability) + its content hash/prev_hash. EM-119: pass a version_id (or…

ParameterTypeRequiredDescription
scenario_idstringyes
version_idstringnoOptional; defaults to the latest version. When set, the response includes the full per-precinct `state` for that version.
expected_version_hashstringnoOptional exact content hash from list_scenario_versions. Requires version_id; a mismatch is refused rather than returning a different saved model.
include_statebooleannoInclude the full per-precinct `state` even for the latest version (for redrawing the map).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

commit_version

Save the scenario's current state as a new immutable, hash-stamped version in the append-only chain. Records a diff vs the parent version and the recomputed top_line, and returns a content `hash` (+ `prev_hash`…

ParameterTypeRequiredDescription
scenario_idstringyes
titlestringnoOptional SHORT card title (<=80 chars), distinct from the longer summary — what the VERSIONS card shows as its heading, e.g. "Orange County flip".
summarystringnoHuman-readable note on what changed, e.g. "Flipped Orange County to D+40".
annotation_idsarray<string>noOptional — annotation ids (pins/highlights/notes on this sim) this version explains. Validated against the sim's annotations; unknown ids are reported in `unlinked` and dropped, never invented.
insight_idsarray<string>noOptional — insight ids (ins_…) this version explains. Validated against the sim's insights; unknown ids are reported in `unlinked` and dropped.
include_diffbooleannoInline the full before/after diff in the response (can be very large). Default false: return compact diff_stats only; fetch the full diff via diff_versions when needed.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_scenarios

Page saved scenarios/simulations in this workspace by updated_at descending and scenario_id ascending, without version blobs. Returns scenario_id, name, level, cycle, contest_id, race_id, tags, durable_id, published…

ParameterTypeRequiredDescription
tagsarray<string>noReturn only scenarios carrying any of these tags.
limitintegerno
offsetintegernoUse previous next_offset with unchanged tags and limit. Ordered by updated_at descending, scenario_id ascending. Restart at 0 after inventory changes.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

diff_versions

Structured diff between two immutable versions. Raw before/after remain stored override patches (null means no saved override). Precinct cells also include effective_before/effective_after shares with their…

ParameterTypeRequiredDescription
scenario_idstringyes
version_astringyes
version_bstringyes
limitintegernoMaximum changed precinct cells in this page. Summary counts cover the full version pair.
offsetintegernoUse precinct_page.next_offset to continue in stable precinct-id order.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_early_voting_turnout

Read early voting, absentee/mail, election-day, and provisional vote-method breakdowns alongside registered-voter, ballots-cast, and undervote/overvote turnout statistics by race and candidate from RoutPoint v2…

ParameterTypeRequiredDescription
statestringyesTwo-letter state postal code (e.g. "TX", "NC", "GA", "FL", "PA", "MI", "AZ").
election_datestringnoOptional election date in YYYY-MM-DD format (e.g. "2024-11-05", "2026-03-03", "2026-08-18"). Defaults to the most recent covered election for the state.
election_typeenum: "general" | "primary" | "runoff" | "special" | "municipal" | "recall"noOptional election stage filter.
county_fipsstringnoOptional 5-digit county FIPS code (e.g. "48081", "37021") to scope returns and turnout to one county.
office_levelenum: "president" | "us_senate" | "us_house" | "governor" | "lt_governor" | "attorney_general" | "secretary_of_state" | "treasurer" …noOptional canonical office level filter.
officestringnoOptional office substring filter (e.g. "U.S. Senate", "Governor").
districtstringnoOptional district code filter for legislative or congressional races (e.g. "10", "11").
source_idstringnoOptional 64-character SHA-256 source identifier for a specific county/state return file.
include_precinctsbooleannoWhen true, include per-precinct early voting, mail, election-day, and turnout breakdowns inside each race.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_county_voter_turnout_and_registration

Read county voter registration, party registration (DEM/REP/UNA/Other), voting-age population, 2024/2022/2020/2026 ballots cast and turnout percentages, 2020-to-2024 partisan swing, and competitiveness tiers across…

ParameterTypeRequiredDescription
statestringnoOptional two-letter state code (e.g. "PA", "GA", "NC", "MI", "WI", "AZ", "NV", "TX").
county_fipsstringnoOptional 5-digit county FIPS code (e.g. "37183" for Wake NC, "04013" for Maricopa AZ).
tierenum: "tossup_battleground" | "lean_dem" | "lean_rep" | "safe_dem" | "safe_rep"noOptional competitiveness tier filter.
sortenum: "ballots_cast_2024" | "turnout_2024_pct" | "registered_voters" | "partisan_swing_2020_to_2024_pct" | "margin_2024_pct" | "ballots_cast_2026"noSort order (default ballots_cast_2024).
limitintegernoMaximum counties to return (default 100, max 500).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_state_historical_turnout

Read 50-year statewide prior-cycle turnout and vote totals (1976 through 2026 across all 50 states and DC): ballots cast, registered voters, voting-age population, turnout percentage, DEM/REP vote shares, margin, and…

ParameterTypeRequiredDescription
statestringnoOptional two-letter state code (e.g. "PA", "GA", "MI", "WI", "CA", "TX").
yearintegernoOptional election year filter (1976 through 2026).
limitintegernoMaximum rows to return (default 100, max 500).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_live_early_vote_returns

Read live 2026-11-03 General Election pre-election mail ballot requests, mail ballots returned, early in-person ballots, and ballot composition by voter registration party (DEM/REP/UNA/Other) from continuously…

ParameterTypeRequiredDescription
statestringnoOptional two-letter state code (e.g. "NC", "VA", "GA", "PA").
county_fipsstringnoOptional 5-digit county FIPS code (e.g. "37183").
election_datestringnoElection date in YYYY-MM-DD format (default "2026-11-03").
include_precinctsbooleannoWith county_fips (Texas): also return cumulative 2026 early ballots per precinct, aggregated from the SOS early-voting roster.
limitintegernoMaximum county rows to return (default 100, max 500).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_precinct_election_returns

Read precinct-level election returns and normalized early-voting, absentee/mail, election-day, and provisional breakdowns across 87.7M precinct rows (linked to mapsmcp_precinct_id) from RoutPoint v2.

ParameterTypeRequiredDescription
statestringnoTwo-letter state postal code (e.g. "TX", "NC", "GA", "PA").
county_fipsstringnoOptional 5-digit county FIPS code.
election_idintegernoOptional RoutPoint election identifier.
contest_idintegernoOptional RoutPoint contest identifier for single-contest precinct returns.
mapsmcp_precinct_idstringnoOptional MapsMCP precinct UUID filter.
yearintegernoOptional election year (e.g. 2024, 2022, 2026).
election_datestringnoOptional election date in YYYY-MM-DD format.
election_typeenum: "general" | "primary" | "runoff" | "special" | "municipal" | "recall"noOptional election stage (default general).
officestringnoOptional office name filter.
office_levelenum: "president" | "us_senate" | "us_house" | "governor" | "lt_governor" | "state_senate" | "state_assembly" | "state_house"noOptional canonical office level.
districtstringnoOptional legislative or congressional district code.
partystringnoOptional party filter.
limitintegernoMaximum rows to return (default 100, max 500).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_county_officials

Read current local, county, municipal, judicial, and school-board officials (40,431 local officials; 97,231 total officials) by 5-digit county FIPS or state from RoutPoint v2.

ParameterTypeRequiredDescription
fipsstringnoOptional 5-digit county FIPS code (e.g. "48201" for Harris County TX, "17031" for Cook County IL).
statestringnoOptional two-letter state code (e.g. "TX", "IL", "CA").
office_levelenum: "county" | "municipal" | "judicial" | "school_board" | "statewide" | "state_legislative" | "federal"noOptional office level filter.
partystringnoOptional party filter.
qstringnoOptional name or title search query.
limitintegernoMaximum officials to return (default 100, max 200).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_county_economic_and_wealth_profile

Read a county’s economic vitality dossier (Census 15-sector business patterns, establishments, employees, payroll, average annual wage, new SOS LLC/Corp formations, SEC Form D capital raises, Form 4/FEC major donors,…

ParameterTypeRequiredDescription
fipsstringnoOptional 5-digit county FIPS code (e.g. "06087" for Santa Cruz County CA, "36061" for New York County NY) for a full county dossier.
statestringnoOptional two-letter state code (e.g. "CA", "TX", "NY") to rank counties across a state.
sortenum: "avg_annual_wage_usd" | "economic_vitality_score" | "total_annual_payroll_usd" | "total_employees"noSort field when ranking counties in a state (default avg_annual_wage_usd).
limitintegernoMaximum counties to return when ranking a state (default 50, max 200).
offsetintegernoPagination offset (default 0).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

billing_status

BILLING — your subscription state: {billing_enabled, logged_in, plan (personal|team|null), status, active, renews, can_save}. billing_enabled is false until the server is configured with Stripe; while it is false,…

ParameterTypeRequiredDescription
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

connection_status

WHO AM I — how THIS session is authenticated and which workspace this request resolved to. Returns authentication fields plus workspace {workspace_id, role, selection_source}. Modern MCP clients select a workspace with…

ParameterTypeRequiredDescription
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_candidates

Replace the entire candidate roster for a simulation+level in one call (add / edit / remove / reorder). Each candidate: {id?, name, party, color?, incumbent?}; ids auto-assigned if omitted. Use this to set the real…

ParameterTypeRequiredDescription
expected_versionstringnoThe last-read updated_at token; custom model writes refuse stale edits.
simulation_idstringyes
levelenum: "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" | "secretary_of_state" …yes
candidatesarray<object>yes
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_turnout

Set the turnout (mobilization) model. PRESIDENT (default, unchanged): each dial is a percentage-point boost toward toward_candidate_id in counties over an ACS threshold (college = >20% BA share, immig = >15%…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" | "secretary_of_state" …nopresident (default) = the classic ACS-threshold dials below. Any other level = the race-scoped ballots lever (turnout_change_pct + cohort).
collegenumberno
immignumberno
highHomenumberno
lowHomenumberno
hiUnempnumberno
toward_candidate_idstringno
turnout_change_pctnumbernoRace-scoped levels only: percent change to BALLOTS cast in the matched geography (-12 = 12% fewer, +8 = 8% more). Composes multiplicatively with prior levers; the factor is clamped to [0.05, 5].
geo_idsarray<string>noExplicit geography cohort — 5-digit county FIPS on statewide levels (e.g. "23005" = Cumberland ME), district external ids on house/state-leg, or precinct external ids (they contain a dash, e.g. "34013-0001") on any race level. Precinct ids apply at precinct grain where the scenario uses the canonic…
countiesarray<string>noAlias of geo_ids for county cohorts.
criterionobjectnoACS-style county matcher (statewide levels): e.g. {field:"population", op:"lt", value:30000} = rural counties. Filters WITHIN geo_ids when both are passed; scope a bare criterion with state_fips.
state_fipsstringno2-digit state FIPS to scope a criterion cohort to one state (e.g. "23" = Maine).
clearbooleannoRace-scoped levels only: true removes every turnout (ballots) factor on this level and its set_turnout levers, returning ballots to the baseline. Vote-share edits stay. Do not combine with turnout_change_pct or a cohort.
sourcestringnoWhere this user-authored assumption came from (user statement, field report, or source citation) — stored on the lever's audit entry.
assumptionstringnoThe modeling assumption in plain words (e.g. "youth demobilization scenario") — stored on the lever's audit entry.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

add_map_comment

Leave a Google-Docs-style COMMENT on the scenario map — a threaded, resolvable discussion anchored to a place. CAMPAIGN ISOLATION: when working inside a campaign, pass campaign_id; the scenario must be filed under it…

ParameterTypeRequiredDescription
audience_scopeobjectnoWho can read this discussion or assignment. Replies and work originating in a discussion inherit its audience.
simulation_idstringyes
campaign_idstringnoCampaign that owns this War Room message. The simulation must be tagged into it. Omit only for scenario-global discussion.
bodystringyesThe comment text (supports @mentions by email/handle).
idempotency_keystringnoOptional retry key. Replays return the same post and immutable context instead of duplicating the message.
feature_idstringnoAnchor to this feature (5-digit county FIPS / precinct external_id / 2-digit state FIPS / district GEOID).
levelstringnoFeature anchor level (county|precinct|state|house|state_senate|state_assembly). Defaults to the sim level.
lngnumbernoFree-point anchor longitude (use with lat).
latnumbernoFree-point anchor latitude (use with lng).
parent_idstringnoReply to this comment id (creates a thread; inherits the parent's anchor).
attachmentsarray<object>noAttachments on the message: [{name,url,mime,size,object_path?,kind?}]. An UPLOADED FILE rides as the object_path returned by /api/chat-upload — the bucket is private, so each read mints a fresh short-lived signed url into `url` (never store or share one; it expires). kind:"link" for pasted links; k…
objectobjectnoAnchor the comment to an OBJECT (a strategy / strategy step / annotation / version / candidate / workspace person / canonical report widget), not a map place — the comment is ABOUT that object. A person ref must resolve inside this workspace and, when campaign-scoped, the person must be assigned to…
report_contextobjectnoBind this discussion to the exact immutable report widget the user is viewing. The report and widget must belong to simulation_id and the caller's workspace; the resulting receipt uses that report's pinned version and truthful widget coverage.
canvass_kindenum: "supporter" | "voter" | "door" | "target" | "note"noMake this a color-coded FIELD-MAP PIN (Map View canvassing) instead of a plain comment: supporter (green) | voter (amber) | door (blue) | target (red) | note (teal). Use with a point anchor (lng+lat) or a feature_id. The body is the pin label.
canvass_dataobjectnoOptional structured data for a field pin: { label, status, support_score, contacted_at, … } — anything your campaign tracks per pin.
titlestringnoOptional short name for the post (a strategy/target/event has one; plain chat does not — feeds fall back to a body excerpt). Indexed for full-text search alongside body.
regionsarray<string>noThe post's MANY-TO-MANY location — the region/turf/shapefile ids this post covers (a multi-area comment's selected regions, a canvass turf, a target's shapes). ONE comment can anchor to MANY areas: pass every id here. Written to the post_regions junction ("what is happening in this region?" stays o…
region_kindstringnoWhat grain the regions[] ids are (precinct|county|state|district). Defaults to the anchor level.
categoryenum: "note" | "target" | "canvass" | "action" | "need" | "event" | "strategy"noUNIFIED WAR ROOM OBJECTS: what kind of floater this placement is. Every category shares the same anchor model and starts a thread; the category drives the icon, the War Room grouping, and which payload fields make sense. A canvass_kind implies category "canvass" automatically.
icon_typestringnoThe icon/subtype within the category — e.g. note: why|risk|fact|question; target: by role; canvass: the drop kind; action: follow_up|call|door|research|decision.
payloadobjectnoCategory-specific structured fields, stored as-is. Examples — target: { priority, channel, universe_ref }; action: { status, assignee, due_at, priority }; need: { qty, unit, urgency }; event: { event_kind, starts_at, ends_at }.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_map_comments

List one campaign's map comments on a scenario (oldest-first), each with its campaign_id, anchor, author, body, @mentions, parent_id, and resolved state. Pass campaign_id inside a campaign; only that exact campaign is…

ParameterTypeRequiredDescription
simulation_idstringyes
campaign_idstringnoExact campaign War Room to read. The simulation must be filed under it.
include_resolvedbooleannoInclude resolved comments (default true).
comment_idsarray<string>noRead only these comments (a delta after a live event named them). The reply carries subset:true plus missing[] for ids that are not in this War Room.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

apply_uniform_swing

Apply an incremental swing in points toward one candidate at the requested office. A saved race_scope restricts writes to that state or district and refuses a different office or unresolved geography. Unscoped and…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" | "secretary_of_state" …yes
swing_ppnumberyes
toward_candidate_idstringno
decay_halflifenumbernoOptional. Half-life in DAYS: past decay_start_date the applied swing halves every this-many days (exponential fade toward baseline). Omit for a permanent swing (today's behavior).
decay_start_datestringnoYYYY-MM-DD the shift lands / peaks (decay measured forward from here). Default: today. Only used when decay_halflife is set.
as_ofstringnoYYYY-MM-DD timeline point at which to evaluate the decayed swing. Default: decay_start_date (full magnitude). Only used when decay_halflife is set.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_tally

Compute the current per-candidate tally for a simulation+level. For President: state-aggregated EVs. For others: feature counts. For level:"senate" the default is the 50-state per-candidate race scoreboard; pass…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "custom" | "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" …yes
chamberbooleannolevel:"senate" only — return real chamber control ({D,R,I,seats_up,held_over,majority_status}) via the same math as senate_control, instead of the 50-state race scoreboard.
cycleintegernoElection cycle for chamber control (level:"senate", chamber:true); default 2028. Ignored otherwise.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_simulations

List saved simulations in this workspace (id, name, level, cycle, mode, contest_id, last-modified; rows stamped with an identity also carry created_by/updated_by member user_ids). Optional filters narrow a large…

ParameterTypeRequiredDescription
levelstringnoFilter by office/level (e.g. president, senate, house, governor).
modestringnoFilter by president modeling mode: general | dem_primary_2028 | rep_primary_2028.
cycleintegernoFilter by election cycle year (e.g. 2028).
contest_idstringnoFilter to sims bound to this contest_id.
race_idstringnoFilter to sims bound to this race_id.
qstringnoCase-insensitive substring match on the simulation name.
updated_sincestringnoOnly sims modified at or after this ISO timestamp/date.
ownerstringnoFilter to sims created by this member user_id (the stable UUID from list_members) — "my sims" / "Dana's sims". Sims saved before identity stamping have no owner and never match.
limitintegernoMax rows to return (pagination page size).
offsetintegernoRows to skip before returning (pagination cursor).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_simulation

Read the canonical simulation/scenario state, including candidates, race scope, geography overrides, active version identity, provenance, and optional summary or selected dot-path fields.

ParameterTypeRequiredDescription
simulation_idstringyes
fieldsnoOptional read shaping: the string "summary" → the compact identity card (target <5KB); an array of dot-paths (e.g. ["id","mode","primary.asof","primary.grain_pref","updated_at"]) → just those values from the document (plus mode_truth / campaign_identity / provenance as pickable top-level paths). Om…
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_flipped

List baseline-to-model winner changes. Defaults to state for statewide offices, county for president, and district for house/state legislature. Explicit grain:county|precinct uses canonical integer local votes for a…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" | "secretary_of_state" …yes
grainenum: "state" | "county" | "precinct" | "district"no
statestringnoOne postal code/FIPS for explicit county/precinct enumeration; may be inferred from a saved state race.
offsetintegerno
limitintegerno
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

compare_simulations

Compare two simulations. Without grain, returns the existing chamber/feature comparison. With grain:county|precinct and one state, compares exact saved canonical vote rows: margin(B)-margin(A), winners, flips, ballots…

ParameterTypeRequiredDescription
simulation_id_astringyes
simulation_id_bstringyes
campaign_id_astringnoOptional campaign custody for A when the model belongs to multiple readable campaigns. Does not grant access.
campaign_id_bstringnoOptional campaign custody for B when the model belongs to multiple readable campaigns. Does not grant access.
version_astringnoDifference comparison: exact saved version of A. Omit only when its latest version matches the live model.
version_bstringnoDifference comparison: exact saved version of B. Omit only when its latest version matches the live model.
expected_hash_astringnoOptional expected immutable version hash for A; mismatches refuse.
expected_hash_bstringnoOptional expected immutable version hash for B; mismatches refuse.
statestringnoRequired for county/precinct comparison: one state postal code or FIPS.
grainenum: "county" | "precinct" | "district"noReturn canonical local outcomes instead of a chamber tally. county|precinct for president/statewide races; district|precinct for House and state-legislative races.
formatenum: "json" | "csv" | "geojson"noLocal comparison table format; CSV/GeoJSON add a private complete-file download URL.
limitintegerno
offsetintegerno
levelenum: "president" | "senate" | "governor" | "house" | "state_senate" | "state_assembly" | "attorney_general" | "secretary_of_state" …yes
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

share_simulation

Mint a public, read-only link to the exact canonical scenario/version. Authenticate for durable workspace ownership; revoke_share disables the link.

ParameterTypeRequiredDescription
simulation_idstringyes
campaign_idstringnoOptional campaign that contains this simulation. The share is authorized against that campaign and its frozen context/manifest retain the campaign id.
ttl_daysintegerno
include_impactbooleannoInclude national impact only for an unscoped national model. Ignored for a single-race or primary scope.
include_deltasbooleannoInclude modeled margin/share deltas from the canonical baseline for this exact race.
sectionsarray<enum: "race_result" | "map" | "impact" | "notes" | "widgets">noOptional public-share section allowlist. Single-race shares remain race-scoped even when impact is requested.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

roll_up_race

Roll up precincts to a race outcome under the current simulation. Sums baseline votes for all precincts inside the district boundary, applying overrides in precedence order: a per-precinct override wins, else…

ParameterTypeRequiredDescription
simulation_idstringyes
levelenum: "custom" | "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" …no
district_idstringnoDistrict external id (for level=president/senate/governor, the state). EM-056: accepts a resolve_geography handle in any format — the slug "us-pa", postal "PA", or FIPS "42" — and also reads geo_id/state as aliases.
region_groupstringnoOptional saved county-grain workspace map region-group slug. Returns one modeled race rollup per named region.
regionstringnoOptional — with region_group, scope to exactly ONE region in the group (its slug), rolling up only that region's member counties.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

apply_swing_to_query

Apply a uniform swing or an explicit per-precinct weights vector to a filtered cohort in one atomic call. Weights select only their named IDs, support canonical statewide mechanisms, and optionally rescale a persuasion…

ParameterTypeRequiredDescription
simulation_idstringyes
statestringyesPostal, FIPS, or resolve_geography slug ("us-pa") — required, scopes the query (EM-056: all formats accepted; also fills from geo_id).
filterobjectyesPrecinct property → condition map within the requested geography. Properties: external_id, GEOID, name, state, county, county_fips, shape_id, votes_dem, votes_rep, votes_total, pct_dem_lead, official_boundary, lat, lng, population, mhi, median_home, pct_bachelors, pct_foreign_born, unemp_pct, media…
swing_ppnumbernoPercentage-point swing toward the target candidate. mode:"turnout": the percent of each precinct's ballots added for the target side.
target_margin_ppnumbernoAlternative to swing_pp: desired margin of the target party over the other major party, as a percentage of all modeled ballots in the filtered cohort. Requires mode:persuasion, explicit toward_candidate_id and statewide level (including president). Cannot be combined with swing_pp.
weightsobjectnoAlternative to swing_pp: exact precinct external_id -> signed swing percentage points. Only these IDs change; all must be inside the state/filter with canonical ballots. Requires explicit D/R target, mode, statewide level and a cap covering the whole vector. President supports persuasion only. Opti…
toward_candidate_idstringnoThe candidate id receiving the swing (e.g. "D", "R", or a custom id). Inferred to the level's first candidate of opposite party if omitted.
max_precinctsintegernoSafety cap on how many precincts get mutated.
levelenum: "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" | "state_senate" | "state_assembly" …noThe office these swung precincts model — folds them into that race's state rollup (same tag as set_precinct_pcts). REQUIRED for mode:"turnout"/"mixed" (the ballots ride that race's lever kernel; president excluded).
modeenum: "persuasion" | "turnout" | "mixed"noHOW the swing happens (EM-008). persuasion = conversion (×2 margin, ballots hold); turnout = one-sided ballots (×1 margin, votes_total moves); mixed = mix persuasion + the rest turnout. Omit for the classic call.
mixnumbernomode:"mixed" only — the fraction of swing_pp delivered via persuasion (the rest via turnout).
sourcestringnomode calls that move ballots: stored on the lever's audit entry.
assumptionstringnomode calls that move ballots: stored on the lever's audit entry.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_campaign_onboarding

CAMPAIGN ONBOARDING — guide a campaign manager or joining staff member through setup in their connected AI. Read one step or the complete guide: connection, campaign identity, team access, optional data imports, first…

ParameterTypeRequiredDescription
sectionenum: "connection" | "campaign" | "team" | "data" | "work" | "complete" | "all"noThe next conversational step. Read connection first; all returns the complete guide when campaign tools are available.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

help

Orient an AI client to campaign onboarding through get_campaign_onboarding, user-controlled election modeling, candidate and presidential-primary workflows, supported geography, scenario versions, contextual War Room…

ParameterTypeRequiredDescription
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

get_catalog

DISCOVERY — browse workflow/category groups, search tool names and descriptions, or fetch one complete schema and AI guide with tool. No arguments returns a compact counted index of the authorized inventory. Core…

ParameterTypeRequiredDescription
querystringnoText search over this session's retained tool names and descriptions. Ranked: exact name, name substring, then description matches.
limitintegernoMaximum tool entries per discovery page, subject to the response byte budget. Repeat the same filters with next_cursor as cursor until null.
cursorstringnoOpaque next_cursor from the previous discovery page. Keep the same query, category and workflow; restart if the authorized catalog changed.
expected_catalog_versionstringnoOptional catalog_version from a previous tools/list or get_catalog response. Returns catalog_changed so clients can detect schema drift and refresh cached bindings.
workflowenum: "modeling" | "campaign_operations" | "imports" | "account_and_support" | "staff_support" | "discovery"noOpt into a workflow from the compact index. Filters browsing or search within the authorized inventory; never grants access or changes the connection profile.
toolstringnoExact retained tool name — returns the complete inputSchema and versioned AI guidance matching its use- MCP prompt when it is present in this session's tools/list.
categorystringnoBrowse one category (e.g. "Scenario") in bounded pages. The category count is the full matching inventory, not this page length.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

list_primary_calendar

Read the 2028 primary calendar with source dates, schedule certainty, modeled delegate coverage, missing jurisdictions, and threshold basis. New calendars include the six DNC-approved early dates; other unverified…

ParameterTypeRequiredDescription
partyenum: "D" | "R"yes
simulation_idstringnoOptional. If given (and party=D), returns the sim's user-defined Dem calendar when one is set.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_primary_shares

Set a party's presidential-primary vote shares — one state, or MANY states in a single call. SINGLE STATE: pass `state` + `shares` (unchanged behavior; echoes the full running roll_up). BATCH: pass `states` = { "SC":…

ParameterTypeRequiredDescription
simulation_idstringyes
partyenum: "D" | "R"yes
statestringnoSINGLE-STATE mode: State FIPS ("19") or 2-letter abbr ("IA"). Provide `state`+`shares` OR `states`, not both.
sharesobjectnoSINGLE-STATE mode: Map of candidate_id → percentage (0-100), e.g. {"vance": 42, "desantis": 30}. Must reference set_primary_candidates ids. Empty ({}) un-models the state.
statesobjectnoBATCH mode: Map of state (FIPS or 2-letter abbr) → its {candidate_id: pct} shares, e.g. {"SC":{"newsom":31,"harris":24},"NH":{...}}. Writes all states in one atomic call; an invalid state fails the whole batch (nothing is written). Empty ({}) for a state un-models it.
include_rollupbooleannoBATCH mode only: also return the full delegate roll_up alongside the default trimmed `delta` summary. Ignored in single-state mode (which always echoes the full roll_up).
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

roll_up_primary

The running delegate count — OR, for a race-scoped downballot sim, that race's own share rollup. DOWNBALLOT (tk_2110d54c1d0871): when the scenario is race-scoped to a non-presidential office (set_race_scope…

ParameterTypeRequiredDescription
simulation_idstringyes
partyenum: "D" | "R"yes
asofinteger | nullnoOptional. Contests counted; omit/null = full calendar.
statestringnoOptional. Scope the read to ONE contest (postal/FIPS/name): returns a `state` block with that contest's calendar position, modeling grain, and delegate allocation — and when the state sits BEYOND this call's asof, the response says so EXPLICITLY (top-level excluded_by_asof:true + contest_index + cu…
include_statesbooleannoOptional. Also return by_state[]: per voted contest — delegates each candidate won, plus eff_shares (the effective per-state candidate shares after the county/precinct rollup), modeled_by ("precinct"|"county"|"state"|null — which grain drove the state), modeled_count, and coverage_pct (grain-relati…
by_districtbooleannoOptional (Democratic only). Also return district_allocation: the SAME authoritative count broken out by DNC Rule 14 pool — per state, the district/at-large/PLEO pool sizes, and per congressional district its delegates, the threshold used, whether it used district-specific shares (modeled:true) or t…
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

primary_batch_edit

ATOMIC batch-edit transaction for a PRIMARY scenario — validate, preview, apply, and roll back a whole SET of candidate / share / calendar edits as ONE transaction. Pass edits:[{op, ...}, …] where each entry carries…

ParameterTypeRequiredDescription
setup_evidenceobjectnoFor automatic public-profile initialization: {kind:"primary_profile_start",model:"geographic-context-v1",profile_version:"2026-09-05.v1",ranking:[{id,name}]}. Use the same ordered ranking; the server validates the catalog and final roster/shares before one atomic save. Dry runs return proposed evid…
expected_version_hashstringnoCopy expected_version_hash from the setup dry run to refuse overwriting an intervening edit. Exact already-applied replay returns the existing version.
simulation_idstringyesThe scenario/simulation to edit (sim_…).
editsarray<object>yesOrdered heterogeneous list of primary edits, each an object {op, …opArgs}. op is one of set_primary_shares, set_primary_county_shares, set_primary_precinct_shares, set_primary_candidates, set_primary_asof, clear_primary_shares, define_dem_calendar, clear_dem_calendar, set_primary_grain_pref, set_pr…
partystringnoDefault party (d/r) for edits that omit their own party. Defaults to the sim's primary party.
dry_runbooleannoDEFAULT true — preview only: returns before/after/delta/warnings/errors/viability_flags and writes NOTHING. Pass false to actually apply.
forcebooleannoApply despite soft WARNINGS (just-over-100 totals, viability flags, mode/geo/calendar notes). Still BLOCKS on hard errors (unknown candidate, malformed edit, shares over 100.5). Default false.
checkpoint_labelstringnoOptional label for the pre-batch rollback checkpoint version created on apply.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

set_race_scope

Bind the canonical scenario to one race/campaign so its map, tally, candidates, War Room context, operations, outputs, and MCP actions share the same race identity.

ParameterTypeRequiredDescription
simulation_idstringyes
officeenum: "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" | "state_senate" …noThe office (seat) this race is for. This is the canonical parameter name; the older `level` is still accepted as an alias.
levelenum: "president" | "senate" | "governor" | "attorney_general" | "secretary_of_state" | "treasurer" | "house" | "state_senate" …noDEPRECATED alias for `office` (kept for back-compat). Prefer `office`.
geography_idstringnoAccepts the canonical resolve_geography slug at every office — president "us" / "US"; senate & governor "us-pa", "PA", or FIPS "42"; house "us-ny-cd-17", "NY-17", or the FIPS+CD external_id "3617". State-leg takes its district external_id from list_features. Omit when you pass `candidate`.
candidatestringnoA candidate/officeholder name ("Lauren Boebert") — resolved via resolve_candidate to their office + geography + cycle, so you scope their race in ONE call and they are auto-added to the roster as the incumbent. Ignored if geography_id is also given. If the name is in no source (never guessed) the c…
cycleintegerno
stageenum: "general" | "d_primary" | "r_primary"no
candidatesarray<any>noOptional array of real candidates running this race: [{id, name, party, color, incumbent?}]. Overwrites the office's candidate list. If omitted, keeps existing candidates.
rebindbooleannoDeliberately re-district a campaign already bound to a DIFFERENT geography. Without it, re-scoping a bound sim is rejected (scope_locked) — a campaign is tied to the district it was created in.
workspace_scopestringnoOptional workspace for THIS call: use an exact personal/team ID from list_workspaces. Repeat on each call; it does not change the connection default. Must agree with MCP metadata and the effective HTTP workspace selector (header, otherwise connector URL). OAuth connections can only use their grante…

call_tool

Run any other tool you are authorized for that is not in this list. Find it and its exact input schema with get_catalog (search, a workflow, or {tool: name}), then call call_tool({ name, arguments }). The named tool…

ParameterTypeRequiredDescription
namestringyesThe exact tool name, as get_catalog returns it.
argumentsobjectnoThat tool's arguments, exactly as its get_catalog schema describes.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://www.electionsmcp.com/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http electionsmcp https://www.electionsmcp.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : electionsmcp ; URL : https://www.electionsmcp.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : electionsmcp ; Server URL : https://www.electionsmcp.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "electionsmcp": {
      "url": "https://www.electionsmcp.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "electionsmcp": {
      "type": "http",
      "url": "https://www.electionsmcp.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "electionsmcp": {
      "url": "https://www.electionsmcp.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "electionsmcp": {
      "httpUrl": "https://www.electionsmcp.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.electionsmcp]
url = "https://www.electionsmcp.com/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

ElectionsMCP · L’Atlas · Tested on

Markdown
[ElectionsMCP — L’Atlas](https://latlas.dev/en/mcp/com.electionsmcp/electionsmcp)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.