Skip to content

SOP-003: MCP Server Configuration

Document Control

  • SOP ID: 003
  • Version: 1.0
  • Status: Active
  • Last Updated: December 2024

Overview

Model Context Protocol (MCP) enables Claude to connect with external tools and data sources through a standardized interface.

┌─────────────────────────────────────────────────────────────────────┐
│                        MCP ARCHITECTURE                              │
├─────────────────────────────────────────────────────────────────────┤
│                                                                      │
│   Claude Desktop/Code                                               │
│           ▼                                                         │
│   [MCP Protocol Layer]                                              │
│           ▼                                                         │
│   ┌──────────────┬──────────────┬──────────────┐                  │
│   │ Filesystem   │ Git Server   │ Web Server   │                  │
│   │   Server     │              │              │                  │
│   └──────────────┴──────────────┴──────────────┘                  │
│           ▼              ▼              ▼                           │
│    Local Files      Git Repos    Web Resources                     │
│                                                                      │
└─────────────────────────────────────────────────────────────────────┘

Installation Steps

Step 1: Install MCP Servers

bash
# Core servers
npm install -g @anthropic/mcp-server-filesystem
npm install -g @anthropic/mcp-server-git
npm install -g @anthropic/mcp-server-github
npm install -g @anthropic/mcp-server-postgres
npm install -g @anthropic/mcp-server-sqlite

Step 2: Configure Claude Desktop

Windows Configuration

json
// %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "C:\\Users\\YourName\\Documents"]
    },
    "git": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-git", "--repository", "C:\\repos\\myproject"]
    }
  }
}

macOS Configuration

json
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "/Users/yourname/Documents"]
    }
  }
}

Step 3: Project-Specific Configuration

Create .mcp.json in project root:

json
{
  "mcpServers": {
    "project-files": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "./"]
    },
    "project-db": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-sqlite", "--db-path", "./database.db"]
    }
  }
}

Available MCP Servers

ServerPurposeInstallation
filesystemFile accessnpm install -g @anthropic/mcp-server-filesystem
gitGit operationsnpm install -g @anthropic/mcp-server-git
githubGitHub APInpm install -g @anthropic/mcp-server-github
postgresPostgreSQLnpm install -g @anthropic/mcp-server-postgres
sqliteSQLitenpm install -g @anthropic/mcp-server-sqlite
webWeb fetchingnpm install -g @anthropic/mcp-server-web
slackSlack integrationnpm install -g @anthropic/mcp-server-slack

Verification

bash
# Test MCP connection
claude-code "List available MCP servers"

# Test specific server
claude-code "Use the filesystem server to list files"

Troubleshooting

Server not connecting

  1. Restart Claude Desktop
  2. Check server installation: npm list -g @anthropic/mcp-server-*
  3. Verify configuration file syntax
  4. Check server logs in Claude Desktop developer console

See Also

Claude Code Documentation Hub