Skip to content

Instantly share code, notes, and snippets.

@JinSeokO
Last active August 15, 2025 18:29
Show Gist options
  • Select an option

  • Save JinSeokO/77320f556b7b674ed9e58eebe267f9de to your computer and use it in GitHub Desktop.

Select an option

Save JinSeokO/77320f556b7b674ed9e58eebe267f9de to your computer and use it in GitHub Desktop.
claude-mcp-for-windows-guide

Claude MCP Setup Guide for Windows

MCP (Model Context Protocol) is a protocol that connects Claude with external tools and services. This guide provides step-by-step instructions for setting up and using Claude MCP on Windows.

Prerequisites

1. Install Node.js (v18.x or later)

Node.js is the JavaScript runtime required to run MCP servers.

Download URL: https://nodejs.org/

  • LTS (Long Term Support) version is recommended
  • Make sure to check "Add to PATH" option during installation
  • System restart is recommended after installation

2. Verify Node.js and NPX Installation

Open Command Prompt (cmd) or PowerShell and verify the installation paths:

where node
where npx

If properly installed, you should see paths like:

C:\Program Files\nodejs\node.exe
C:\Program Files\nodejs\npx.cmd

3. Install Claude Desktop App

MCP is only available in the Claude Desktop app, not in the web version.

Download URL: https://claude.ai/download

MCP Server Installation and Configuration

1. Configuration File Location

The MCP configuration file for Claude Desktop is located at:

C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json

Replace {username} with your actual Windows username.

2. Create Configuration File

Create the claude_desktop_config.json file at the above path and add the following content:

Important: In Windows, using "command": "npx" may cause "Cannot connect to MCP server" errors. It is strongly recommended to use the full path "command": "C:\\Program Files\\nodejs\\npx.cmd" instead.

{
	"mcpServers": {
		"filesystem": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-filesystem",
				"C:\\Users\\{user}\\Downloads",
				"C:\\Users\\{user}\\Documents",
				"C:\\Users\\{user}\\Desktop"
			]
		},
		"github": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-github"
			],
			"env": {
				"GITHUB_PERSONAL_ACCESS_TOKEN": "{token}"
			}
		},
		"memory": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-memory"
			],
			"env": {
				"DEBUG": "*"
			}
		},
		"playwright": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"@playwright/mcp@latest"
			]
		}
	}
}

3. User-Specific Configuration

Filesystem Server: Replace {user} with your actual Windows username.

GitHub Server: Replace {token} with your actual GitHub Personal Access Token.

Main MCP Server Descriptions

Filesystem Server

  • Function: Access local file system to perform file reading, writing, searching, and other operations
  • Use Cases: Document editing, code file management, project structure analysis

GitHub Server

  • Function: Manage GitHub repositories, create issues, handle Pull Requests, etc.
  • Required Setup: GitHub Personal Access Token needed
  • Token Creation: GitHub Settings > Developer settings > Personal access tokens

Memory Server

  • Function: Remember and store information during conversations to maintain context
  • Use Cases: Track project progress, remember user preferences

Playwright Server

  • Function: Web browser automation and web page interaction
  • Use Cases: Web scraping, automated testing, web app interaction

Troubleshooting

Common Issues

1. MCP Server Not Connecting:

  • Completely quit and restart Claude Desktop app
  • Verify JSON syntax in configuration file is correct
  • Check if Node.js path is accurate
  • Important: Ensure you're using the full path "command": "C:\\Program Files\\nodejs\\npx.cmd" instead of just "command": "npx"

2. File Path Issues:

  • In Windows, backslashes (\) must be escaped (\\)
  • If username contains special characters, wrap in quotes

3. Permission Issues:

  • Run Claude Desktop with administrator privileges
  • Check permissions for folders you're trying to access

Log Checking

When issues occur, you can check Claude Desktop logs:

  • Press Windows + R > Type %APPDATA%\Claude\logs

Additional MCP Servers

Other Available Servers:

SQLite Server:

"sqlite": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-sqlite"]
}

Brave Search Server:

