Fetch (Reference) — Claude Code MCP server: what it does
Fetch (Reference) is an MCP server for Claude Code that retrieves web pages by URL and returns their contents as Markdown. It lets an agent read a web page.
no license ★ 92,149 updated 2026-10-25
Open on GitHubWhat Fetch (Reference) does
The fetch tool retrieves a page from a URL and turns its HTML into Markdown. It can also return unconverted content or resume extraction from a chosen character position when a response is cut short. The server reads pages and can connect to arbitrary internet hosts.
The server requires MCP Python SDK 2.x (mcp>=2.3,<3). Run it with uvx, or install the package using pip install mcp-server-fetch and launch it with python -m mcp_server_fetch. Node.js is optional; when installed, it enables a different HTML simplifier.
By default, requests to private and local IP addresses are refused, including redirect destinations. The --allow-private-ips flag disables this safeguard. DNS checks also cannot prevent an address from changing between the check and the connection.
What it helps with
- retrieve a web page from its URL
- convert page HTML into Markdown
- read a long page in sections
- get page contents without Markdown conversion
Example prompts for the agent
- Read the page at this URL and summarize its contents.
- Fetch this page as Markdown, starting at the requested section.
- Retrieve this URL and return the content without converting it.
How to install Fetch (Reference)
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Fetch (Reference)
How do I install Fetch (Reference) in Claude Code?
Run the server with uvx mcp-server-fetch. For a pip installation, run pip install mcp-server-fetch, then launch it with python -m mcp_server_fetch.
What does Fetch (Reference) do?
It retrieves a page by URL and extracts its contents as Markdown. It can also return unconverted content or start reading at a chosen position.
How does Fetch (Reference) handle private IP addresses?
It refuses private and local addresses by default, including destinations reached through redirects. The --allow-private-ips flag turns off this safeguard.