@@ -1,25 +1,6 @@
# Setting Up MCP Servers on Windows
A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.
## Overview
MCP servers provide Large Language Models (LLMs) with secure, controlled access to various tools and data sources. Available servers include:
### Node.js-based Servers
- ** Memory** - Knowledge graph-based persistent memory system
- ** Filesystem** - Secure file operations with access controls
- ** GitHub** - Repository management and GitHub API integration
- ** Google Drive** - File access and search capabilities
- ** Slack** - Channel management and messaging
- ** Puppeteer** - Browser automation and web scraping
- ** Brave Search** - Web and local search integration
- ** Google Maps** - Location services and directions
### Python-based Servers
- ** SQLite** - Local database operations
- ** Git** - Local repository management
- ** Fetch** - Web content fetching and conversion
- ** PostgreSQL** - Read-only database access
## Prerequisites
1 . Install Node.js (v18.x or later)
- Download from: https://nodejs.org/
@@ -29,7 +10,7 @@ MCP servers provide Large Language Models (LLMs) with secure, controlled access
npm --version
```
2. Install Python 3.10 or later (required for Python-based servers)
2. Install Python 3.10 or later (for Python-based servers)
- Download from: https://www.python.org/downloads/
- Make sure to check "Add Python to PATH" during installation
@@ -40,100 +21,115 @@ Open PowerShell as administrator and run:
```powershell
# For Python-based servers
npm install -g uv
# Node.js package manager (npm) comes with Node.js installation
```
### 2. Install MCP Servers
#### For Node.js-based servers:
``` powershell
# General format
npm install -g @modelcontextprotocol/server-<name>
# Examples
# Install servers globally
npm install -g @modelcontextprotocol/server-memory
npm install -g @modelcontextprotocol/server-github
npm install -g @modelcontextprotocol/server-everything
npm install -g @modelcontextprotocol/server-brave-search
# ... other servers you want to install
```
#### For Python-based servers:
``` powershell
# Using uvx (recommended)
uvx mcp-server-<name>
# Alternative using pip
pip install mcp-server-<name>
# Using uvx
uvx mcp-server-sqlite
```
### 3. Configure Claude Desktop
1 . Open File Explorer and navigate to:
- ` %AppData%\Claude Desktop\ `
- Create ` claude_desktop_config.json ` if it doesn't exist
1 . Navigate to: ` %AppData%\Claude Desktop\ `
2 . Create or edit ` claude_desktop_config.json `
3 . Use this configuration structure:
2 . Example configuration structure:
``` json
{
"globalShortcut" : " Ctrl+Space" ,
"mcpServers" : {
"filesystem " : {
"command" : " npx " ,
"args" : [" -y " , " @modelcontextprotocol/server-filesystem " , " C:\\ path \\ to \\ files " ]
"sqlite " : {
"command" : " uvx " ,
"args" : [" mcp-server-sqlite " , " --db-path " , " C:\\ Users \\ YourUsername \\ test.db " ]
},
"github " : {
"command" : " npx " ,
"args" : [" -y " , " @modelcontextprotocol/ server-github " ],
"memory " : {
"command" : " node " ,
"args" : [" C: \\ Users \\ YourUsername \\ AppData \\ Roaming \\ npm \\ node_modules \\ @modelcontextprotocol\\ server-memory \\ dist \\ index.js " ],
"env" : {
"GITHUB_PERSONAL_ACCESS_TOKEN " : " <YOUR_TOKEN> "
"DEBUG " : " * "
}
},
"postgres" : {
"command" : " npx" ,
"args" : [" -y" , " @modelcontextprotocol/server-postgres" , " postgresql://localhost/mydb" ]
"everything" : {
"command" : " node" ,
"args" : [" C:\\ Users\\ YourUsername\\ AppData\\ Roaming\\ npm\\ node_modules\\ @modelcontextprotocol\\ server-everything\\ dist\\ index.js" ],
"env" : {
"DEBUG" : " *"
}
},
"git" : {
"command" : " uvx" ,
"args" : [" mcp-server-git" , " --repository" , " C:\\ path\\ to\\ repo" ]
"brave-search" : {
"command" : " node" ,
"args" : [" C:\\ Users\\ YourUsername\\ AppData\\ Roaming\\ npm\\ node_modules\\ @modelcontextprotocol\\ server-brave-search\\ dist\\ index.js" ],
"env" : {
"BRAVE_API_KEY" : " YOUR_API_KEY_HERE" ,
"DEBUG" : " *"
}
}
}
}
```
** Important:**
- Replace ` YourUsername ` with your Windows username
- Replace ` YOUR_API_KEY_HERE ` with your actual API key for services that require it
- Use double backslashes (\\ ) in all Windows paths
- Point to the ` dist/index.js ` file in the npm modules directory
## Server-Specific Setup
### SQLite Server
- Only requires the basic setup shown above
- Customize the ` --db-path ` argument to your preferred location
### Memory Server
- No additional setup required
- Debug logging enabled by default
### Everything Server
- No additional setup required
- Debug logging enabled by default
### Brave Search Server
1 . Get API key from https://brave.com/search/api/
2 . Add it to the config's env section as shown above
## Verification & Troubleshooting
### Verify Installations
``` powershell
# Check Node.js packages
# List installed packages
npm list -g --depth=0
# Test servers directly
# Test individual servers
npx @modelcontextprotocol/server-memory
npx @modelcontextprotocol/server-brave-search
uvx mcp-server-sqlite
```
### Common Issues
1 . "Command not found"
- Verify Node.js/Python are in PATH
- Try running PowerShell as administrator
2 . "Could not attach to MCP server"
- Check config file paths are correct
- Use double backslashes (\\ ) in Windows paths
- Verify server package is installed
1 . "Could not attach to MCP server"
- Verify the paths in config match your system
- Make sure all packages are installed globally (-g flag)
- Check that dist/index.js exists in the specified paths
3 . Server not showing in Claude
2 . Server not showing in Claude
- Restart Claude Desktop
- Check config file location
- Enable DEBUG env variable in config
- Verify JSON syntax in config file
- Check file paths are correct
## Tips
- Always use double backslashes (\\ ) for Windows paths in JSON
- Run installation commands as administrator
- Keep package managers and servers updated
- Check server documentation for specific requirements
- Visit [ modelcontextprotocol.io] ( https://modelcontextprotocol.io ) for detailed documentation
## Additional Resources
- [ GitHub Repository] ( https://github.com/modelcontextprotocol/servers )
- [ Contributing Guidelines] ( https://github.com/modelcontextprotocol/servers/blob/main/CONTRIBUTING.md )
- [ Security Policy] ( https://github.com/modelcontextprotocol/servers/blob/main/SECURITY.md )
- Always use global installations (` npm install -g ` )
- Use full paths to ` dist/index.js ` in the config
- Keep DEBUG env variable for troubleshooting
- Restart Claude Desktop after config changes