ElectionsMCP

com.electionsmcp由 electionsmcp.com 发布官方发布者v0.2.0更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行位置与生活数据与分析

概览

AI 生成的概览

让助手模拟并地图化 2028 年美国选举,提供细至 precinct 的情景、摇摆与投票率分析。

可以做什么
提供美国选举模拟与地图工具:可解析地名、候选人与地址,列出选区和选举日历,并创建情景、设置候选人得票率、应用摇摆与投票率模型,再获取各级汇总、翻盘清单与版本差异。另有渲染地图与图表、生成只读分享链接、地图评论,以及查询各州历史投票率、提前投票和县级经济数据的工具。
适用场景
适合政治分析、竞选规划或选举报道人员,在对话中模拟 2028 年联邦与州级选战、测试摇摆与投票率假设,或查询选民登记与投票率历史数据时使用。
运行要求
远程 HTTP 端点,无需本地运行环境。API 密钥为可选,通过 x-electionsmcp-key 请求头提供;未提供时仅能使用免费的读取与模拟沙盒,提供后模拟可保存到持久层。密钥需在官网登录获取。
安装前请注意
密钥通过 x-electionsmcp-key 请求头传输,请妥善保管。工具会创建和修改情景、版本、候选人名单与地图评论,并可生成公开只读分享链接;分享前请确认内容。另有订阅与计费状态工具,使用前应了解方案与保存限制。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ElectionsMCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.electionsmcp%2Felectionsmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "electionsmcp": {
      "type": "http",
      "url": "https://www.electionsmcp.com/mcp"
    }
  }
}

工具

48

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> County…

输入参数yearquery必填workspace_scope

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…

输入参数name必填cyclelimitpartyofficeworkspace_scope

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:…

输入参数qlimitpartyofficeworkspace_scope

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.…

输入参数address必填workspace_scopeinclude_officials

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…

输入参数cyclestagegeo_id必填workspace_scope

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…

输入参数cyclestateworkspace_scope

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…

输入参数levelgeo_id必填marginshares必填turnoutrebalancescenario_id必填total_votessimulation_idworkspace_scopeexpected_version

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…

输入参数limitfiltergeo_idmarginoffsetcontextgoal_modetarget_pctscenario_id必填candidate_idrolloff_rateworkspace_scope

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…

输入参数name必填tagsrace_idcontest_idbaseline_idcampaign_idimport_fromidempotency_keyworkspace_scopeboundary_versionexpected_campaign_revision

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…

输入参数viewcyclegrainlevelstateversion_aversion_bversion_idcampaign_id_acampaign_id_bsimulation_id必填expected_hash_a另有 5 个

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…

输入参数asofviewgrainlevelsharestatethemetitleformatgeo_idlayersregion另有 16 个

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,…

输入参数asoftype必填cyclelevelpartysharestatestylethemetitleclinchformat另有 17 个

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…

输入参数asofrailzoomcyclelevelstagestatelayerssourcecontestmap_grainmap_theme另有 5 个

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…

输入参数version_idscenario_id必填include_stateworkspace_scopeexpected_version_hash

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`…

输入参数titlesummaryinsight_idsscenario_id必填include_diffannotation_idsworkspace_scope

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…

输入参数tagslimitoffsetworkspace_scope

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…

输入参数limitoffsetversion_a必填version_b必填scenario_id必填workspace_scope

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…

输入参数state必填officedistrictsource_idcounty_fipsoffice_levelelection_dateelection_typeworkspace_scopeinclude_precincts

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 all…

输入参数sorttierlimitstateoffsetcounty_fipsworkspace_scope

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…

输入参数yearlimitstateoffsetworkspace_scope

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 partisan ballot composition (DEM vs. REP vs. UNA/Other) compared against each county’s 2024…

输入参数limitstateoffsetcounty_fipselection_dateworkspace_scope

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.

输入参数yearlimitpartystateofficeoffsetdistrictcontest_idcounty_fipselection_idoffice_levelelection_date另有 3 个

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.

输入参数qfipslimitpartystateoffsetoffice_levelworkspace_scope

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,…

输入参数fipssortlimitstateoffsetworkspace_scope

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,…

输入参数workspace_scope

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…

输入参数workspace_scope

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…

输入参数level必填candidates必填simulation_id必填workspace_scopeexpected_version

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%…

输入参数clearimmiglevelsourcecollegegeo_idshiUnemplowHomecountieshighHomecriterionassumption另有 5 个

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…

输入参数latlngbody必填leveltitleobjectpayloadregionscategoryicon_typeparent_idfeature_id另有 10 个

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…

输入参数campaign_idcomment_idssimulation_id必填workspace_scopeinclude_resolved

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…

输入参数as_oflevel必填swing_pp必填simulation_id必填decay_halflifeworkspace_scopedecay_start_datetoward_candidate_id

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…

输入参数cyclelevel必填chambersimulation_id必填workspace_scope

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…

输入参数qmodecyclelevellimitowneroffsetrace_idcontest_idupdated_sinceworkspace_scope

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.

输入参数fieldssimulation_id必填workspace_scope

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…

输入参数grainlevel必填limitstateoffsetsimulation_id必填workspace_scope

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…

输入参数grainlevel必填limitstateformatoffsetversion_aversion_bcampaign_id_acampaign_id_bexpected_hash_aexpected_hash_b另有 3 个

share_simulation

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

输入参数sectionsttl_dayscampaign_idsimulation_id必填include_deltasinclude_impactworkspace_scope

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…

输入参数levelregiondistrict_idregion_groupsimulation_id必填workspace_scope

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…

输入参数mixmodelevelstate必填filter必填sourceweightsswing_ppassumptionmax_precinctssimulation_id必填workspace_scope另有 2 个

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…

输入参数sectionworkspace_scope

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…

输入参数workspace_scope

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…

输入参数toollimitquerycursorcategoryworkflowworkspace_scopeexpected_catalog_version

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…

输入参数party必填simulation_idworkspace_scope

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":…

输入参数party必填statesharesstatessimulation_id必填include_rollupworkspace_scope

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…

输入参数asofparty必填stateby_districtsimulation_id必填include_statesworkspace_scope

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…

输入参数edits必填forcepartydry_runsimulation_id必填setup_evidenceworkspace_scopecheckpoint_labelexpected_version_hash

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.

输入参数cyclelevelstageofficerebindcandidatecandidatesgeography_idsimulation_id必填workspace_scope

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…

输入参数name必填arguments

版本历史

1
  1. v0.2.0最新Sep 27, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。