How to connect Ballotpedia to Cursor
Add the Firecrawl MCP server to Cursor once and it can call the Ballotpedia API and every other provider in Firecrawl Alexandria, with no Ballotpedia integration code.
To connect Ballotpedia to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for Ballotpedia data in plain language. The connection works in Cursor's agent and chat, and you set it up once.
Cursor uses Ballotpedia as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Ballotpedia.
Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.
How do I connect Ballotpedia to Cursor?
Install the Firecrawl MCP server
Open the install dialog in Cursor, check that the URL is Firecrawl's hosted server, then select Install.

Connect your Firecrawl account
Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

Ask Cursor's agent for the data
In the agent chat, ask in plain language and mention Ballotpedia or Firecrawl Alexandria. The agent finds the Ballotpedia capability that fits and runs it. For example:
Use Firecrawl to run Ballotpedia's Ballot for date capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
What can Cursor do with Ballotpedia?
Ballotpedia, the encyclopedia of American politics and elections: candidates, races and ballot measures for US federal, state and local elections (2022 onward, including the 2026 midterms), e.g. who is running for governor of New Hampshire with party and incumbency. Statewide races by state code, sample ballots and political districts for any address or coordinate, current officeholders, candidate profiles (prior offices, profession, endorsements, campaign websites) and ballot measure details with arguments and donors, from the api4 backend behind Ballotpedia's Sample Ballot Lookup and Who Represents Me tools. Also the newest Ballotpedia News posts (news.ballotpedia.org) as a latest election news feed.
Cursor can run any of Ballotpedia's 8 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.
- Ballot for date: The ballot at a coordinate for one election date: every district with its races (office, stage, seats, candidates with party, incumbency and status) and ballot measures, with the district boundaries as drawn for that date. Works for past elections (since 2022) and upcoming ones. Returns not_found when Ballotpedia has no election on that date at the coordinate. Costs 5 Firecrawl credits per call.
- Ballot measure details: One ballot measure by Ballotpedia id: title, article URL, ballot question, yes/no vote summaries, arguments for and against with authors and sources, and the committee, donor and social-link sections as returned. Costs 5 Firecrawl credits per call.
- Candidate details: Ballotpedia candidate profile and background data (election candidates for governor, Congress, state legislature and local office) for one or more candidate ids from a race: current offices, campaign contact channels, endorsements and the presence of a Candidate Connection survey. Unknown ids are reported in missing_ids; when none of the ids is known the call fails with not_found. Costs 5 Firecrawl credits per call.
- Districts for coordinate: Every political district Ballotpedia places a coordinate in, per election date: federal, state, congressional, state legislative, county, county subdivision, city/town, city council ward, school district, judicial district and their subdivisions. Districts are listed per election (boundaries as they applied on that date) and as a deduplicated set with the election dates each district appears on. Upcoming elections only by default; include_historical adds every election since 2022. Costs 5 Firecrawl credits per call.
- Geocode address: Resolve a US street address to the latitude/longitude Ballotpedia's lookup tools use. Runs Ballotpedia's address autocomplete (Esri via Amazon Location, US only) and geocodes the best suggestion. Returns not_found when the address produces no suggestion. Costs 5 Firecrawl credits per call.
- Latest: The newest Ballotpedia News posts (news.ballotpedia.org: election coverage, 2026 election analysis, ballot measures, federal, state and local politics, the Daily Brew newsletter) in the shared latest-feed shape: canonical url, publishedAt (RFC 3339 UTC, from the post's WordPress date_gmt publish instant, to the second), title and source "ballotpedia", plus category, the post's Ballotpedia News section. Newest first and de-duplicated by url. Reads the 100 newest posts of the site or of one section, so at most 100 items come back. Without a filter no section contributes more than a third of limit (at least 5), so the daily newsletter cannot crowd out election coverage. since (or its alias publishedSince) keeps only items published at or after that instant; nothing new since then is an empty list, not an error. The ballotpedia.org wiki itself (results pages such as Election_results,_2026) sits behind an AWS WAF JavaScript challenge and is not read. Costs 1 Firecrawl credit per call.
- Officeholders for coordinate: Current officeholders for a coordinate from Ballotpedia's Who Represents Me: districts (congressional, state legislative, state, and local where Ballotpedia covers it) with their offices and the people currently holding them, with party, Ballotpedia article URL and photo. Returns not_found for a coordinate outside Ballotpedia's US coverage. Costs 5 Firecrawl credits per call.
- Statewide races: Statewide races and candidates for a US state by two-letter code, no address needed: governor, U.S. Senate, lieutenant governor, attorney general, secretary of state and other statewide offices, plus statewide ballot measures, for one election date (default: the next upcoming election). Each race lists its candidates with party, incumbency and ballot status and links to Ballotpedia's election article, e.g. the 2026 New Hampshire gubernatorial election (Democratic nominee, Republican incumbent, Libertarian). Elections since 2022 work. Returns not_found when Ballotpedia lists no statewide race or measure in the state on that date. Costs 5 Firecrawl credits per call.
What should I ask Cursor?
Name Ballotpedia or Firecrawl Alexandria in the prompt so Cursor reaches for it. Each example opens in Cursor with the prompt filled in.
- Use Firecrawl to run Ballotpedia's Ballot for date capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run Ballotpedia's Ballot measure details capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run Ballotpedia's Candidate details capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
- Use Firecrawl to run Ballotpedia's Districts for coordinate capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
Troubleshooting
Why can't Cursor find Ballotpedia?
If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.
Firecrawl shows a red dot in Cursor. What should I do?
Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.
Use Ballotpedia in other AI apps
The same Firecrawl account reaches Ballotpedia from other AI apps. Pick one for its setup steps:
Other data providers you can connect to Cursor
Frequently Asked Questions
What is Firecrawl?
Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl MCP server brings those tools into Cursor, along with every data provider in Firecrawl Alexandria.
What is Firecrawl Alexandria?
Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Ballotpedia among them. Each provider returns structured data through documented capabilities. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.
Is there a Ballotpedia MCP server for Cursor?
Cursor reaches Ballotpedia through Firecrawl's hosted MCP server, which serves Ballotpedia and every other Alexandria provider as tools. Add the Firecrawl MCP server once and you don't install or host a separate MCP server for Ballotpedia.
What does connecting Ballotpedia to Cursor unlock?
Cursor can run all 8 of Ballotpedia's capabilities, including Ballot for date, Ballot measure details and Candidate details, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine Ballotpedia with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.
Do I need my own Ballotpedia account or API key to use it in Cursor?
No. Cursor calls Ballotpedia through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Ballotpedia account or API key.
How much does it cost to use Ballotpedia in Cursor?
Ballotpedia calls cost from 1 to 5 Firecrawl credits, depending on the capability. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Cursor, and finding the right capability is free.
Can Cursor use other providers besides Ballotpedia?
Yes. The same Firecrawl MCP server reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.
Can I use Ballotpedia in other AI apps?
Yes. Connect Firecrawl to ChatGPT, Claude, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Ballotpedia capabilities are available there. Keyless connections don't include Alexandria.