---
title: "Zed MCP config: file path, key, example · DotsAgent"
description: "Add MCP servers to Zed from Zed Industries: where the config file lives, the top-level key and format, remote OAuth support and a sample config."
url: https://dotsagent.io/mcp/clients/zed
---

Zed Industries

# Add MCP servers to Zed

Zed lists MCP servers under context_servers in its settings.json.

- **macOS**: `~/.config/zed/settings.json`
- **Windows**: `%APPDATA%\Zed\settings.json`
- **Linux**: `~/.config/zed/settings.json`
- **Top-level key**: `context_servers`
- **Format**: json
- **OAuth for remote servers**: 

## Example config

This example adds GitHub's hosted server and Playwright as a local server, in the shape this client expects.

`~/.config/zed/settings.json`

```
{
  "context_servers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ],
      "env": {}
    }
  }
}
```

## Notes and quirks

- Remote entries take a url and optional headers. Without an Authorization header, Zed runs the standard MCP OAuth flow.
- Zed supports only the Tools and Prompts features of MCP.
- The settings file path comes from secondary sources; Zed's MCP page doesn't show it.
- settings.json holds your other Zed settings, so merge the block in rather than replacing the file.

[Build a Zed config →](https://dotsagent.io/mcp/config#client=zed)

## Other clients

[Claude Desktop](https://dotsagent.io/mcp/clients/claude-desktop)

[Claude Code](https://dotsagent.io/mcp/clients/claude-code)

[Cursor](https://dotsagent.io/mcp/clients/cursor)

[VS Code (GitHub Copilot)](https://dotsagent.io/mcp/clients/vscode-copilot)

[Windsurf / Devin Desktop](https://dotsagent.io/mcp/clients/windsurf)

[OpenAI Codex CLI](https://dotsagent.io/mcp/clients/codex-cli)

[Gemini CLI](https://dotsagent.io/mcp/clients/gemini-cli)

[ChatGPT](https://dotsagent.io/mcp/clients/chatgpt)

[OpenClaw](https://dotsagent.io/mcp/clients/openclaw)

[Cline](https://dotsagent.io/mcp/clients/cline)

[Continue](https://dotsagent.io/mcp/clients/continue)

[JetBrains AI Assistant](https://dotsagent.io/mcp/clients/jetbrains-ai)

## Sources

1. [zed.dev](https://zed.dev/docs/ai/mcp)/docs/ai/mcp

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
