Connect VS Code
VS Code supports MCP servers through `.vscode/mcp.json` (workspace) or your user-level `mcp.json`. Use the `http` server type for remote endpoints.
How do I connect an MCP server to VS Code?
Add a server entry with the `http` type and your server URL to `.vscode/mcp.json` (workspace) or your user-level `mcp.json`, then run “MCP: List Servers” from the Command Palette and start it. Recent VS Code releases speak the MCP HTTP transport natively, so no local bridge is needed.
Setup
- Create `.vscode/mcp.json` in your workspace, or open your user `mcp.json`.
- Add the server entry below with your deployment URL.
- Run “MCP: List Servers” from the Command Palette and start the server.
{
"servers": {
"my-server": {
"type": "http",
"url": "https://my-server.mcp.cloud/mcp"
}
}
}Verify the connection
In the Command Palette run “MCP: List Servers” and confirm your server is running.
Troubleshooting
The server type is rejected.
Update VS Code — the `http` MCP transport requires a recent release of the MCP support.
Connect another client
Claude Code
Add your MCP server to Claude Code from the terminal.
Claude Desktop
Connect Claude Desktop to a remote MCP server over a stdio bridge.
Cursor
Point Cursor at a remote MCP server.
Windsurf
Connect Windsurf to a remote MCP server.
Antigravity
Add a remote MCP server to Antigravity.
Codex
Add a remote MCP server to the Codex CLI and IDE extension.
ChatGPT
Add your MCP server to ChatGPT as a custom connector.
Gemini CLI
Add a remote MCP server to the Gemini CLI.