# VS Code MCP: Add MCP Servers to GitHub Copilot

[Muhammad Shakil](https://skryvo.ai/about/) · Founder of Skryvo

October 22, 2026 · 6 min read

**In this guide**

1. [How do I add an MCP server to VS Code?](https://skryvo.ai/blog/vscode-mcp/#how-do-i-add-an-mcp-server-to-vs-code)
2. [Where is the VS Code MCP config file now?](https://skryvo.ai/blog/vscode-mcp/#where-is-the-vs-code-mcp-config-file-now)
3. [How do I keep API keys out of the config?](https://skryvo.ai/blog/vscode-mcp/#how-do-i-keep-api-keys-out-of-the-config)
4. [How do I start, stop or debug an MCP server?](https://skryvo.ai/blog/vscode-mcp/#how-do-i-start-stop-or-debug-an-mcp-server)
5. [Do my MCP servers sync between machines?](https://skryvo.ai/blog/vscode-mcp/#do-my-mcp-servers-sync-between-machines)
6. [A worked example: posting from VS Code](https://skryvo.ai/blog/vscode-mcp/#a-worked-example-posting-from-vs-code)

Share [X](https://twitter.com/intent/tweet?text=VS%20Code%20MCP%3A%20Add%20MCP%20Servers%20to%20GitHub%20Copilot&url=https%3A%2F%2Fskryvo.ai%2Fblog%2Fvscode-mcp%2F) [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fskryvo.ai%2Fblog%2Fvscode-mcp%2F) [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fskryvo.ai%2Fblog%2Fvscode-mcp%2F)

Checked against VS Code's docs on October 22, 2026.

VS Code lets GitHub Copilot's agent use MCP (Model Context Protocol) servers: tools for a browser, a database, your issue tracker or a publishing service. VS Code changed where these servers live on October 21, 2026, so older guides that start with `.vscode/mcp.json` are now describing the format VS Code calls deprecated.

**The short version:** run **MCP: Add Server** from the Command Palette, choose **HTTP** for a URL or **Command (stdio)** for a local program, and give it an ID. Your servers now go in the Copilot user file `~/.copilot/mcp-config.json`, under `"mcpServers"`. Manage them with **MCP: List Servers**, which also shows each server's output when something fails. Everything below is from [VS Code's MCP documentation](https://code.visualstudio.com/docs/agent-customization/mcp-servers), updated October 21, 2026.

## How do I add an MCP server to VS Code?

1. Open the Command Palette and run **MCP: Add Server**.
2. Choose **HTTP** and paste the server's URL, or **Command (stdio)** and enter the command that starts it.
3. Enter a server ID that is not already used.
4. Approve any trust or sign-in prompt, after reading what it asks for.

To browse servers instead, search `@mcp` in the Extensions view and choose **Install** for yourself or **Install in Workspace** to share it with the project, or pick **MCP: Add Server › Browse MCP Servers...**.

## Where is the VS Code MCP config file now?

- **Copilot user file:** `~/.copilot/mcp-config.json` (or `$COPILOT_HOME/mcp-config.json`). Supports stdio, HTTP and SSE servers and a working directory.
- **Workspace `.mcp.json`** at the project root, when the experimental setting `chat.mcp.workspaceRootConfig.enabled` is on. Stdio and HTTP only.
- **`.vscode/mcp.json` and the user-profile `mcp.json`** still work but are marked deprecated in the guided flow.

The two newer files use the portable format with a top-level `"mcpServers"` object, the same shape Claude Code and Cursor use:

```
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp@latest"]
    }
  }
}
```

The older VS Code format uses `"servers"` instead, with `"type": "stdio"`, `"http"` or `"sse"` on each entry. Do not copy entries between the two formats without changing that top-level key.

## How do I keep API keys out of the config?

In the VS Code format, declare an input and reference it; VS Code asks for the value the first time the server starts and stores it securely:

```
{
  "inputs": [
    { "type": "promptString", "id": "api-token", "description": "API token", "password": true }
  ],
  "servers": {
    "example": {
      "type": "http",
      "url": "https://mcp.example.com/mcp",
      "headers": { "Authorization": "Bearer ${input:api-token}" }
    }
  }
}
```

Two limits to know: the portable files do not support input variables or environment files, and servers that need an interactive input are not forwarded to Copilot harness sessions. Servers that sign in with OAuth avoid both problems, because no token sits in any file. Never commit a file with a real token in it.

Skryvo writes posts and articles in your brand's voice and publishes them for you. [Start for $0](https://skryvo.ai/signup/) 7 days free, no card needed

## How do I start, stop or debug an MCP server?

Run **MCP: List Servers**, pick a server, and choose Start, Stop, Restart, Enable or Disable, Uninstall, or **Show Output** for its log. VS Code's own troubleshooting list, in short:

- **A stdio server will not start:** check the command, its arguments, that the runtime is installed, and `PATH`.
- **A Docker server fails:** do not run the container detached (`-d`).
- **An HTTP server fails:** check the URL, network access and the sign-in steps.
- **Startup is blocked by trust:** workspace servers follow Workspace Trust; other servers ask separately, and **MCP: Reset Trust** clears those answers.
- **Tools do not show up:** check the server is enabled and exposes them, under **Chat: Open Customizations › Tools**.

After a fix, restart the server and check a real tool result, not just that it started.

## Do my MCP servers sync between machines?

Only the user-profile `mcp.json` syncs, when Settings Sync has **MCP Servers** selected. The Copilot user `mcp-config.json` and workspace `.mcp.json` do not. In a dev container, put servers under `customizations.vscode.mcp` in `devcontainer.json`. Companies can limit which servers are allowed through GitHub's enterprise MCP allowlist, and local settings cannot override it.

## A worked example: posting from VS Code

Run **MCP: Add Server › HTTP**, paste `https://api.skryvo.ai/mcp`, name it `skryvo` and sign in when asked. Then ask Copilot: "Use the Skryvo MCP server to write a LinkedIn post about the release we just merged and schedule it for Tuesday at 9am." It drafts the post in your brand's voice and Skryvo schedules it only after you approve. [The VS Code setup page](https://skryvo.ai/agents/vscode/) has the details; the same server works in [Claude Code](https://skryvo.ai/blog/claude-code-mcp/), [Cursor](https://skryvo.ai/blog/cursor-mcp/) and [Codex](https://skryvo.ai/blog/codex-mcp/).

Put new servers in the Copilot user file, keep tokens behind inputs or OAuth, and use Show Output before guessing why a tool is quiet.

Scripting instead of an agent? [a social media API for AI agents](https://skryvo.ai/answers/social-media-api-for-ai-agents/).

## Do this in Skryvo

- [VS Code MCP server for social posts](https://skryvo.ai/agents/vscode/)
- [Add MCP servers to Cursor](https://skryvo.ai/blog/cursor-mcp/)
- [MCP connectors for every AI agent](https://skryvo.ai/agents/)

About the author

### [Muhammad Shakil](https://skryvo.ai/about/) Founder of Skryvo

I wrote this myself. I have built mobile apps and websites for companies in the US and Europe since 2022, and I built Skryvo after one too many AI drafts fell apart the moment someone checked a fact. Everything I publish here is tested on my own work first, and I show the numbers, including the ones that did not go my way.

[LinkedIn](https://www.linkedin.com/in/flutterdeveloper1/) [X](https://x.com/MShakilAwan3) [Full bio](https://skryvo.ai/about/) [All articles](https://skryvo.ai/blog/)

Read Skryvo often? [Add Skryvo as a preferred source on Google](https://www.google.com/preferences/source?q=skryvo.ai) and our articles are more likely to show up for you.

## Keep reading

[All guides](https://skryvo.ai/blog/)

AI Agents · 7 min read

### [Best Social Media MCP Servers and Connectors (2026)](https://skryvo.ai/blog/best-social-media-mcp-servers/)

Seven social media MCP servers and connectors compared from their own docs: Buffer, Metricool, Postiz, Zernio, Blotato, Ayrshare and Skryvo, by channels, sign-in, price, approval.

AI Agents · 7 min read

### [Gemini CLI MCP and Extensions After the Antigravity Move](https://skryvo.ai/blog/gemini-cli-mcp/)

Gemini CLI MCP servers and extensions, who can still use Gemini CLI after June 18, 2026, and how to move both to Antigravity CLI and mcp_config.json.

AI Agents · 8 min read

### [Perplexity MCP: Official Server, URL, Pricing and Setup](https://skryvo.ai/blog/perplexity-mcp/)

Perplexity MCP both ways: its official server in Claude Code, Cursor, Claude Desktop and Docker, what each tool runs on, and adding MCP connectors to Perplexity.

## Turn ideas like these into posts

Skryvo writes posts and articles in your brand's voice and publishes them to your channels, from the app or your AI agent.

[Start for $0](https://skryvo.ai/signup/) [See how it works](https://skryvo.ai/features/)

- 7 days free, no card needed
