[Integrations](https://spiral.ai/integrations) › [Raycast](https://spiral.ai/integrations/raycast) › [MIT Election Lab dataset search](https://spiral.ai/integrations/raycast/mit-election-lab-dataset-search)

# How to Use MIT Election Lab dataset search in Raycast

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.

|  |  |
| --- | --- |
| Model | MIT Election Lab dataset search |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MIT Election Lab dataset search in Raycast

- Use MIT Election Lab dataset search to find county presidential returns covering the 2020 and 2024 elections, and list the matching titles and descriptions.
- Use MIT Election Lab dataset search to find 2024 precinct election datasets for North Carolina, and explain what geographic detail their descriptions promise.
- Use MIT Election Lab dataset search to look this up and give me the result as a table.
- 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 Raycast

Pick the way that suits you. Each takes about two minutes.

### Use the Raycast connector

1. **Install the server**: In Raycast run Install MCP Server. Name it Spiral, set Transport to HTTP, paste this URL and keep OAuth Type on Dynamic:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Spiral opens in your browser: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Raycast never sees it, and you can remove it under Settings › Connected apps in the console.

### Use the Spiral skill

1. **Send Raycast this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run MIT Election Lab dataset search**: One request; the result comes back by polling or a webhook.

```bash
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: Raycast finds MIT Election Lab dataset search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/raycast

## MIT Election Lab dataset search tools and prices

- [Harvard Dataverse: MIT Election Data and Science Lab returns · Search datasets](https://spiral.ai/tools/alexandria/dataverse-harvard-edu/elections/search_datasets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 1000 | — | 1-based page. |
| sort | name, date | — | Sort by name or date instead of relevance. |
| order | asc, desc | — | order |
| query |  | — | Search terms (Solr syntax); omitted or `*` lists every dataset. |
| per_page | 1 to 100 | — | Results per page, default 20. |
| dataverse |  | — | Dataverse alias to search under, sub-dataverses included. Default `medsl`; e.g. `2024_precincts`, `medsl_house`. Pattern: ^[A-Za-z0-9_-]+$. |

## What can you do with MIT Election Lab dataset search in Raycast?

Answer historical election questions with MEDSL vote records, such as how a county's presidential margin changed. A chat app can find the appropriate release, explain its coverage, and turn candidate totals into a readable comparison.

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

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Raycast guides](https://spiral.ai/integrations/raycast)

## MIT Election Lab dataset search in other agents

- [Amp](https://spiral.ai/integrations/amp/mit-election-lab-dataset-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/mit-election-lab-dataset-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/mit-election-lab-dataset-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/mit-election-lab-dataset-search)
- [Cline](https://spiral.ai/integrations/cline/mit-election-lab-dataset-search)
- [Codex](https://spiral.ai/integrations/codex/mit-election-lab-dataset-search)
- [Cursor](https://spiral.ai/integrations/cursor/mit-election-lab-dataset-search)
- [Devin](https://spiral.ai/integrations/devin/mit-election-lab-dataset-search)
- [dots](https://spiral.ai/integrations/dots/mit-election-lab-dataset-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/mit-election-lab-dataset-search)
- [Gemini](https://spiral.ai/integrations/gemini/mit-election-lab-dataset-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/mit-election-lab-dataset-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/mit-election-lab-dataset-search)
- [goose](https://spiral.ai/integrations/goose/mit-election-lab-dataset-search)
- [Grok](https://spiral.ai/integrations/grok/mit-election-lab-dataset-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/mit-election-lab-dataset-search)
- [Hermes](https://spiral.ai/integrations/hermes/mit-election-lab-dataset-search)
- [Instinct](https://spiral.ai/integrations/instinct/mit-election-lab-dataset-search)
- [Manus](https://spiral.ai/integrations/manus/mit-election-lab-dataset-search)
- [Muse](https://spiral.ai/integrations/muse/mit-election-lab-dataset-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/mit-election-lab-dataset-search)
- [n8n](https://spiral.ai/integrations/n8n/mit-election-lab-dataset-search)
- [Notion](https://spiral.ai/integrations/notion/mit-election-lab-dataset-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/mit-election-lab-dataset-search)
- [opencode](https://spiral.ai/integrations/opencode/mit-election-lab-dataset-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/mit-election-lab-dataset-search)
- [VS Code](https://spiral.ai/integrations/vscode/mit-election-lab-dataset-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/mit-election-lab-dataset-search)
- [Zapier](https://spiral.ai/integrations/zapier/mit-election-lab-dataset-search)

## More Raycast guides

- [MIT Election Lab dataset details](https://spiral.ai/integrations/raycast/mit-election-lab-dataset-details)
- [MIT Election Lab election returns](https://spiral.ai/integrations/raycast/mit-election-lab-election-returns)
- [JPL Horizons state vectors](https://spiral.ai/integrations/raycast/jpl-horizons-state-vectors)
- [MorphoSource media record](https://spiral.ai/integrations/raycast/morphosource-media-record)
- [JPL Horizons orbital elements](https://spiral.ai/integrations/raycast/jpl-horizons-orbital-elements)
- [MorphoSource media search](https://spiral.ai/integrations/raycast/morphosource-media-search)

## Questions about MIT Election Lab dataset search in Raycast

**Can Raycast use MIT Election Lab dataset search?**

Yes. Add Spiral to Raycast as an MCP server, and Raycast can find and run MIT Election Lab dataset search like any built-in tool.

**How much does MIT Election Lab dataset search cost in Raycast?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Raycast plan is separate.

**Do I need an Alexandria account to use MIT Election Lab dataset search in Raycast?**

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 Raycast?**

About two minutes: install the server, then sign in to Spiral and approve.

**Does Raycast wait while MIT Election Lab dataset search runs?**

MIT Election Lab dataset search runs in the background. Raycast 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.

