How to Use MIT Election Lab dataset search in Windsurf
Returns matching Harvard Dataverse dataset listings for election research. Use it to find collections by office, year, or geographic level before inspecting files or requesting vote records.
Prompts to try with MIT Election Lab dataset search in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use MIT Election Lab dataset search to find county presidential returns covering 2000 through 2024, then add the dataset title and source link to this project's research notes.
Use MIT Election Lab dataset search to find Georgia's 2024 precinct returns and add the matching dataset references to the project's election data manifest.
Use MIT Election Lab dataset search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from MIT Election Lab dataset search and tell me what changed since last week.
Check MIT Election Lab dataset search and summarize what you find in three bullet points.
How to set up MIT Election Lab dataset search in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run MIT Election Lab dataset search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "dataverse-harvard-edu/elections/search_datasets", "input": { "page": 1 } }'
Then paste one of the prompts above: Windsurf finds MIT Election Lab dataset search on Spiral, shows the price and runs it.
MIT Election Lab dataset search providers and prices
Spiral runs MIT Election Lab dataset search through Alexandria. Open a card for today's price, with every fee included.
$0.00873 per call.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | 1 to 1000 | 1-based page. | |
| Sort | name or date | Sort by name or date instead of relevance. | |
| Order | asc or desc | order | |
| Per page | 1 to 100 | Results per page, default 20. |
Every API field of Harvard Dataverse: MIT Election Data and Science Lab returns · Search datasets is on its tool page: open its card above.
What can you do with MIT Election Lab dataset search in Windsurf?
Build election analysis tables from MEDSL's documented returns and calculate county swings or congressional margins. A coding agent can inspect dataset files, then add calculations that handle voting mode totals and suppressed counts.
County presidential swing analysis
Find the county presidential dataset, inspect its files, and compare Democratic and Republican margins in Maricopa County, Arizona, for 2016, 2020, and 2024.
Historical House election tables
Locate the U.S. House returns, check their documentation, and build a table of candidate vote totals and calculated margins for Pennsylvania's 2024 congressional races.
Local reporting background
Locate and inspect the relevant precinct release, then summarize 2024 presidential results for Wake County, North Carolina, as background for a local election story.
Voting mode comparison
Find Georgia's 2024 precinct data, inspect its documentation, and compare the presidential vote totals reported for separate voting modes without adding them to overall totals.
Published result verification
Find the county presidential returns and inspect the source files, then check a reported 2024 candidate margin in Dane County, Wisconsin, against the underlying vote records.
Election analysis teaching material
Locate the county presidential dataset, review its documentation, and create a worked example calculating candidate vote shares for Allegheny County, Pennsylvania, in 2020 and 2024.
More on MIT Election Lab dataset search and Windsurf
Overview
MIT Election Lab dataset search in other agents
Questions about MIT Election Lab dataset search in Windsurf
Can Windsurf use MIT Election Lab dataset search?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run MIT Election Lab dataset search like any built-in tool.
How much does MIT Election Lab dataset search cost in Windsurf?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use MIT Election Lab dataset search in Windsurf?
No. Spiral runs MIT Election Lab dataset search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up MIT Election Lab dataset search in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while MIT Election Lab dataset search runs?
MIT Election Lab dataset search runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.
How far back do the election results go?
Coverage depends on the dataset. MEDSL's county presidential returns span 2000 through 2024, while its U.S. House district returns span 1976 through 2024.
Is this a live election results source?
Use MEDSL's precinct releases for historical analysis. The 2024 precinct dataset took over 500 days after polls closed to become ready for release.
Where does MEDSL get the returns?
MEDSL starts with state election authorities and collects from county authorities when precinct data is unavailable statewide. It sometimes fills collection gaps using OpenElections.
Are all precinct vote counts public?
Some small jurisdictions in California, Kansas, Nevada, and New Mexico withhold counts for privacy. In the 2024 precinct data, an asterisk marks these suppressed counts.
Why can adding the vote records produce an inflated total?
Some states report both separate voting modes and TOTAL rows. MEDSL warns that combining those rows can double-count the same votes.
Start using MIT Election Lab dataset search in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


