# How to add MCP servers to Zed

Zed reads MCP servers from settings.json (for you) or .zed/settings.json (for one project), under the "context_servers" key. A local server’s entry is a command with args.

Last checked 25 Nov 2026. Page: https://ai-powered.com/clients/zed

## Quick facts

- Local servers: Yes (stdio)
- Sign-in: OAuth: Yes · Headers: Yes (Zed starts the MCP OAuth flow when a remote server has no Authorization header.)
- Prompts: Yes
- Tool approval: Yes
- Platforms: macOS, Windows and Linux

## Zed config files

| Scope | System | Path |
| --- | --- | --- |
| For you | macOS | `~/.config/zed/settings.json` |
| For you | Linux | `~/.config/zed/settings.json` |
| For you | Windows | `%APPDATA%\Zed\settings.json` |
| For one project | All systems | `.zed/settings.json` |

## Servers that work in Zed

- [REA](https://ai-powered.com/mcp/rea): CLI and MCP server that lets coding agents reverse engineer apps and binaries
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser agents and cloud browsers for AI, with an MCP server for web tasks
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): MCP server for AI clients to scrape sites with HTTP and stealth browser sessions
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): Hosted MCP connector for creating and rendering videos from HTML through AI chat
- [Context7](https://ai-powered.com/mcp/context7): Version-specific library docs and code examples piped into coding agents via MCP
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): MCP server and CLI that let coding agents drive and inspect a live Chrome browser
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Local MCP server that builds a code knowledge graph for AI coding agents
- [GitHub](https://ai-powered.com/mcp/github): Official MCP server connecting AI assistants to GitHub repos, issues and workflows
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): MCP toolkit giving coding agents symbol-level code retrieval and editing
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): Local FFmpeg video and audio editing tools for coding agents over MCP
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): MCP server for managing and automating Home Assistant from AI assistants
- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Open-source analytics app where an AI agent builds charts and dashboards from your data

## Troubleshooting

- Pasting an mcpServers block does nothing: Zed calls MCP servers context servers. Put them under context_servers in settings.json.
- The agent ignores a server’s tools: Name the server in your prompt, or use a profile that only turns on that server’s tools.
- An extension’s server doesn’t start: Fill in the setup dialog the extension shows after install. For your own servers, check the command, arguments and environment variables the server needs.
- A local server fails with “npx” (or uvx, docker) not found: Apps started from a dock or menu may not see your terminal’s PATH. Use the full path of the command (run which npx in a terminal to find it), then restart Zed.
- You can’t tell whether the server or Zed is at fault: Test the server on its own with the MCP Inspector (npx @modelcontextprotocol/inspector). If it lists tools there, check the Zed setup.

## Safety

- Keep agent.tool_permissions.default on "confirm" and allow single tools with mcp:<server>:<tool> rules.
- A project’s .zed/settings.json can add servers that start programs. Read it before opening an unknown repository.
- Remote servers can use OAuth instead of a token written into settings.json.
- A local server runs on your computer with your access to files and the network. Add only servers whose source you trust.

## Questions

### Where do MCP servers go in Zed?
Under context_servers in settings.json. Run zed: open settings file to open it, or use Settings → AI → MCP Servers → Add Server.

### Does Zed support remote MCP servers?
Yes. Give the server a url, and headers if it needs a token. Without an Authorization header Zed offers OAuth sign-in.

### Which MCP features does Zed support?
Tools and prompts. Sampling and elicitation aren’t supported yet. Zed refreshes the tool list when a server reports a change.

### Can I install MCP servers as Zed extensions?
Yes. Some servers ship as extensions; pick Install from Extensions in the Add Server menu or browse zed.dev/extensions.

### Can I use local MCP servers in Zed?
Yes. Zed starts a local server as a command on your computer (stdio).

### Can Zed sign in to MCP servers with OAuth?
Yes. Zed starts the MCP OAuth flow when a remote server has no Authorization header.

## Sources

- [Zed docs: Model Context Protocol](https://zed.dev/docs/ai/mcp)
- [Zed docs: Configuring Zed](https://zed.dev/docs/configuring-zed)