Brave Search MCP Server Installation Error

Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
Activity 11 comments · opened Mar 5, 2025 · closed Mar 6, 2025
💡 Likely answer: A maintainer (ashwin-ant, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
I have installed the brave-search mcp server and when i start the claude code with --mcp-debug option I get the following error
MCP server "brave-search" Connection failed: spawn npx -y @modelcontextprotocol/server-brave-search ENOENT

Environment Info

  • Platform: macos
  • Terminal: ghostty
  • Version: 0.2.31
  • Feedback ID: 12b30572-8855-49d9-87b8-2a1386775b2b

View original on GitHub ↗

11 Comments

ashwin-ant collaborator · 1 year ago

Can you run which npx in your terminal and see what you get?

BikS2013 · 1 year ago

which npx return this:
/Users/giorgosmarinos/.nvm/versions/node/v22.12.0/bin/npx

ashwin-ant collaborator · 1 year ago

Are you able to use it in the MCP inspector? https://modelcontextprotocol.io/docs/tools/inspector

BikS2013 · 1 year ago

screenshot.pdf
MCP inspector works fine

ashwin-ant collaborator · 1 year ago

What does claude mcp get brave-search print?

BikS2013 · 1 year ago

➜ claude mcp get brave-search
brave-search:
Scope: project
Type: stdio
Command: npx -y @modelcontextprotocol/server-brave-search
Args:
Environment:
➜

ashwin-ant collaborator · 1 year ago

Your configuration is incorrect. The -y @modelcontextprotocol/server-brave-search should be individual arguments. Run this:

claude mcp remove brave-search
claude mcp add brave-search -- npx -y @modelcontextprotocol/server-brave-search
BikS2013 · 1 year ago

You are right
It works fine now,
Thank you so much
Is there any relevant documentation?

BikS2013 · 1 year ago

thank you again
I missed it
Apologies

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.