# How to connect The Companies API to Cursor

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

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

Cursor uses The Companies API as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for The Companies 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 The Companies 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 The Companies API or Firecrawl Alexandria. The agent finds the The Companies API capability that fits and runs it. For example:

```text
Use Firecrawl to answer this: What industry, headcount, and headquarters does The Companies API list for stripe.com?
```

## What can Cursor do with The Companies API?

Company profiles from a domain or work email, email formats, and attribute search.

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

- **Company from domain**: One company profile. An empty object means no company was found, and costs nothing. Costs 1 Firecrawl credit per record.
- **Company from email**: company is the company profile, or null when none matched. email is the parsed address: domain, pattern, and validity flags. Costs 1 Firecrawl credit per record.
- **Email patterns**: Patterns, most used first. [F] is the first name, [L] the last name, [F1] the first initial. Costs 1 Firecrawl credit per record.
- **Company search**: One page of company profiles, same shape as companies/enrich. meta.total is the match count and meta.lastPage the last page. Costs 1 Firecrawl credit per company returned.

## What should I ask Cursor?

Name The Companies API or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to answer this: What industry, headcount, and headquarters does The Companies API list for stripe.com?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20What%20industry%2C%20headcount%2C%20and%20headquarters%20does%20The%20Companies%20API%20list%20for%20stripe.com%3F)
- [Use Firecrawl to answer this: Which company is behind the work address support@stripe.com, according to The Companies API?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20Which%20company%20is%20behind%20the%20work%20address%20support%40stripe.com%2C%20according%20to%20The%20Companies%20API%3F)
- [Use Firecrawl to answer this: What email address formats does the company at stripe.com use, and how often is each one used?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20What%20email%20address%20formats%20does%20the%20company%20at%20stripe.com%20use%2C%20and%20how%20often%20is%20each%20one%20used%3F)
- [Use Firecrawl to find one fintech company in The Companies API, then list the email formats its domain uses.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20find%20one%20fintech%20company%20in%20The%20Companies%20API%2C%20then%20list%20the%20email%20formats%20its%20domain%20uses.)

### For agents

Start with the `thecompaniesapi` 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 The Companies 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 The Companies API in other AI apps

- [The Companies API in ChatGPT](https://alexandria.firecrawl.dev/providers/thecompaniesapi/connect/chatgpt)
- [The Companies API in Claude](https://alexandria.firecrawl.dev/providers/thecompaniesapi/connect/claude)
- [The Companies API in Grok Bot](https://alexandria.firecrawl.dev/providers/thecompaniesapi/connect/grok-bot)
- [The Companies API in Muse](https://alexandria.firecrawl.dev/providers/thecompaniesapi/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 Benzinga to Cursor](https://alexandria.firecrawl.dev/providers/benzinga/connect/cursor)
- [How to connect Apollo to Cursor](https://alexandria.firecrawl.dev/providers/apollo/connect/cursor)
- [How to connect Fiscal.ai to Cursor](https://alexandria.firecrawl.dev/providers/fiscal-ai/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, The Companies 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 The Companies API MCP server for Cursor?

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

### What does connecting The Companies API to Cursor unlock?

Cursor can run all 4 of The Companies API's capabilities, including Company from domain, Company from email and Email patterns, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to answer this: What industry, headcount, and headquarters does The Companies API list for stripe.com?" In the same conversation, Cursor can combine The Companies API with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

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

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

### How much does it cost to use The Companies API in Cursor?

Each The Companies API call costs 1 Firecrawl credit per billed unit, so the total depends on 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 The Companies 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 The Companies 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 The Companies API capabilities are available there. Keyless connections don't include Alexandria.
