What is MCP?
The Model Context Protocol (MCP) allows Claude Code to interact with external tools and services. MCP servers provide specialized capabilities beyond Claude’s built-in tools.
Choosing MCP Servers
When selecting MCP servers, consider:
- Your tech stack - Rails developers benefit from rails-mcp-server, Node developers from npm-related tools
- Workflow needs - Git operations, database access, web search
- Security requirements - Some servers have broader permissions than others
Configuration
Add MCP servers to your ~/.claude/settings.json:
{
"mcpServers": {
"git-local": {
"command": "npx",
"args": ["@anthropic/mcp-git-local"]
},
"brave-search": {
"command": "npx",
"args": ["@anthropic/mcp-brave-search"],
"env": {
"BRAVE_API_KEY": "${BRAVE_API_KEY}"
}
}
}
}Priority Order
Claude Code uses tools in this priority:
- MCP tools - Specialized operations (git, database, search)
- Built-in tools - Read, Write, Edit, Glob, Grep
- Bash - Fallback for system commands
Common Combinations
Web Development
git-local- Version controlbrave-search- Documentation lookupread-website-fast- Fetch web content
Rails Development
rails-mcp-server- Model/route introspectiongit-local- Version controlrust-mcp-filesystem- Advanced file operations
Data Analysis
brave-search- Researchrust-mcp-filesystem- File handling
Best Practices
- Start minimal - Add servers as needed
- Use project configs - Different projects may need different servers
- Monitor permissions - Review what each server can access
- Keep updated - MCP servers improve regularly