Can't connect the MCP server BraveSearch
What happened?
Hi, I tried to install the MCP server BraveSearch. While the server seems to start flawlessly using npx, Cline can't connect it and raises an error:
Error executing MCP tool: Not connected
Then Cline continues to suggest other options, and even built a docker image and started a docker container. The container starts well, but Cline keeps on raising the same error. Note that I could provide it with my bravesearch API key successfully, it doesn't raise any error with that.
I use Clause 3.5 sonnet model.
Steps to reproduce
- Install BraveSearch MCP server with Claude 3.5 sonnet
- Fill your API key
- Cline raises the error "Error executing MCP tool: Not connected"
Relevant API REQUEST output
Operating System
windows 11
Cline Version
3.4.5
Additional context
I've let Cline continue, it gave up with the container and retried working with npx. It did some changes somewhere:
I had to start manually the MCP server as Cline didn't make it by itself:
$env:BRAVE_API_KEY="MY_API_KEY"; npx -y @modelcontextprotocol/server-brave-search
Then, it could connect it successfully! I don't know what changed, but it's working finally.
In my previous comment, it worked when I started manually the MCP server. Now, I understand it should start automatically, which is not the case. I tried to deploy another MCP server (server-github) and run into the same problem again.
In addition, I rebooted and Cline can no longer connect the Brave Search MCP server again...
you can check your mcp_settings file, you have to write "cmd" in command term, and add "/c","npx" to your "args" term,just like the following example: "sequential-thinking": { "command": "cmd", "args": [ "/c", "npx", "-y", "@modelcontextprotocol/server-sequential-thinking" ], "autoApprove": [ "sequentialthinking" ] }
looks like it did the trick, many thanks!
Unfortunately it did not fixed issue for me. I still get Not Connected for every MCP while when I use Claude app MCP works.