firecrawl-mcp-server icon indicating copy to clipboard operation
firecrawl-mcp-server copied to clipboard

Running cursor on windows but working with wsl

Open brajeshpepedeals opened this issue 10 months ago • 19 comments

Please write a guide about how to configure this when running cursor on windows 11 and using WSL distro on it.

brajeshpepedeals avatar Feb 28 '25 12:02 brajeshpepedeals

I also can't run firecrawl MCP on WSL in windows10. Need help to setting.

Image

kieojk avatar Mar 01 '25 16:03 kieojk

Hey all, have you tried this? cmd /c "set FIRECRAWL_API_KEY=your-api-key && npx -y firecrawl-mcp"

nickscamara avatar Mar 01 '25 19:03 nickscamara

Hey all, have you tried this? cmd /c "set FIRECRAWL_API_KEY=your-api-key && npx -y firecrawl-mcp"

yes, doesn't work

brajeshpepedeals avatar Mar 03 '25 05:03 brajeshpepedeals

I also tried using nvm. I also tried using my root URL. Something like this

cmd c/ "env FIRECRAWL_API_KEY=API-KEY && C:\nvm4w\nodejs\node.exe -y C:\nvm4w\nodejs\node_modules\firecrawl-mcp\dist\index.js";

note: i tried with and without cmd, env or set, node, npx.

i always get this Client closed

Ranteck avatar Mar 03 '25 22:03 Ranteck

same error. I always get "client closed" error.

piemree avatar Mar 04 '25 00:03 piemree

Cursor team said they had not yet supported over WSL or SSH fully yet. And try to get this sorted in the future. 🤦‍♂️

Image

kieojk avatar Mar 05 '25 08:03 kieojk

It's not working even in Windows itself

ubranch avatar Mar 08 '25 00:03 ubranch

The following smithery command is working for me on windows on cursor 0.46.11: cmd /c npx -y @smithery/cli@latest run @mendableai/mcp-server-firecrawl --config "{\"fireCrawlApiKey\":\"your-api-key-here\"}"

AxelBL avatar Mar 11 '25 06:03 AxelBL

The following smithery command is working for me on windows on cursor 0.46.11: cmd /c npx -y @smithery/cli@latest run @mendableai/mcp-server-firecrawl --config "{\"fireCrawlApiKey\":\"your-api-key-here\"}"

life saver, thank you

neko avatar Mar 11 '25 10:03 neko

The following smithery command is working for me on windows on cursor 0.46.11: cmd /c npx -y @smithery/cli@latest run @mendableai/mcp-server-firecrawl --config "{\"fireCrawlApiKey\":\"your-api-key-here\"}"

perfect, works for me too, thx

NacimHarfouche avatar Mar 14 '25 13:03 NacimHarfouche

I guess, the issue is with Cursor. When you change the termination type for the terminal to not close after exiting the service, and then using cmd /c "set FIRECRAWL_API_KEY=your-api-key && npx -y firecrawl-mcp"

an error gets displayed hinting at an invalid json ( "}" is missing)

Smithery is using a wrapper and -- config and thus running a different code branch.

AxelBL avatar Mar 14 '25 18:03 AxelBL

The following smithery command is working for me on windows on cursor 0.46.11: cmd /c npx -y @smithery/cli@latest run @mendableai/mcp-server-firecrawl --config "{\"fireCrawlApiKey\":\"your-api-key-here\"}"

hi can you give the JSON command My cursor MCP UI is not showing it directly take me to mcp.json file

apexbs avatar Mar 16 '25 11:03 apexbs

@apexbs same thing for me. I don't get a UI when adding an MCP server.

this should be the syntax, it's just a list in the array for each thing that is separated by a space in the command.

This does not work for me though

{
  "mcpServers": {
    "firecrawl": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@smithery/cli@latest",
        "run",
        "@mendableai/mcp-server-firecrawl",
        "--config",
        "\"{\"fireCrawlApiKey\":\"your-api-key\"}\""
      ],
      "enabled": true
    }
  }
}

the command shows up for me in the ui but it pops up two command prompt windows (which don't close automatically) and the little light stays red.

Image

tvl83 avatar Mar 17 '25 04:03 tvl83

@apexbs same thing for me. I don't get a UI when adding an MCP server.

this should be the syntax, it's just a list in the array for each thing that is separated by a space in the command.

This does not work for me though

{ "mcpServers": { "firecrawl": { "command": "cmd", "args": [ "/c", "npx", "-y", "@smithery/cli@latest", "run", "@mendableai/mcp-server-firecrawl", "--config", ""{"fireCrawlApiKey":"your-api-key"}"" ], "enabled": true } } } the command shows up for me in the ui but it pops up two command prompt windows (which don't close automatically) and the little light stays red.

Image

Same here

pedroccm avatar Mar 17 '25 13:03 pedroccm

Same for me too. I installed cursor on windows 10,and runned the terminal in WSL-2

Image

Image

kieojk avatar Mar 17 '25 16:03 kieojk

I went so far as to install ubuntu desktop in virtualbox and set up cursor and I am getting a similar result, it does not ever show up as a green icon in cursor.

tvl83 avatar Mar 17 '25 16:03 tvl83

try to instaal via wsl

"firecrawl": { "command": "wsl", "args": [ "npx", "-y", "@smithery/cli@latest", "run", "@mendableai/mcp-server-firecrawl", "--config", ""{\"fireCrawlApiKey\":\"fc-a050743b51444dbaa07ff95801d82bda\"}"" ], "enabled": true },

to more tips: https://www.youtube.com/@felvieira_dev

felvieira avatar Mar 17 '25 20:03 felvieira

I solved the problem which involved figuring out how to run MCP Server on Cursor with WSL2 :

Fill in the MCP Server name as firecrawl-mcp, choose command for Type, and enter the following command: wsl env FIRECRAWL_API_KEY=fc-YOUR_FIRECRAWL_API_KEY /home/kk/nodejs2011/bin/npx -y firecrawl-mcp

The npx executable is located at /home/kk/nodejs2011/bin/npx, which is the path where you installed it

Image

kieojk avatar Mar 30 '25 09:03 kieojk

wsl env FIRECRAWL_API_KEY=fc-YOUR_FIRECRAWL_API_KEY /home/kk/nodejs2011/bin/npx -y firecrawl-mcp

Could you please provide the JSON code?

VipulSoniwork avatar Apr 05 '25 18:04 VipulSoniwork