How to Install MCP Servers on Windows, macOS & Linux Without Wasting 3 Hours on JSON Errors
Step‑by‑step installation for Windows, macOS, and Linux covering Claude Desktop, Cursor, and VS Code. Stop losing hours to invalid JSON, wrong commands, and silent failures. Includes exact config templates and the premium MCP Installation Quick Reference — normally $29, free today.
Already familiar with the basics? Jump to the free cheat sheet download or see the dedicated Claude Desktop guide.
1. The Installation Trap No One Warns You About
You found the perfect MCP server on GitHub. The README looks decent. You copy the JSON snippet, paste it into claude_desktop_config.json, restart Claude Desktop… and nothing works. The server doesn't appear. Claude can't see it. You spend the next hour checking paths, reinstalling Node.js, and questioning your entire career.
I know this because I've lived it – on Windows, macOS, and Linux alike. I founded mcpindex.dev after helping thousands of developers install MCP servers across every platform — and I've catalogued the exact failure patterns that waste their time.
Here's what nobody tells you: MCP server installation isn't hard because the protocol is complex. It's hard because every client uses a different registration method, the error messages are cryptic, and one missing restart can make you think the whole thing is broken.
By the end of this guide, you'll have the exact commands, the right config templates, and a free premium cheat sheet that eliminates these problems permanently – no matter your operating system.
2. Why Most "Quick Setup Guides" Actually Cost You 3 Hours
The average developer loses 3 hours on their first MCP server installation. Not because the servers are hard to install, but because the documentation is fragmented across client-specific docs, outdated forum posts, and incomplete README files. This happens on Windows just as often as macOS.
Time-Killer #1: Client Confusion
You read a guide for Claude Desktop, but you're using Cursor. The JSON config format is different, the settings panel is different. You copy-paste blindly and nothing works.
Time-Killer #2: JSON Syntax Errors
One trailing comma or missing bracket in claude_desktop_config.json, and the entire server silently fails to load. Claude won't tell you the JSON is invalid — it just won't show the server.
Time-Killer #3: The Restart Ritual
This is the most common failure. Developers save the config and expect the server to appear. Most clients require a full quit-and-reopen. Miss this step, and you'll debug a working configuration for an hour.
3. The Real Difference Between Claude Desktop, Cursor, and VS Code
Before we dive into commands, understand this: MCP server registration is fundamentally different across clients.
| Client | Registration Method | Config Location |
|---|---|---|
| Claude Desktop | claude_desktop_config.json | ~/Library/Application Support/Claude/ (macOS) or %APPDATA%\Claude\ (Windows) |
| Cursor | MCP Settings UI | Inside Cursor Settings > MCP section |
| Claude Code | claude mcp add CLI | Terminal-based registration |
| VS Code | claude mcp add via integrated terminal | Same as Claude Code, triggered inside editor |
4. The Standard MCP Installation Flow (Works on Windows, macOS, Linux)
- 1
Choose the MCP server to install
Start with an official server. GitHub MCP Server is the best first install; Context7 is the best second.
- 2
Install dependencies
If the server uses npx, install Node.js first. For remote endpoints, confirm the URL and credentials.
- 3
Register the server in your client
Claude Desktop: edit claude_desktop_config.json. Cursor: use MCP Settings UI. Claude Code/VS Code: use claude mcp add.
- 4
Add environment variables
Paste API keys or tokens exactly as required. A single typo breaks the connection.
- 5
Restart the client completely
Not reload — full quit and reopen. On Windows, close the application window and relaunch. This step alone fixes 40% of issues.
- 6
Test with a simple prompt
Ask Claude to perform a task that clearly requires the server, like listing your GitHub repositories.
5. Installing on Claude Desktop (Windows & macOS)
Config file locations: macOS ~/Library/Application Support/Claude/claude_desktop_config.json, Windows %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@github/github-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}Save the file, fully restart Claude (Cmd+Q on macOS, or close window on Windows), then test with a prompt like "List my GitHub repositories".
6. Installing on Cursor, Claude Code, and VS Code
Cursor
Open Cursor Settings → MCP section → Add New MCP Server → paste the npx command and env vars → save → test.
Claude Code
claude mcp add github -- npx -y @github/github-mcp-server
Credentials must be configured separately per server documentation.
VS Code
Same as Claude Code, using the integrated terminal. The MCP workflow is triggered inside the editor.
7. The 5 Errors That Break Every MCP Installation (And Their Exact Fixes)
Node.js is missing
Fix: Install Node.js from nodejs.org, restart terminal, try again.
Server not appearing in Claude Desktop
Fix: 1) Validate JSON with a linter (jsonlint.com). 2) Fully quit and restart Claude (Cmd+Q on macOS, close window on Windows).
Authentication failed
Fix: Double-check every character in your token. Copy-paste directly from provider dashboard.
Config works in Claude Desktop but not Cursor
Fix: Use Cursor's MCP Settings UI, not the JSON file.
Server installed but not responding
Fix: Confirm all env vars are set, then completely restart the client.
Get the MCP Installation Quick Reference (2026 Edition)
The exact Markdown cheat sheet I built for myself after cataloguing hundreds of MCP installations across Windows, macOS, and Linux. Normally sold for $29 — free today.
- ▹ Claude Desktop config template (zero syntax errors)
- ▹ Cursor MCP settings checklist
- ▹ claude mcp add command syntax
- ▹ Top 5 installation errors & exact fixes
- ▹ Environment variable reference per server type
Instant .md download. No email required.
9. Conclusion: From Frustration to Connected in Under 15 Minutes
Three things that will save you the most time, regardless of your OS:
- 1. Know your client's registration method — don't mix JSON with UI.
- 2. Validate your JSON. One comma mistake breaks everything silently.
- 3. Always restart the client completely. This alone solves 40% of problems.
Don't download the cheat sheet if you enjoy debugging invisible JSON errors for 3 hours. But if you want the exact commands, error fixes, and templates that have saved thousands of developers from installation hell, grab it now while it's still free.
Best first MCP servers to install
MCP server security tips before you install
Start with official servers
Official MCP servers from GitHub, AWS, Supabase are easier to trust and maintain.
Use least-privilege tokens
Only grant the minimum scopes each server needs to function.
Review local access carefully
Servers that can run shell commands or edit files should be reviewed before installation.
Related Guides
Frequently asked questions (2026)
What is the easiest way to install an MCP server in 2026?▾
The easiest path is Claude Desktop with an npx-based MCP server. Install Node.js, paste the JSON block into claude_desktop_config.json, fully restart Claude, and test with a simple prompt. Works on Windows, macOS, and Linux. The free cheat sheet has the exact template with correct formatting.
Why is my MCP server not appearing after I edit the config file?▾
Three most common causes: 1) Invalid JSON syntax (a trailing comma or missing bracket) in claude_desktop_config.json — use a JSON linter. 2) You didn't fully restart the client (Cmd+Q on macOS, or quit on Windows). 3) The server requires environment variables that aren't set. The cheat sheet covers all five top errors and fixes.
Do I need different installation steps for Cursor and VS Code?▾
Yes. Claude Desktop uses a JSON config file, Cursor has a dedicated MCP Settings UI, and VS Code (with Claude Code) uses the 'claude mcp add' CLI command. The same MCP server works across all clients, but registration differs. The guide and cheat sheet detail each method.
Which MCP server should I install first?▾
GitHub MCP Server for repository and PR access, then Context7 for version-specific live documentation. Both are official, well-maintained, and included in the cheat sheet's recommended first installs.
Is the installation cheat sheet really free?▾
Yes. The MCP Installation Quick Reference (2026 Edition) normally sells for $29 on Gumroad, but it's available for free exclusively to readers of this guide. Instant Markdown download, no email required.
Ready to install MCP servers without the headache?
Browse the full directory of vetted MCP servers, each with config blocks, use cases, and setup steps.