# Virallinen MCP-hakupalvelin — HTML-koodin luettavuus merkintöjen puhdistamiseen (uvx) (`fetch-markdown-mcp`)

> Hakee robots.txt-tiedostoa kunnioittavat dokumentaation URL-osoitteet ja muuntaa meluisat DOM-sivut kompakteiksi Markdown-palasiksi LLM-kontekstiikkunoita varten.

- **Canonical URL:** https://syndipath.com/fi/mcp/fetch-markdown-mcp
- **Runtime:** `pypi` | **Transport:** STDIO | **License:** MIT | **Package:** `mcp-server-fetch`
- **Upvotes:** 794 | **GitHub Stars:** 6890 | **Weekly Installs:** 74200
- **Security Note:** HTTP-200 vahvistettu PyPI:ssä (mcp-server-fetch); ajaa yksittäisen Astral uvx lyhytaikaisen virtualenv sisällä.

## Quick CLI Setup
```bash
# Run isolated Python tool via Astral uvx
uvx mcp-server-fetch

# Alternative: run via pipx
pipx run mcp-server-fetch

# Add to Claude Code CLI
claude mcp add fetch-markdown-mcp -- uvx mcp-server-fetch
```

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

## Exposed MCP Tools
- `fetch_markdown_mcp_extract(url_or_query: string, max_chars?: number)`: Fetches documentation URLs respecting robots.txt and converts noisy DOM pages into compact Markdown chunks for LLM context windows.
- `fetch_markdown_mcp_metadata(target: string)`: Returns structured page headings, canonical links, and HTTP response diagnostics.
