MCP install guide

How to install MCP servers in VS Code

Set up MCP servers for VS Code with config examples, install checks, and troubleshooting steps.

Who is this for?

VS Code users who want MCP-powered coding, docs, GitHub, database, or browser automation workflows.

Config path and example

VS Code MCP configuration JSON

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "./"]
    }
  }
}

Installation steps

1

Pick a VS Code-compatible server

Start from servers tagged coding, filesystem, GitHub, docs, or developer.

2

Generate JSON config

Use the config generator or copy a trusted listing configuration.

3

Paste into VS Code MCP config

Keep command and args split correctly.

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "./"]
    }
  }
}
4

Restart VS Code

Reload the window or restart VS Code so the MCP server is detected.

5

Check the tools list

If it does not appear, test the command in a terminal and check extension logs.

Common setup issues

Wrong config location

Confirm the extension or client is reading the file you edited.

Runtime missing

Install Node.js, uv, Docker, Python, or the runtime required by the command.

FAQ

Can I reuse Cursor MCP JSON for VS Code?

Often yes, if the VS Code MCP client expects an mcpServers JSON object.

Should I restart VS Code?

Yes. Reload or restart after changing MCP config.