?? Windows vs Linux 配置區別
Windows 配置特點:
- 使用
"cmd"
作為命令 - 需要
"/c"
參數來執行命令 - 路徑分隔符使用反斜杠
\
Linux/macOS 配置特點:
- 直接使用命令名(如
"npx"
,"uvx"
) - 不需要
/c
參數 - 路徑分隔符使用正斜杠
/
?? 跨平臺配置命令
Brave Search MCP(需要API密鑰)
Windows:
claude mcp add-json brave-search '{"command":"cmd","args":["/c","npx","-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'
Linux/macOS:
claude mcp add-json brave-search '{"command":"npx","args":["-y","brave-search-mcp"],"env":{"BRAVE_API_KEY":"YOUR_API_KEY_HERE"}}'
Tavily MCP - AI增強搜索(推薦,有免費額度)
1. 注冊獲取API密鑰:https://www.tavily.com/
Windows:
claude mcp add-json tavily-search "{