Sachin Uppal

MJO · Connect guide · Zed

How to connect an MCP server to Zed

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

Zed calls MCP servers context servers. You add a remote one from its settings page or straight into settings.json, and if the server has no Authorization header, Zed runs the standard MCP OAuth sign-in for you.

For MCP Journey Optimization, Zed is a clean example of the Authorize stage done by the client: give it a URL and it does the rest. The comparison with every other client is in the field guide.

What you need

Steps

  1. Open Settings > AI > MCP Servers (or run the agent: open settings action and select MCP Servers).
  2. Click Add Server in the page header and choose Add Remote Server.
  3. Enter the server's URL. Zed writes an entry under context_servers in your settings file, like this:
    {
      "context_servers": {
        "crushedwithit": {
          "url": "<your server URL>"
        }
      }
    }
    If the provider gave you a token instead of a sign-in, add "headers": { "Authorization": "Bearer <token>" }.
  4. If there is no Authorization header, Zed prompts you to sign in using the standard MCP OAuth flow. Complete it in the browser.
  5. Check the indicator dot next to the server's name: green with the tooltip "Server is active" means it is running.

Many servers are also packaged as Zed extensions: Add Server > Install from Extensions, or the zed: extensions action.

Try it

By default (agent.tool_permissions.default set to "confirm", from v0.224.0), Zed asks before any tool action, MCP calls included. With the CrushedWithIt server as the example:

Use the crushedwithit tools to show my account and how many credits I can spend now.

If the agent keeps reaching for built-in tools instead, Zed's docs suggest a custom profile that turns off built-in tools and enables only the server's.

Approvals, briefly

Zed's docs give three values for agent.tool_permissions.default:

Per-tool rules use the key mcp:<server>:<tool_name>, for example mcp:github:create_issue. Before v0.224.0 the boolean agent.always_allow_tool_actions applied instead. For a server that can spend money or post on your behalf, keep "confirm".

Common errors and fixes

What you seeFixBasis
Dot isn't greenRead its tooltip for the cause.Zed docs
Tool call failsThe error shows in the agent's response. Zed lists invalid parameters, server-side failures such as database or rate-limit issues, and unsupported operations; check the server's logs or docs.Zed docs
New tools don't appearZed reloads the tool list automatically when the server sends notifications/tools/list_changed, so no restart is needed. Server builders: send it when your tools change.Zed docs
Want to stop approving every callAllow one tool with a rule keyed mcp:<server>:<tool_name>, rather than setting everything to "allow".Zed docs
No sign-in promptZed only prompts when there is no Authorization header. General, from the MCP spec: the server must return 401 with a WWW-Authenticate header.Zed docs; MCP spec

How to disconnect

Zed's MCP page does not describe disabling or removing a server. The entry lives under context_servers in your settings file; deleting it is the evident route, but the page does not state it. We will update this guide when the step is documented.

Sources

Screenshots are being added.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to Zed. sachinuppal.com.