fetch
Officialby modelcontextprotocol·★ 85,748·Score 76
An MCP server that fetches web content and converts HTML to markdown, allowing LLMs to read web pages.
Overview
The fetch MCP server provides a simple yet powerful tool for LLMs to retrieve and process web content. It converts HTML to markdown for easier consumption by language models, with options to control content length and starting position. The server includes security considerations, warning users about potential access to local/internal IP addresses. It supports various installation methods including uv, pip, and Docker, making it accessible across different environments.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this server when you need your AI system to access and process current web content, especially when you need to convert HTML to clean markdown for LLM consumption.
When NOT to choose this
Avoid this server if you need to access internal network resources (security risk) or if you require JavaScript execution as this server only handles static HTML content.
Tools this server exposes
1 tool extracted from the READMEfetchurl: string, max_length?: integer, start_index?: integer, raw?: booleanFetches a URL from the internet and extracts its contents as markdown
Comparable tools
Installation
Installation
**Using uv (recommended)** No specific installation needed. Use uvx to run the server directly:
uvx mcp-server-fetch**Using PIP** Install via pip:
pip install mcp-server-fetchThen run as:
python -m mcp_server_fetchClaude Desktop Configuration
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}FAQ
- Can the fetch server access local/internal IP addresses?
- Yes, the server can access local/internal IP addresses which may represent a security risk. Use caution to avoid exposing sensitive data.
- How can I customize the user-agent for fetch requests?
- Add --user-agent=YourUserAgent to the args list in your configuration to customize the user-agent string.
On Hacker News
Recent discussion from the developer community.
- Story by vinnyglennon · 2025-03-20
Compare fetch with
Last updated · Auto-generated from public README + GitHub signals.