⚫⚫⚫⚪⚪ Intermediate Difficulty | ⏱️ 15-30 Minutes Setup Time
This guide is a companion to my tutorial video on setting up Claude Code and configuring MCP servers. While the process should be straightforward, you might encounter some issues that require troubleshooting.
- Node.js installed
- Terminal access
- Anthropic API key
- Brave API key (optional, for search demo)
- Admin permissions
- This guide has been tested on macOS
- Some commands may require different syntax on Windows
- Warp terminal users may encounter issues - use native terminal if problems occur
- Keep note of any error messages for troubleshooting
Run in your terminal:
npm install -g @anthropic-ai/claude-code[Follow Full Claude Code Instructions Here] (https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview)
Run these commands:
claude mcp add fetch npx @modelcontextprotocol/server-fetchThere are two potential methods to set up Brave Search with environment variables:
Method 1 (--env):
claude mcp add brave-search npx @modelcontextprotocol/server-brave-search --env BRAVE_API_KEY=YOUR_API_KEYMethod 2 (-e):
claude mcp add brave-search npx @modelcontextprotocol/server-brave-search -e BRAVE_API_KEY=YOUR_API_KEYImportant: Run this in a separate terminal window:
claude mcp serveStart Claude Code:
claude-
Warp Terminal Issues
- Switch to native terminal
- Restart terminal after configuration changes
-
Environment Variables
- Try both --env and -e methods
- Verify API key format
- Check for extra spaces
-
Context Issues
- Sometimes Claude needs multiple prompts to understand MCP context
- Try closing and reopening Claude
-
Connection Problems
- Ensure MCP serve is running in separate terminal
- Check terminal outputs for errors
- Verify API keys are valid
- Always run
claude mcp servein a separate terminal window - Restart terminal after making configuration changes
- When using Warp, switch to native terminal if issues occur
- Keep MCP serve running while using Claude
- Monitor terminal output for error messages
- Claude Code Documentation: https://docs.anthropic.com/claude/docs/claude-code
- Brave Search MCP Server: https://github.com/modelcontextprotocol/servers/tree/main/src/brave-search
- Fetch MCP Server: https://github.com/modelcontextprotocol/servers/tree/main/src/fetch