# How to connect VoteHub Polling API to Cursor

> Connect VoteHub Polling API to Cursor with the Firecrawl MCP server. Use VoteHub Polling API as an MCP tool in Cursor via Firecrawl Alexandria.

To connect VoteHub Polling API to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for VoteHub Polling API data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor uses VoteHub Polling API as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for VoteHub Polling API.

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 VoteHub Polling API to Cursor?

### 1. Install the Firecrawl MCP server

Open the [install dialog in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9), check that the URL is Firecrawl's hosted server, then select Install.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9)

![Cursor's Install MCP server dialog with the Firecrawl hosted server URL](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-install-firecrawl-mcp-server.webp)

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

![Cursor's MCP list showing Firecrawl connected with its tools enabled](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-firecrawl-mcp-connected.webp)

### 3. Ask Cursor's agent for the data

In the agent chat, ask in plain language and mention VoteHub Polling API or Firecrawl Alexandria. The agent finds the VoteHub Polling API capability that fits and runs it. For example:

```text
Use Firecrawl to run VoteHub Polling API's Get poll capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Cursor do with VoteHub Polling API?

US election and approval polls from the VoteHub Polling API (api.votehub.com, CC BY 4.0): Senate, House, governor and other race polls, the generic congressional ballot, presidential approval and favorability, each with pollster, sponsors, fieldwork dates, sample size, population, answers and VoteHub's internal and partisan flags, so independent polls can be separated from campaign and party-aligned releases.

Cursor can run any of VoteHub Polling API's 4 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Get poll**: One VoteHub poll by id with pollster, sponsors, dates, sample, answers, leader margin, internal and partisan flags, the original source URL and CC BY 4.0 attribution. Costs 5 Firecrawl credits per call.
- **List pollsters**: Distinct pollster names in VoteHub's database, sorted, optionally filtered by a partial name match. Costs 5 Firecrawl credits per call.
- **List subjects**: Every subject VoteHub has polls for (2026 races such as '2026 Texas' or '2026 NY-23', people, institutions) with the poll types each has, plus the full list of poll types. Filter by poll type or a partial subject match. Costs 5 Firecrawl credits per call.
- **Search polls**: Search VoteHub's poll database: filter by poll type, subject (race, person or institution, partial match, dashes and spaces interchangeable), pollster (partial match), fieldwork end-date range, minimum sample size, population and sponsorship (independent, partisan, internal). Returns polls sorted by fieldwork end date with each poll's internal and partisan flags, a sponsorship class and the leader's margin, plus counts of independent, partisan and internal polls among all matches, so an answer does not rest on one campaign's own poll. Includes CC BY 4.0 attribution. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name VoteHub Polling API or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to run VoteHub Polling API's Get poll capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20VoteHub%20Polling%20API's%20Get%20poll%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run VoteHub Polling API's List pollsters capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20VoteHub%20Polling%20API's%20List%20pollsters%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run VoteHub Polling API's List subjects capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20VoteHub%20Polling%20API's%20List%20subjects%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run VoteHub Polling API's Search polls capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20VoteHub%20Polling%20API's%20Search%20polls%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `votehub-com` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why can't Cursor find VoteHub Polling API?

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 VoteHub Polling API in other AI apps

- [VoteHub Polling API in ChatGPT](https://alexandria.firecrawl.dev/providers/votehub-com/connect/chatgpt)
- [VoteHub Polling API in Claude](https://alexandria.firecrawl.dev/providers/votehub-com/connect/claude)
- [VoteHub Polling API in Grok Bot](https://alexandria.firecrawl.dev/providers/votehub-com/connect/grok-bot)
- [VoteHub Polling API in Muse](https://alexandria.firecrawl.dev/providers/votehub-com/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect France public medicines database (BDPM) to Cursor](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/cursor)
- [How to connect ClinicalTrials.gov to Cursor](https://alexandria.firecrawl.dev/providers/clinicaltrials-gov/connect/cursor)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to Cursor](https://alexandria.firecrawl.dev/providers/cms-gov/connect/cursor)
- [How to connect CDC PLACES local health estimates (data.cdc.gov) to Cursor](https://alexandria.firecrawl.dev/providers/data-cdc-gov/connect/cursor)

Full setup guide: [Firecrawl in Cursor](https://www.firecrawl.dev/integrations/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, VoteHub Polling API 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 VoteHub Polling API MCP server for Cursor?

Cursor reaches VoteHub Polling API through Firecrawl's hosted MCP server, which serves VoteHub Polling API 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 VoteHub Polling API.

### What does connecting VoteHub Polling API to Cursor unlock?

Cursor can run all 4 of VoteHub Polling API's capabilities, including Get poll, List pollsters and List subjects, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine VoteHub Polling API with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own VoteHub Polling API account or API key to use it in Cursor?

No. Cursor calls VoteHub Polling API through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate VoteHub Polling API account or API key.

### How much does it cost to use VoteHub Polling API in Cursor?

Each VoteHub Polling API call costs 5 Firecrawl credits. 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 VoteHub Polling API?

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 VoteHub Polling API 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 VoteHub Polling API capabilities are available there. Keyless connections don't include Alexandria.
