How to Add an MCP Server in VS Code

VS Code reads MCP servers from a .vscode/mcp.json file in your workspace (or your user settings.json). Add the server under a top-level servers key, save, then click Start above the entry. Its tools become available to Copilot Chat in Agent mode.

VS Code supports MCP through Copilot agent mode. Here is the exact config file, a working example, and how to start the server and use it.