What Are MCP Servers?
MCP (Model Context Protocol) servers extend Claude Code with connections to external systems:- Browser automation (Playwright, Chrome DevTools)
- Documentation fetching (Context7, DeepWiki)
- Cloud services (AWS, GitHub, Slack)
- Databases (PostgreSQL, Redis)
- File systems and custom APIs
MCP servers are configured in
.mcp.json (project) or ~/.claude.json (user), or in agent frontmatter.Why MCP Matters
MCP servers enable Claude to:- Access real data: Query databases, APIs, and cloud services
- Automate browsers: Test UIs, debug console errors, verify deployments
- Fetch fresh docs: Get up-to-date library documentation instead of relying on training data
- Integrate with tools: Connect to Slack, GitHub, Jira, and internal systems
Recommended MCP Servers
Based on community feedback (“/r/mcp”):Context7
Fetches up-to-date library docs into context. Prevents hallucinated APIs from outdated training data.Community: “by far the best MCP for coding”
Playwright
Browser automation — implement, test, and verify UI features autonomously. Screenshots, navigation, form testing.Community: “essential for frontend”
Claude in Chrome
Connects Claude to your real Chrome browser — inspect console, network, DOM. Debug what users actually see.Community: “game changer for debugging”
DeepWiki
Fetches structured wiki-style documentation for any GitHub repo — architecture, API surface, relationships.Community: “put it behind a gateway with Context7”
Configuration
Project-Scoped (Team-Shared)
Create.mcp.json at project root (committed to git):
User-Scoped (Personal)
Add to~/.claude.json:
Agent-Scoped
In agent frontmatter:Server Types
- stdio (Local Process)
- http (Remote URL)
Spawns a local process that communicates via stdin/stdout.Most common for npm packages:Python servers:Binary servers:
Enabling MCP Servers
By default, Claude Code prompts for approval when a.mcp.json server starts. Configure auto-approval in .claude/settings.json:
- Auto-Approve All
- Allowlist Specific Servers
- Blocklist Servers
.mcp.json without prompting.Permissions for MCP Tools
MCP tools follow themcp__<server>__<tool> naming convention:
mcp__*— All MCP servers and toolsmcp__memory__.*— All tools from memory servermcp__.*__write.*— Any write tool from any server
MCP Scopes
MCP servers can be defined at three levels:Subagent (highest priority)
Location: Agent frontmatter
mcpServers fieldPurpose: Servers scoped to a specific subagentReal Examples from Repository
From.mcp.json:
.claude/settings.json:
Browser Automation MCPs
Three options for browser automation:- Playwright MCP
- Claude in Chrome
- Chrome DevTools MCP
Best for: Automated testing, headless browser controlCapabilities:
- Navigate, click, type, screenshot
- Run in headless mode
- Multiple browser engines (Chromium, Firefox, WebKit)
- Parallel execution
Browser Automation MCP Comparison
Detailed comparison of Playwright, Chrome DevTools, and Claude in Chrome
MCP Management
Best Practices
Start with 3-5 servers
Start with 3-5 servers
“Went overboard with 15 MCP servers thinking more = better. Ended up using only 4 daily.” — r/mcpStart minimal:
- Context7 (docs)
- Playwright or Claude in Chrome (browser)
- One integration (GitHub, Slack, etc.)
Use npx for easy installation
Use npx for easy installation
No need to install packages globally:The
-y flag auto-confirms installation.Commit .mcp.json to git
Commit .mcp.json to git
Share MCP servers with your team:Team members get the same tools automatically.
Set appropriate permissions
Set appropriate permissions
Don’t blindly allow all MCP tools:
Use environment variables for secrets
Use environment variables for secrets
Never commit API keys to Set in
.mcp.json:.claude/settings.local.json (git-ignored):Environment Variables
Configure MCP behavior via settings:Troubleshooting
Server won't start
Server won't start
Check logs:Common issues:
- Missing dependencies (run
npxcommand manually) - Port conflicts (another process using the port)
- Timeout too short (increase
MCP_TIMEOUT)
Permission denied
Permission denied
Add to
.claude/settings.json:Server not listed
Server not listed
Ensure
.mcp.json is valid JSON and in the project root.Test:Cross-Links
Settings
Configure MCP permissions and auto-approval
Subagents
Scope MCP servers to specific agents
MCP Best Practice
Recommended servers and configuration
Browser Automation Report
Compare Playwright, Chrome DevTools, and Claude in Chrome
