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 block in settings.json. It starts the limited sandbox immediately. For the full account allowance, add ANNOLUX_API_KEY to command.env as shown on the MCP overview page.

{
  "context_servers": {
    "annolux": {
      "command": {
        "path": "npx",
        "args": ["-y", "annolux-mcp"]
      }
    }
  }
}

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 npx` 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. Every account gets 1,000 free credits each month.