# How to connect Data Legion to Cursor

> Connect Data Legion to Cursor with the Firecrawl MCP server. Use Data Legion as an MCP tool in Cursor via Firecrawl Alexandria.

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

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

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 Data Legion 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 Data Legion or Firecrawl Alexandria. The agent finds the Data Legion capability that fits and runs it. For example:

```text
Use Firecrawl to enrich firecrawl.dev with company size, industry, founding year and headquarters.
```

## What can Cursor do with Data Legion?

Person and company enrichment, current mobile phones for a known person, search by field filters, SQL or an Elasticsearch-style query, and plain-English discovery with person lookalikes. Each product key selects its dataset and field set.

Cursor can run any of Data Legion's 19 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Person enrichment (base-no-contact)**: Matches contain a nested person record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 5 Firecrawl credits per successful enrichment call.
- **Person enrichment (base-with-contact)**: Matches contain a nested person record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 50 Firecrawl credits per successful enrichment call.
- **Person enrichment (premium-no-contact)**: Matches contain a nested person record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 40 Firecrawl credits per successful enrichment call.
- **Person enrichment (premium-with-contact)**: Matches contain a nested person record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 80 Firecrawl credits per successful enrichment call.
- **Person mobile phones**: One match with a nested person record. mobile_phone is the most likely current mobile in E.164; phones lists every current mobile, most likely first, each with confidence high, moderate or low. match_metadata.match_confidence says how sure the person match is, not the phone. Costs 50 Firecrawl credits per successful mobile lookup.
- **Person search (base-no-contact)**: One page of person records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 5 Firecrawl credits per returned search record.
- **Person search (base-with-contact)**: One page of person records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 50 Firecrawl credits per returned search record.
- **Person search (premium-no-contact)**: One page of person records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 40 Firecrawl credits per returned search record.
- **Person search (premium-with-contact)**: One page of person records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 80 Firecrawl credits per returned search record.
- **Person discovery (base-no-contact)**: One page of person records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran, for example that a lookalike generated_query holds placeholders where the seed person's details go. Costs 5 Firecrawl credits per returned discovery record.
- **Person discovery (base-with-contact)**: One page of person records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran, for example that a lookalike generated_query holds placeholders where the seed person's details go. Costs 50 Firecrawl credits per returned discovery record.
- **Person discovery (premium-no-contact)**: One page of person records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran, for example that a lookalike generated_query holds placeholders where the seed person's details go. Costs 40 Firecrawl credits per returned discovery record.
- **Person discovery (premium-with-contact)**: One page of person records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran, for example that a lookalike generated_query holds placeholders where the seed person's details go. Costs 80 Firecrawl credits per returned discovery record.
- **Company enrichment (base)**: Matches contain a nested company record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 10 Firecrawl credits per successful enrichment call.
- **Company enrichment (premium)**: Matches contain a nested company record. Optional fields depend on entitlement and field selection. Data Legion may omit the outer total; when present it reports matches found. Costs 40 Firecrawl credits per successful enrichment call.
- **Company search (base)**: One page of company records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 10 Firecrawl credits per returned search record.
- **Company search (premium)**: One page of company records. next_cursor, when not null, is the cursor option for the next page. A filters search also returns generated_query, the query object the filters compiled to. total is not the number billed. Data Legion may send Total-Count-Status to say whether total is exact, an estimate, or this page. Exchange does not return that header, so treat total as possibly approximate. The warnings field, when present, holds Data Legion's note on how the search was read: a filter no stored value can match (the page is then empty and free), or an abbreviation or short pattern it searched differently. Costs 40 Firecrawl credits per returned search record.
- **Company discovery (base)**: One page of company records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran. Costs 10 Firecrawl credits per returned discovery record.
- **Company discovery (premium)**: One page of company records, plus generated_query, the SQL Data Legion wrote for the description, and next_cursor for the next page (null on the last page). total counts every match and is not the number billed. It can be a lower bound on a broad query. The warnings field, when present, holds Data Legion's note on the search it ran. Costs 40 Firecrawl credits per returned discovery record.

## What should I ask Cursor?

Name Data Legion or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to enrich firecrawl.dev with company size, industry, founding year and headquarters.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20enrich%20firecrawl.dev%20with%20company%20size%2C%20industry%2C%20founding%20year%20and%20headquarters.)
- [Use Firecrawl to get the available monthly employee counts, hires and departures for stripe.com using premium company enrichment.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20get%20the%20available%20monthly%20employee%20counts%2C%20hires%20and%20departures%20for%20stripe.com%20using%20premium%20company%20enrichment.)
- [Use Firecrawl to search the base person dataset for software engineers at Google and return one row.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20search%20the%20base%20person%20dataset%20for%20software%20engineers%20at%20Google%20and%20return%20one%20row.)
- [Use Firecrawl to help with this: Discover enterprise SaaS companies founded after 2015 and return one row.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20help%20with%20this%3A%20Discover%20enterprise%20SaaS%20companies%20founded%20after%202015%20and%20return%20one%20row.)

### For agents

Start with the `datalegion` 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 Data Legion?

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 Data Legion in other AI apps

- [Data Legion in ChatGPT](https://alexandria.firecrawl.dev/providers/datalegion/connect/chatgpt)
- [Data Legion in Claude](https://alexandria.firecrawl.dev/providers/datalegion/connect/claude)
- [Data Legion in Grok Bot](https://alexandria.firecrawl.dev/providers/datalegion/connect/grok-bot)
- [Data Legion in Muse](https://alexandria.firecrawl.dev/providers/datalegion/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect Particle to Cursor](https://alexandria.firecrawl.dev/providers/particle/connect/cursor)
- [How to connect Apollo to Cursor](https://alexandria.firecrawl.dev/providers/apollo/connect/cursor)
- [How to connect FullEnrich to Cursor](https://alexandria.firecrawl.dev/providers/fullenrich/connect/cursor)
- [How to connect People Data Labs to Cursor](https://alexandria.firecrawl.dev/providers/people-data-labs/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, Data Legion 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 Data Legion MCP server for Cursor?

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

### What does connecting Data Legion to Cursor unlock?

Cursor can run all 19 of Data Legion's capabilities, including Person enrichment (base-no-contact), Person enrichment (base-with-contact) and Person enrichment (premium-no-contact), from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to enrich firecrawl.dev with company size, industry, founding year and headquarters." In the same conversation, Cursor can combine Data Legion with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

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

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

### How much does it cost to use Data Legion in Cursor?

Data Legion calls cost from 5 to 80 Firecrawl credits per billed unit, depending on the capability and how much data it returns. 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 Data Legion?

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