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
11 Comments
Can you run
which npxin your terminal and see what you get?which npx return this:
/Users/giorgosmarinos/.nvm/versions/node/v22.12.0/bin/npx
Are you able to use it in the MCP inspector? https://modelcontextprotocol.io/docs/tools/inspector
screenshot.pdf
MCP inspector works fine
What does
claude mcp get brave-searchprint?➜ claude mcp get brave-search
brave-search:
Scope: project
Type: stdio
Command: npx -y @modelcontextprotocol/server-brave-search
Args:
Environment:
➜
Your configuration is incorrect. The
-y @modelcontextprotocol/server-brave-searchshould be individual arguments. Run this:You are right
It works fine now,
Thank you so much
Is there any relevant documentation?
We have docs about this here: https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp
thank you again
I missed it
Apologies
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.