Appearance
Firecrawl MCP + Windsurf
Updated Feb 2026Set up Firecrawl's MCP server in Windsurf (Codeium's AI IDE) to give Cascade, Windsurf's AI assistant, web scraping and searching capabilities.
Source: docs.firecrawl.dev/developer-guides/mcp-setup-guides/windsurf
Prerequisites
- Windsurf IDE installed
- Node.js 18+ with
npxavailable - A Firecrawl API key
Configuration
Add the Firecrawl MCP server to Windsurf's model configuration file.
Step 1: Open the Config File
The Windsurf MCP configuration is stored at:
- macOS/Linux:
~/.codeium/windsurf/model_config.json - Windows:
%USERPROFILE%\.codeium\windsurf\model_config.json
Create the file if it does not exist.
Step 2: Add the Server
Add the following to model_config.json:
json
{
"mcpServers": {
"firecrawl": {
"command": "npx",
"args": ["-y", "firecrawl-mcp"],
"env": {
"FIRECRAWL_API_KEY": "fc-your-api-key"
}
}
}
}Step 3: Restart Windsurf
Restart Windsurf or reload the window for the MCP server to be detected.
Windows Troubleshooting
If npx is not found on Windows, use the full path:
json
{
"mcpServers": {
"firecrawl": {
"command": "C:\\Program Files\\nodejs\\npx.cmd",
"args": ["-y", "firecrawl-mcp"],
"env": {
"FIRECRAWL_API_KEY": "fc-your-api-key"
}
}
}
}Find your npx.cmd path with:
bash
where npxRemote MCP (Alternative)
Use Firecrawl's remote MCP endpoint to avoid running the server locally:
json
{
"mcpServers": {
"firecrawl": {
"url": "https://mcp.firecrawl.dev/YOUR_API_KEY_HERE/v2/mcp"
}
}
}Replace YOUR_API_KEY_HERE with your Firecrawl API key.
Remote URL Contains Your Key
The remote MCP URL embeds your API key directly. Do not commit this file to version control.
Available Tools
Once configured, these tools become available to Cascade:
| Tool | Description |
|---|---|
firecrawl_scrape | Scrape a single URL and return markdown |
firecrawl_search | Search the web and return results |
firecrawl_crawl | Crawl a website starting from a URL |
firecrawl_map | Discover all URLs on a website |
firecrawl_extract | Extract structured data from pages |
firecrawl_batch_scrape | Scrape multiple URLs in one request |
Verify Setup
After adding the configuration:
- Restart Windsurf
- Open the Cascade AI panel
- Ask: "Scrape https://firecrawl.dev and tell me what it does"
- Cascade should invoke the
firecrawl_scrapetool and return a summary
Self-Hosted Option
If you run a self-hosted Firecrawl instance, add the FIRECRAWL_API_URL environment variable:
json
{
"mcpServers": {
"firecrawl": {
"command": "npx",
"args": ["-y", "firecrawl-mcp"],
"env": {
"FIRECRAWL_API_KEY": "fc-your-api-key",
"FIRECRAWL_API_URL": "http://localhost:3002"
}
}
}
}