MCP · Zed

Zed editor web search MCP setup

Connect Annolux bilingual search MCP server to Zed AI assistant with one context server block.

Config file location

  • ~/.config/zed/settings.json — user settings for Zed on macOS and Linux.
  • In Zed, press `cmd-,` or open `Zed → Settings → Open Settings` to edit settings.json.

The JSON

Add the context_servers configuration block in settings.json. Replace the key placeholder with your real API key.

{
  "context_servers": {
    "annolux": {
      "command": {
        "path": "annolux-mcp",
        "args": ["-key", "ann_live_REPLACE_ME"],
        "env": {
          "ANNOLUX_API_URL": "https://api.annolux.com"
        }
      }
    }
  }
}

Using search in Zed Assistant

In Zed Assistant Panel, the assistant automatically queries search_web when answering questions requiring external documentation. Results include title, URL, and fetched_at timestamp.

Troubleshooting

  • Path configuration: specify the full path from `which annolux-mcp` in the command path field if not in standard PATH.
  • Restart Zed or reopen the Assistant panel after updating settings.json.

Boundaries and credits

search_web queries a curated English and Chinese index. Only a successful 2xx search costs one credit; errors and timeouts cost zero. New accounts start with 1,000 free credits.