---
title: "Fetch MCP Server Setup Guide and Schema"
slug: "fetch"
category: "search-web"
package: "mcp-server-fetch"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/fetch"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Fetch MCP Server

> Fetch web pages and convert HTML to clean, token-efficient Markdown.

## Overview
Fetch any URL and convert HTML content to clean Markdown, optimized for LLM token consumption. Supports robots.txt checking, content extraction, and efficient web content ingestion for AI agents.

## Quick Install
```bash
uvx mcp-server-fetch
```

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]
```

## Available Tools (1)

- `fetch`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/fetch
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/fetch
- Setup Tutorial Guide: https://mcp-codex.com/articles/fetch-mcp-server-guide

