OpenGraph MCP Server for Zed

Enhance Zed's AI assistant with real-time web data access. Fetch metadata, capture screenshots, and scrape content directly in the high-performance editor.

Important: Zed Uses Different Config Format

Note: Zed uses context_servers instead of mcpServers. Make sure to use the correct format below.

Installation

  1. Edit Your Zed Settings

    Open Zed settings (Cmd + , on macOS) and add the context server configuration to your settings.json:

    ~/.config/zed/settings.json
    {
      "context_servers": {
        "opengraph": {
          "transport": "http",
          "url": "https://mcp.opengraph.io/mcp"
        }
      }
    }

    Prefer a static API key instead of signing in? See Signing In for the alternate config.

  2. Restart Zed

    Restart Zed. A browser tab will open the first time you connect so you can sign in with your OpenGraph.io account — no App ID needed.

  3. Verify the Connection

    Open the AI assistant panel and try asking it to unfurl a URL.

Configuration Notes

Key differences from other editors:

  • Zed uses context_servers (not mcpServers)
  • Config file is at ~/.config/zed/settings.json
  • The JSON structure otherwise follows the same pattern

Full Settings Example

If you have other Zed settings, add the context_servers key alongside them:

settings.json with other settings
{
  "theme": "One Dark",
  "buffer_font_size": 14,
  "context_servers": {
    "opengraph": {
      "transport": "http",
      "url": "https://mcp.opengraph.io/mcp"
    }
  }
}

Available Tools

Once connected, Zed's AI has access to:

  • Get OG Data – Extract OpenGraph metadata from URLs
  • Screenshot – Capture webpage screenshots
  • Scrape – Fetch HTML with JavaScript rendering
  • Query – Ask questions about page content

Example Prompts

Research Documentation

Fetch docs
Unfurl https://zed.dev/docs and summarize what Zed's documentation covers.

Analyze a Website

Screenshot
Take a screenshot of https://rust-lang.org and describe the homepage layout.

Extract Content

Scrape content
Scrape https://crates.io and list the most downloaded crates.

Troubleshooting

Context server not loading?

  • Make sure you used context_servers, not mcpServers
  • Verify your JSON syntax is valid (no trailing commas)
  • Restart Zed completely after changing settings
  • If you signed in, make sure you approved the connection in the browser tab that opened

Finding Zed logs

Check Zed's logs for context server errors:

  • macOS: ~/Library/Logs/Zed/
  • Linux: ~/.local/share/zed/logs/

Related Guides