# webfetch

> webfetch is an open-source MCP server. Self-hosted web search for LLM agents: search -> fetch -> rank pipeline with semantic caching. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/firish/webfetch
- **MCP Registry name:** io.github.firish/webfetch
- **Listing updated:** 2026-11-13

## About

Self-hosted web search for LLM agents: search -> fetch -> rank pipeline with semantic caching

## Install

### Claude Code (Terminal)

```sh
claude mcp add webfetch --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env SERPER_API_KEY='<SERPER_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' -- uvx webfetch-llm
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "webfetch-llm"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "webfetch-llm"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "webfetch": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "webfetch-llm"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "webfetch-llm"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "webfetch": {
      "command": "uvx",
      "args": [
        "webfetch-llm"
      ],
      "env": {
        "BRAVE_API_KEY": "<BRAVE_API_KEY>",
        "SERPER_API_KEY": "<SERPER_API_KEY>",
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is webfetch free?

Yes. webfetch is open source, so you can use and self-host it for free.

### How do I add webfetch to Claude Code?

Run this command in your terminal: claude mcp add webfetch --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env SERPER_API_KEY='<SERPER_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' -- uvx webfetch-llm

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/webfetch