"brave-search": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-brave-search"],
	"env": {
		"BRAVE_API_KEY": "{your-api-key}"
	}
}

Postgres Server:

"postgres": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-postgres"],
	"env": {
		"POSTGRES_CONNECTION_STRING": "postgresql://username:password@localhost:5432/database"
	}
}

Slack Server:

"slack": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-slack"],
	"env": {
		"SLACK_BOT_TOKEN": "{your-bot-token}"
	}
}

Environment Variables Setup

For better security, you can use environment variables instead of hardcoding sensitive information:

  1. Set Environment Variables in Windows:

    • Open System Properties > Advanced > Environment Variables
    • Add new variables like GITHUB_TOKEN, SLACK_BOT_TOKEN, etc.
  2. Use in Configuration:

"github": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-github"],
	"env": {
		"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
	}
}

Security Considerations

  1. Token Management: Store API keys and tokens securely and rotate them regularly
  2. File Access Permissions: Only add necessary directories to the Filesystem server
  3. Environment Variables: Manage sensitive information through environment variables
  4. Network Access: Be cautious when granting network access to MCP servers

Updates and Maintenance

MCP servers are regularly updated. To use the latest versions:

  1. Automatic Updates: Restart Claude Desktop (auto-updates)
  2. Manual Updates: Run npx -y @modelcontextprotocol/server-{name}@latest
  3. Check Versions: Use npx @modelcontextprotocol/server-{name} --version

Advanced Configuration

Custom Server Paths

If you have a custom Node.js installation path:

"filesystem": {
	"command": "C:\\Custom\\Path\\To\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-filesystem"]
}

Multiple Directory Access

For Filesystem server with multiple specific directories:

"filesystem": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": [
		"-y",
		"@modelcontextprotocol/server-filesystem",
		"C:\\Projects",
		"C:\\Data",
		"C:\\Backup"
	]
}

Debug Mode

Enable debug mode for troubleshooting:

"memory": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-memory"],
	"env": {
		"DEBUG": "*",
		"LOG_LEVEL": "debug"
	}
}

Best Practices

  1. Start Simple: Begin with one or two servers, then add more as needed
  2. Regular Backups: Keep backups of your configuration file
  3. Monitor Performance: Some servers may impact system performance
  4. Update Regularly: Keep both Claude Desktop and MCP servers updated
  5. Test Configuration: Test each server individually before adding multiple servers

References

Windows에서 Claude MCP 사용 가이드

MCP(Model Context Protocol)는 Claude와 외부 도구 및 서비스를 연결하는 프로토콜입니다. 이 가이드는 Windows 환경에서 Claude MCP를 설정하고 사용하는 방법을 안내합니다.

준비 사항

1. Node.js 설치 (v18.x 이상)

Node.js는 MCP 서버 실행에 필요한 JavaScript 런타임입니다.

다운로드 주소: https://nodejs.org/

  • LTS(Long Term Support) 버전을 권장합니다
  • 설치 시 "Add to PATH" 옵션을 체크하세요
  • 설치 완료 후 시스템을 재시작하는 것을 권장합니다

2. Node.js 및 NPX 설치 확인

명령 프롬프트(cmd) 또는 PowerShell을 열고 다음 명령어로 설치 위치를 확인하세요:

where node
where npx

정상적으로 설치되었다면 다음과 같은 경로가 표시됩니다:

C:\Program Files\nodejs\node.exe
C:\Program Files\nodejs\npx.cmd

3. Claude Desktop 앱 설치

MCP는 Claude Desktop 앱에서만 사용할 수 있습니다. 웹 버전에서는 지원되지 않습니다.

다운로드 주소: https://claude.ai/download

MCP 서버 설치 및 설정

1. 설정 파일 위치

Claude Desktop의 MCP 설정 파일은 다음 경로에 있습니다:

C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json

{username}을 실제 사용자명으로 바꿔주세요.

2. 설정 파일 생성

위 경로에 claude_desktop_config.json 파일을 생성하고 다음 내용을 추가하세요:

