Skip to content

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 against Zed Industries’s docs

Quick facts

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

Step by step

Add a remote server

Example: a hosted server whose latest check on AI-Powered answered, Context7.

Add to Zed settings.json

{
  "context_servers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Open it with zed: open settings file. Merge context_servers into the settings you already have.

Add a local server

Example: a popular npm package that needs no keys, Chrome DevTools MCP.

Add to Zed settings.json

{
  "context_servers": {
    "chrome-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    }
  }
}

Open it with zed: open settings file. Merge context_servers into the settings you already have.

Add a server that needs an API key or header

Local servers read keys from environment variables. Replace each <NAME> placeholder with your own value in the file on your computer; never paste real keys into a website.

Example: Context7.

Add to Zed settings.json

{
  "context_servers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ],
      "env": {
        "CONTEXT7_API_KEY": "<CONTEXT7_API_KEY>"
      }
    }
  }
}

Open it with zed: open settings file. Merge context_servers into the settings you already have.

Request headers for remote servers: yes. Zed starts the MCP OAuth flow when a remote server has no Authorization header.

Add a server that signs in with OAuth

OAuth sign-in: yes. Add the server by its URL as a remote server, then sign in when asked. Zed starts the MCP OAuth flow when a remote server has no Authorization header.

Config file locations

ForSystemPath
You (every project)macOS~/.config/zed/settings.json
You (every project)Linux~/.config/zed/settings.json
You (every project)Windows%APPDATA%\Zed\settings.json
One projectAll systems.zed/settings.json

Get the config for any server

Search the MCP servers on AI-Powered and copy the Zed snippet for one.

Adding several servers? Build one config with the MCP config generator.

Servers that work in Zed

Popular servers with an install config for Zed and no failing latest check.
  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 476K GitHub stars
    • Developer tools
  2. Browser Use

    MCP server

    Browser agents and cloud browsers for AI, with an MCP server for web tasks

    • 7 tools
    • Remote
    • Freemium
    • 122K GitHub stars
    • Browser automation
  3. MCP server for AI clients to scrape sites with HTTP and stealth browser sessions

    Runs locally
    • 17 tools
    • Open source
    • 105K GitHub stars
    • Web search and scraping
  4. Hosted MCP connector for creating and rendering videos from HTML through AI chat

    • Remote
    • Freemium
    • 89K GitHub stars
    • Design and media
  5. Context7

    MCP server

    Version-specific library docs and code examples piped into coding agents via MCP

    • 2 tools
    • Remote
    • Freemium
    • 65.4K GitHub stars
    • Developer tools
  6. MCP server and CLI that let coding agents drive and inspect a live Chrome browser

    Runs locally
    • Open source
    • 59.1K GitHub stars
    • Browser automation
  7. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 49.1K GitHub stars
    • Knowledge and memory
  8. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    • Remote
    • Open source
    • 34.7K GitHub stars
    • Developer tools
  9. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.7K GitHub stars
    • Developer tools
  10. ffmpeg-skill

    MCP server

    Local FFmpeg video and audio editing tools for coding agents over MCP

    Runs locally
    • Open source
    • 10.3K GitHub stars
    • Design and media
  11. Ha MCP

    MCP server

    MCP server for managing and automating Home Assistant from AI assistants

    Runs locally
    • 8 tools
    • Open source
    • 8.1K GitHub stars
    • Productivity
  12. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.8K GitHub stars
    • Analytics and 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.

Where to find logs

  • Settings → AI → MCP Servers: a green dot means the server is active; hover other colours for the problem.

Safety notes

  • 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 about MCP in Zed

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.

Other MCP clients