How to add an MCP server to VS Code

VS Code reads its MCP servers from .vscode/mcp.json and connects to them over stdio (a local process), Streamable HTTP and HTTP+SSE. 123,101 of the 123,101 servers we can write a config for work in it.

A local server

A local server runs on your machine, started by VS Code from its package. It needs Node.js installed first. For example, Azure MCP Server goes in .vscode/mcp.json:

{
  "servers": {
    "azure": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@azure/[email protected]", "server", "start"]
    }
  }
}

Every step for this server in VS Code

A remote server

A remote server runs on its publisher's machines, and VS Code connects to its address. Nothing needs installing. For example, Context7 goes in .vscode/mcp.json:

{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Every step for this server in VS Code

Which servers work in VS Code

VS Code can send a key in a header, so the 3,254 servers that need one work in it.

RunsServersIn VS Code?
Local (stdio)85,196Works
Remote, Streamable HTTP30,940Works
Remote, Streamable HTTP, key in a header3,207Works
Remote, HTTP+SSE3,711Works
Remote, HTTP+SSE, key in a header47Works

If the server does not show up

Matches the official docs The configs follow VS Code's MCP docs, read on 2026-10-31.

VS Code on plug.directory · Best MCP servers for VS Code