How to Add a Remote MCP Server to Zed
One settings block, no headers, no keys — Zed has one of the cleanest MCP setups there is. The catch is that supplying any auth field makes it skip OAuth entirely, and — a known Zed issue as of July 2026 — tools from OAuth-authenticated servers may not appear in an external agent driven through ACP.
Last verified August 8, 2026
How do I add a remote MCP server to Zed?
Add a context_servers block to your settings.json with the server's name and its url — that is the entire configuration. No headers, no tokens, no keys. Zed runs the OAuth flow as soon as it connects, stores the tokens in your system keychain, and refreshes them automatically. Settings hot-reload, so there is no restart. MCP is not gated by any plan, and it works on macOS, Linux, and Windows.
This is one of the cleanest MCP setups of any client, which makes its two failure modes worth knowing precisely, because neither is about the config being wrong.
Adding the server
Two equivalent paths.
From the UI: open the Agent Panel, then use its settings menu to add a remote MCP server — also reachable via Settings → AI → MCP Servers. Enter a name and the URL.
From settings.json: open your settings (Cmd+, / Ctrl+,, or the zed: open settings command) and add:
{
"context_servers": {
"my-server": {
"url": "https://mcp.example.com/mcp"
}
}
}
Note the key name: context_servers, not mcpServers. Zed uses its own vocabulary here.
Authorization, and the field that disables it
Zed prompts the OAuth flow as soon as it connects: a browser tab opens to the server's consent screen, you approve, and Zed stores the tokens in your system keychain and refreshes them automatically. You should not need to authorize again.
Leaving the auth fields empty is what triggers this. Supplying headers or any auth field makes Zed skip the OAuth flow entirely — confusing behavior if you added a header speculatively while debugging. If the OAuth prompt never appears, an auth field is the first thing to remove.
Verifying
Settings hot-reload, so there is nothing to restart. Check the server's status in the Agent Panel — it should show as connected — then ask the agent what tools it has access to.
What usually goes wrong
- The OAuth prompt never appears. An auth field or
headersentry is present. Remove it, save, reconnect. - The server shows an error state. Settings hot-reload on save, so fix the JSON — a stray comma is the usual cause — and the server reconnects on its own.
- Connection fails immediately. Check the URL against exactly what the server publishes, including the path and any trailing slash.
- Tools work in Zed's agent but not in an external agent. See below — this one is not your config.
The ACP gap
If you drive an external agent inside Zed through ACP — for example running a terminal agent in the Agent Panel — tools from OAuth-authenticated servers may not appear. This is a known Zed issue as of July 2026, and Zed's own agent is unaffected.
The distinction matters because the symptom looks exactly like a broken connection when nothing is broken. The fix is not to re-check your context_servers block; it is to connect the server directly inside that external tool, using that tool's own MCP configuration.
A worked example
With a real server — Tempreon, a hosted MCP server that carries your context between tools:
{
"context_servers": {
"tempreon": {
"url": "https://api.tempreon.com/functions/v1/tempreon-mcp/mcp"
}
}
}
Save, approve in the browser, and the Agent Panel shows it connected. The account-holder walkthrough is in the Zed setup doc.
Sources
The dated claims on this page were checked against this vendor document. Client UIs move constantly, so if one of these has changed since the date shown, trust the vendor over this page — and tell us.
- Model Context Protocol (MCP) in Zed — read 2026-08-09
Frequently asked questions
- Where do I add an MCP server in Zed?
- There are two equivalent paths. In the UI, open the Agent Panel and use its settings menu to add a remote MCP server, which is also reachable via Settings then AI then MCP Servers. From settings.json, open your settings with Cmd+comma or the zed: open settings command and add a context_servers block containing the server name and just the url.
- The OAuth prompt never appears in Zed. How do I fix it?
- Confirm the server entry has no headers or auth fields. Leaving those empty is what tells Zed to run the standard MCP OAuth flow, so supplying any of them makes Zed skip it. Remove them, save, and reconnect — settings hot-reload, so no restart is needed.
- Tools appear in Zed's own agent but not in an external agent running inside Zed. Why?
- This is a known Zed issue as of July 2026. When you drive an external agent inside Zed through ACP, tools from OAuth-authenticated servers may not appear, though Zed's own agent is unaffected. The fix is to connect the server directly in that external tool instead.