Claude/Code/Tutorial/Connect to MCP Servers
Properties
- tags
- Diataxis/Tutorial
Tutorial: Connect Claude Code to MCP Servers (Filesystem & Web Browser)
Summary
Before You Start
- Requirements
Node.js ≥ 18 — check with
node --version.Claude Code CLI — install via
npm i -g @anthropic-ai/claude-code(npm page).ANTHROPIC_API_KEYexported in your shell (get one in the Anthropic Console).For web browsing: an Apify account and
APIFY_TOKEN(Apify RAG Web Browser actor).
- Shell shown — commands use Bash/macOS or WSL. On Windows PowerShell, adjust paths and environment-variable syntax.
- Requirements
Steps
1. Install & log in to Claude Code
2. Verify tooling
3. Add the Filesystem MCP server (stdio)
- Start the server in one terminal, exposing two folders: bash
npx -y @modelcontextprotocol/server-filesystem ~/Desktop ~/DownloadsThe server stays running and communicates over stdio. Package info: server-filesystem on npm.
- In a second terminal, register it with Claude Code: bash
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem \ ~/Desktop ~/Downloads - Confirm connection: bash
claude mcp list # ➜ filesystem connected stdio
- Start the server in one terminal, exposing two folders:
4. Add the Apify RAG Web Browser server (SSE)
- Export your Apify token: bash
export APIFY_TOKEN="your-actual-token" - Register the SSE server (pre-loads the actor): bash
claude mcp add web-browse --transport sse \ "https://actors-mcp-server.apify.actor/sse?token=${APIFY_TOKEN}&actors=apify/rag-web-browser" - Check status: bash
claude mcp list # ➜ web-browse connected sse
- Export your Apify token:
5. Use the servers in a session
6. Share configuration (optional)
- Re-add each server at project scope so teammates get them in git.
-s projectwrites.mcp.jsonin the repository root:bashclaude mcp add -s project filesystem -- npx -y @modelcontextprotocol/server-filesystem \ ~/Desktop ~/Downloads claude mcp add -s project web-browse --transport sse \ "https://actors-mcp-server.apify.actor/sse?token=${APIFY_TOKEN}&actors=apify/rag-web-browser" git add .mcp.json git commit -m "Add MCP servers"
- Re-add each server at project scope so teammates get them in git.
Verification
What You Learned
Next Steps
- Browse the Model Context Protocol server gallery to discover more tools.
- Scaffold your own server with
npx @modelcontextprotocol/create-server. - Combine multiple servers to build end-to-end workflows (e.g., DB + browser + scratchpad).