AI Code Editor · Zed Industries

Add Browser-Based MCP Context Servers to Zed Editor

Zed calls MCP servers "context servers" — they supply tools and context to Zed's built-in AI assistant. Agent MCP Studio plugs right in via the relay bridge, giving Zed access to your custom browser-built tools without any local server setup.

Share:

Prerequisites

Step-by-Step Setup

  1. Get your relay URL

    Open the studio → SettingsMCP Relay Bridge → copy URL → click Connect.

  2. Download bridge.js

    curl -O https://agentmcp.studio/bridge.js && npm install ws
  3. Edit Zed's settings.json

    In Zed: Cmd+,Open settings.json. Add the context_servers key:

    {
      "context_servers": {
        "agent-mcp-studio": {
          "command": {
            "path": "node",
            "args": [
              "/path/to/bridge.js",
              "wss://agentmcp.studio/api/relay/YOUR-UUID"
            ]
          },
          "settings": {}
        }
      }
    }
  4. Use tools in Zed's AI assistant

    Open the AI panel (Cmd+?), type / to see available context servers and tools, or let the assistant call them automatically when relevant to your coding task.

Frequently Asked Questions

Yes — Zed supports MCP via its "context servers" system. Add your MCP server to context_servers in Zed's settings.json and Zed's AI assistant gains access to your custom tools.

Open Zed → Preferences → Open Settings (or Cmd+Comma). Add a context_servers section to your settings.json. Each entry specifies the command and arguments to launch the MCP server.

Zed is a high-performance collaborative code editor built in Rust, known for its speed and native AI integration. Its context server system (based on MCP) lets you extend the AI assistant with custom data sources and tools.

Yes — Zed supports multiple AI backends including Anthropic Claude, OpenAI, and local models via Ollama. MCP context servers work regardless of which AI model you configure in Zed.

Check: (1) settings.json syntax is valid JSON, (2) full absolute path to bridge.js is correct, (3) Node.js is accessible from Zed's environment (check with which node), (4) relay UUID matches Agent MCP Studio Settings.

Related Integrations