중요: Windows에서는 "command": "npx"를 사용하면 "MCP 서버에 연결할 수 없습니다" 오류가 발생할 수 있습니다. 반드시 전체 경로 "command": "C:\\Program Files\\nodejs\\npx.cmd"를 사용하는 것을 권장합니다.

{
	"mcpServers": {
		"filesystem": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-filesystem",
				"C:\\Users\\{user}\\Downloads",
				"C:\\Users\\{user}\\Documents",
				"C:\\Users\\{user}\\Desktop"
			]
		},
		"github": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-github"
			],
			"env": {
				"GITHUB_PERSONAL_ACCESS_TOKEN": "{token}"
			}
		},
		"memory": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"-y",
				"@modelcontextprotocol/server-memory"
			],
			"env": {
				"DEBUG": "*"
			}
		},
		"playwright": {
			"command": "C:\\Program Files\\nodejs\\npx.cmd",
			"args": [
				"@playwright/mcp@latest"
			]
		}
	}
}

3. 사용자별 설정 변경

파일시스템 서버: {user}를 실제 사용자명으로 바꿔주세요.

GitHub 서버: {token}을 실제 GitHub Personal Access Token으로 바꿔주세요.

주요 MCP 서버 설명

Filesystem 서버

  • 기능: 로컬 파일 시스템에 접근하여 파일 읽기, 쓰기, 검색 등의 작업 수행
  • 사용 예시: 문서 편집, 코드 파일 관리, 프로젝트 구조 분석

GitHub 서버

  • 기능: GitHub 저장소 관리, 이슈 생성, Pull Request 작업 등
  • 필수 설정: GitHub Personal Access Token 필요
  • 토큰 생성: GitHub Settings > Developer settings > Personal access tokens

Memory 서버

  • 기능: 대화 중 정보를 기억하고 저장하여 컨텍스트 유지
  • 사용 예시: 프로젝트 진행 상황 추적, 사용자 선호도 기억

Playwright 서버

  • 기능: 웹 브라우저 자동화 및 웹 페이지 상호작용
  • 사용 예시: 웹 스크래핑, 자동화된 테스트, 웹 앱 상호작용

문제 해결

일반적인 문제들

1. MCP 서버가 연결되지 않을 때:

  • Claude Desktop 앱을 완전히 종료하고 재시작
  • 설정 파일의 JSON 문법이 올바른지 확인
  • Node.js 경로가 정확한지 확인
  • 중요: "command": "npx" 대신 전체 경로 "command": "C:\\Program Files\\nodejs\\npx.cmd"를 사용했는지 확인

2. 파일 경로 문제:

  • Windows에서는 백슬래시(\)를 이스케이프(\\)해야 함
  • 사용자명에 특수문자가 있는 경우 따옴표로 감싸기

3. 권한 문제:

  • Claude Desktop을 관리자 권한으로 실행
  • 접근하려는 폴더의 권한 확인

로그 확인

문제 발생 시 Claude Desktop의 로그를 확인할 수 있습니다:

  • Windows + R > %APPDATA%\Claude\logs 입력

추가 MCP 서버

설치 가능한 다른 서버들:

SQLite 서버:

"sqlite": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-sqlite"]
}

Brave Search 서버:

"brave-search": {
	"command": "C:\\Program Files\\nodejs\\npx.cmd",
	"args": ["-y", "@modelcontextprotocol/server-brave-search"],
	"env": {
		"BRAVE_API_KEY": "{your-api-key}"
	}
}

보안 고려사항

  1. 토큰 관리: API 키와 토큰은 안전하게 보관하고 정기적으로 교체하세요
  2. 파일 접근 권한: Filesystem 서버에는 필요한 디렉토리만 추가하세요
  3. 환경 변수: 민감한 정보는 환경 변수로 관리하는 것을 권장합니다

업데이트

MCP 서버는 정기적으로 업데이트됩니다. 최신 버전을 사용하려면:

  1. Claude Desktop 재시작 (자동 업데이트)
  2. 수동 업데이트: npx -y @modelcontextprotocol/server-{name}@latest

참고 자료

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment