Running cursor on windows but working with wsl
Please write a guide about how to configure this when running cursor on windows 11 and using WSL distro on it.
I also can't run firecrawl MCP on WSL in windows10. Need help to setting.
Hey all, have you tried this? cmd /c "set FIRECRAWL_API_KEY=your-api-key && npx -y firecrawl-mcp"
Hey all, have you tried this?
cmd /c "set FIRECRAWL_API_KEY=your-api-key && npx -y firecrawl-mcp"
yes, doesn't work
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
same error. I always get "client closed" error.
Cursor team said they had not yet supported over WSL or SSH fully yet. And try to get this sorted in the future. 🤦♂️
It's not working even in Windows itself
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\"}"
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
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
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.
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 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.
@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.
Same here
Same for me too. I installed cursor on windows 10,and runned the terminal in WSL-2
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.
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
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
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?