What is MCP and Why Should You Care?
Adding MCP Servers to Claude Code
# Add a server for the current project
claude mcp add server-name npx -y @package/server
# Add a server globally (all projects)
claude mcp add --scope user server-name npx -y @package/server
# List installed servers
claude mcp list
# Remove a server
claude mcp remove server-name
That's it. After adding a server, Claude Code automatically discovers its tools and can use them in conversations.Adding MCP Servers to Cursor
// .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global)
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
Restart Cursor after editing the config file. The servers will be available in Cursor's Agent mode.Top 5 MCP Servers to Install First
claude mcp add filesystem npx -y @modelcontextprotocol/server-filesystem /path/to/project
2. GitHub MCP — Create PRs, manage issues, search repositories, review code.
claude mcp add github npx -y @modelcontextprotocol/server-github
# Requires GITHUB_PERSONAL_ACCESS_TOKEN env var
3. Playwright MCP — Browser automation, screenshots, web scraping, form filling.
claude mcp add playwright npx -y @playwright/mcp@latest
4. Context7 — Up-to-date documentation for any library. Replaces searching docs manually.
claude mcp add context7 npx -y @context7/mcp@latest
5. Memory MCP — Persistent key-value memory across sessions.
claude mcp add memory npx -y @modelcontextprotocol/server-memoryTroubleshooting Common Issues
node --version
• Try running the npx command manually to see error output
• Check if the port is already in use
"Tools not showing up"
• Restart your AI tool after adding the server
• Verify the server is listed: claude mcp list
• Check server logs: claude mcp logs server-name
"Permission denied"
• Some servers need environment variables (API keys, tokens)
• Check the server's README for required configuration
• Use --env flag or set vars in your shell profile
"Timeout errors"
• Increase the server timeout in settings
• Check if the server requires network access (firewalls, VPN)
• Try a different transport (stdio vs SSE)