Skip to content

SOP-007: MCP Servers

DOCUMENT CONTROL

FieldValue
SOP IDSOP-007
Version1.0
StatusActive

Purpose

Configure Model Context Protocol (MCP) servers to extend Claude Code capabilities with external tools and services.

What is MCP?

MCP (Model Context Protocol) allows Claude Code to:

  • Connect to external services
  • Use custom tools
  • Access databases
  • Integrate with APIs

Configuration Location

MCP servers are configured in:

  • Global: ~/.claude/claude_desktop_config.json
  • Project: .claude/mcp.json

Adding MCP Servers

Configuration Format

json
{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-name"],
      "env": {
        "API_KEY": "your-key"
      }
    }
  }
}

Common MCP Servers

ServerPurpose
filesystemFile system access
githubGitHub integration
postgresPostgreSQL access
sqliteSQLite database
puppeteerBrowser automation

Example: GitHub MCP

json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_TOKEN": "ghp_..."
      }
    }
  }
}

Verifying MCP Status

In Claude Code:

  • /mcp - Show MCP server status

Troubleshooting

IssueSolution
Server not startingCheck command path
Authentication errorVerify env variables
Connection timeoutCheck network/firewall

Best Practices

MCP Tips

  1. Use project-local config for project-specific servers
  2. Store sensitive keys in environment variables
  3. Test servers individually before combining
  4. Check server logs for errors

Next Steps

Based on Official Claude Code Documentation