MCP ServerSTDIO

Fetch MCP Server

Fetch is the smallest useful web server in the MCP reference set: one tool that takes a URL, retrieves it, converts the HTML to markdown and returns it. It handles the two things that actually matter in practice — stripping markup noise and paginating pages too long for a context window.

Hosted URL

Bring your own

Suggested model

Gemini 3.8 Flash

Chat with 60+ AI models on the same workflow — switch to a different model mid-conversation and re-run the same prompt, or use Compare mode to put several side-by-side and balance quality vs. cost.

Auth

No token required

What the Fetch MCP server does

How models use it and what it is built for.

The fetch server retrieves a single URL and simplifies the result before the model ever sees it, converting HTML into markdown so a page costs a fraction of the tokens raw markup would. Long pages are handled with a start_index cursor and a max_length cap: the model reads a chunk, and if the response was truncated it calls again from where it stopped, which lets it work through a long article without blowing the context window. A raw flag returns unconverted content when you actually need the markup. By default the server honours the target site robots.txt for model-initiated requests and identifies itself with an MCP user agent; both behaviours are configurable, and the server distinguishes requests the model made on its own from ones a user explicitly asked for.

Tools the Fetch MCP server exposes

Typical tools an AI model can call. Exact names vary by version.

  • fetch — retrieve a URL and return its content as markdown
  • url — the target address, the only required argument
  • max_length — cap the characters returned so a long page cannot flood context
  • start_index — resume from a character offset to page through long documents
  • raw — skip the markdown conversion and return the content as served

Connecting to Fetch

Taken from the official Fetch documentation — see Fetch MCP Server — official reference implementation for the full reference.

Client configuration

uvx (recommended)

uvx builds a temporary environment and runs the published package — nothing to install first.

{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    }
  }
}

Ignore robots.txt (use deliberately)

Only for sites you own or have permission to crawl. The default is to honour robots.txt on model-initiated requests.

{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch", "--ignore-robots-txt"]
    }
  }
}

Example prompts to try

Copy any of these into MCP Agent Studio after connecting.

  • Read this changelog URL and tell me what changed in the last two releases.

  • Fetch this RFC and summarise the sections that concern authentication.

  • Open this blog post and pull out every code block.

  • Read this long documentation page in chunks and list the configuration options.

Models on MCP Playground

This is not a single-model product: you get the same MCP connection with 60+ models (Claude, GPT, Gemini, DeepSeek, open-weight, and more), you can switch mid-conversation, and you can open Compare mode to run the same prompt against multiple models at once. The card above is a suggested starting point for this server — not the only choice.

Default pick for Fetch

Gemini 3.8 Flash

Fetching is a cheap, high-volume operation over long pages. Gemini Flash reads a full article for a fraction of the cost of a frontier model.

Check an AI agent can actually use the Fetch MCP server

Listing tools proves the server is reachable, not that a model can work with it. Evals go further: they read every tool on the server, write a test suite from its real schemas, and run it — code decides pass/fail on the responses (schema conformance, error codes, pagination, result caps) while a scoring model grades plain-English tasks driven through the tools.

Get a pass/fail report per tool with the evidence behind each verdict — and replay the same suite after every schema change. Destructive tools are excluded from the run.

Run evals

Try the Fetch MCP server in your browser

Open MCP Agent Studio with the connection pre-filled. Add your token, pick any of 60+ models, and start chatting — no install required.

Open Agent Studio

Fetch MCP server — FAQ

Common questions about connecting, scoping and using it safely.

What is the fetch MCP server?

It is an official reference server from the Model Context Protocol project, published on PyPI as mcp-server-fetch. It retrieves a single URL and converts it to markdown so a model can read the content without wading through HTML.

How does it handle pages longer than the context window?

It truncates at max_length and tells the model where it stopped. The model then calls fetch again with a start_index at that offset, so it can page through a long document in sequence rather than failing on it.

Does it respect robots.txt?

Yes, by default, for requests the model initiates on its own. The --ignore-robots-txt flag disables that check. The server also treats a URL the user explicitly asked for differently from one the model chose itself.

Can it fetch pages that need JavaScript?

No. It is a plain HTTP fetch with HTML-to-markdown conversion, so a client-rendered app returns an empty shell. Use a browser-driving server like Playwright, or a rendering service like Firecrawl, when the content only exists after JavaScript runs.

Is fetching a URL into a model safe?

The content is untrusted by definition. A page can contain text crafted to read as an instruction to your agent. Keep fetch away from tools that can write or spend, and inspect the tool traffic in MCP Agent Studio before trusting it in an autonomous loop.

Other MCP servers

More on MCP Playground

Fetch MCP Server — Web Content Retrieval for AI Models