
Fetch MCP Server
One tool that fetches a URL and hands back the page as markdown.
- Started in our test
- ★ 92.2K GitHub stars
- Last commit 24 Nov 2026
What is Fetch MCP Server?
Fetch MCP Server is the Model Context Protocol project's reference server that downloads a web page and returns its content as markdown, in chunks, so a model can read any URL.
- Tools
- 1
- Runs on
- Your computer
- Licence
- MIT
- GitHub stars
- 92.2K
Good for
- Reading a docs page, changelog or article the model has not seen
- Giving a client with no web access a simple, free way to read links
- Restricting the model to a few trusted sites with --allowed-hosts
You'll need
- uv, which runs it with uvx and fetches Python 3.11.5 or newer for you
- Optionally Node.js, for a sturdier HTML simplifier
Started in our testWe ran this exact config on 24 Nov 2026: it started and answered with 1 tools.
Try asking Fetch MCP Server
Once it is installed, ask your assistant things like:
- Read https://nextjs.org/blog and summarise the latest release post.
- Fetch this changelog and tell me what changed in version 3: <link>
- Read this article and give me the five main points: <link>
MCP Shelf take
We started Fetch on our own test machine on 24 Nov 2026 and it answered with 1 tool. It only reads, so it cannot change anything on its own. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 100 tokens of context before you ask a thing. It is the most-starred of the 16 servers in its category on our shelf (92.2K stars).
What can Fetch MCP Server read and change?
It can read
- Any public web page or file a URL points to, up to 5 MiB per response
- Each site's robots.txt, which it checks before the model's requests
It can change
- Nothing: it only sends GET requests and returns what comes back
- With Node.js installed, it may install its HTML simplifier from npm on first use
Safer setup: Keep the defaults, which obey robots.txt and refuse internal addresses, and add --allowed-hosts so the model can only read the sites you name.
Fetch MCP Server in more detail
Fetch is one of the reference servers kept by the Model Context Protocol project. It does a single job well: give it a URL and it downloads the page, strips the layout and returns the content as markdown. Long pages come back in chunks, so the model can keep reading from where it stopped until it finds what it needs.
It is careful by default. It obeys robots.txt when the model asks for a page, refuses private and internal addresses (including cloud metadata endpoints) unless you allow them, and reads at most 5 MiB of any response. You can also limit it to a list of hosts.
- Made by
- Model Context Protocol project (modelcontextprotocol/servers)
- Latest version
- 2026.11.18 (18 Nov 2026)
- PyPI package
- mcp-server-fetch
- Last commit
- 24 Nov 2026
- Setup checked
- 24 Nov 2026
- Page updated
- 24 Nov 2026
What's in the pod
What tools does Fetch MCP Server have?
We found 1 tool when we started it on 24 Nov 2026. Every one of them only reads, so nothing changes unless you act on what it finds.
Only reads1 tool · Looks things up and changes nothing.
| Tool | What it is for |
|---|---|
fetch | Downloads a URL and returns it as markdown, or as raw content with raw set to true. max_length caps each reply (5,000 characters by default) and start_index continues where the last one stopped. |
Grouped and described by us. The README on GitHub lists the inputs each tool takes.
How clearly it describes its tools to your assistant
- Tools with a description
- 1 of 1
- Say if they change things
- 1 of 1
- Context it takes, at least
- ~100 tokens
Every tool says whether it only reads or can change things, so a client can ask before the risky ones.
From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.
How do I install Fetch MCP Server?
Quick install
Pick your app and paste this in. It follows the README's own install steps below.
Where it goes: Your terminal, in the project folder
claude mcp add fetch -- uvx mcp-server-fetchclaude mcp add fetch -- uvx mcp-server-fetch
Where it goes: ~/.cursor/mcp.json, or .cursor/mcp.json in a project
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Where it goes: claude_desktop_config.json (Settings → Developer → Edit Config)
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Where it goes: .vscode/mcp.json in your project
{
"servers": {
"fetch": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}In VS Code's mcp.json, put the entry under servers with the command uvx and the arg mcp-server-fetch. The README also shows a Docker version running mcp/fetch.
Install steps from the Fetch MCP Server README
The project's own instructions, copied from its README on GitHub on 24 Nov 2026 under its MIT licence. They are the source of truth; the ready-made configs further down are built from them. The full README is on GitHub.
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run mcp-server-fetch.
Using PIP
Alternatively you can install mcp-server-fetch via pip:
pip install mcp-server-fetch
After installation, you can run it as a script using:
python -m mcp_server_fetch
Configure for Claude.app
Add to your Claude settings:
Using uvx
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}
Using docker
{
"mcpServers": {
"fetch": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/fetch"]
}
}
}
Using pip installation
{
"mcpServers": {
"fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"]
}
}
}
Configure for VS Code
For quick installation, use one of the one-click install buttons below...
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).
Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.
Note that the
mcpkey is needed when using themcp.jsonfile.
Using uvx
{
"mcp": {
"servers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}
}
Using Docker
{
"mcp": {
"servers": {
"fetch": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/fetch"]
}
}
}
}
What you need first
- uv, which runs it with uvx and fetches Python 3.11.5 or newer for you
- Optionally Node.js, for a sturdier HTML simplifier
Add Fetch MCP Server to your app
Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.
Where it goes: Your terminal, in the project folder
claude mcp add fetch -- uvx mcp-server-fetchclaude mcp add fetch -- uvx mcp-server-fetch
Where it goes: ~/.cursor/mcp.json, or .cursor/mcp.json in a project
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Where it goes: claude_desktop_config.json (Settings → Developer → Edit Config)
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Where it goes: .vscode/mcp.json in your project
{
"servers": {
"fetch": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}In VS Code's mcp.json, put the entry under servers with the command uvx and the arg mcp-server-fetch. The README also shows a Docker version running mcp/fetch.
Where it goes: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]Or run: codex mcp add fetch -- uvx mcp-server-fetch
Where it goes: ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Where it goes: Not supported
ChatGPT on the web only connects to servers by URL. This one runs on your computer: the ChatGPT desktop app can start it from its MCP servers settings, with the same config as the Codex tab.
Add --allowed-hosts followed by host names to limit where it may go, or --ignore-robots-txt and --allow-private-ips only if you need them. Docker users can run mcp/fetch instead.
Checked against the project's own install docs on 24 Nov 2026: github.com/modelcontextprotocol/servers/tree/main/src/fetch, pypi.org/project/mcp-server-fetch.
Did this work for you?
Projects change their install steps often. If Fetch MCP Server did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.
New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.
Fetch MCP Server not working? Common fixes
- A page is refused because of robots.txt
- The server obeys robots.txt for the model's own requests. If you have the right to read the page, add --ignore-robots-txt to args.
- localhost or an intranet page is refused
- Private and internal addresses are blocked by default. Add --allow-private-ips. If you also use --allowed-hosts, list that host there too, since a request has to pass both checks.
- The answer stops partway through a long page
- That is the 5,000-character default. Ask the model to keep reading, which calls fetch again with start_index, or raise max_length.
- The server tries to reach the npm registry
- With Node.js on the machine it installs a JavaScript HTML simplifier the first time. Add --no-readability-js to stay on the Python extractor.
How do I configure Fetch MCP Server?
Names are exactly as the project spells them. Required ones are marked.
| Setting | What it does |
|---|---|
--allowed-hostsCommand line flag | Only lets it fetch from the hosts you list. *.example.com matches subdomains but not example.com itself.--allowed-hosts docs.python.org *.wikipedia.org |
--ignore-robots-txtCommand line flag | Fetches pages even when the site's robots.txt disallows it. By default the model's requests obey robots.txt. |
--allow-private-ipsCommand line flag | Allows loopback, private and link-local addresses, such as a local dev server. Off by default, which also blocks cloud metadata endpoints. |
--user-agentCommand line flag | Sends your own User-Agent instead of the ModelContextProtocol one.--user-agent=MyAgent/1.0 |
--timeout-msCommand line flag | Changes the request timeout for every call, 30 seconds by default.--timeout-ms=60000 |
--proxy-urlCommand line flag | Sends requests through a proxy. Without it, the standard HTTP_PROXY, HTTPS_PROXY and ALL_PROXY variables are used. |
--no-readability-jsCommand line flag | Always uses the pure-Python HTML extractor, so the server never starts Node.js or installs packages from npm. |
--transport streamable-httpCommand line flag | Runs it as a local HTTP service at http://127.0.0.1:3001/mcp instead of over stdio. |
Fetch MCP Server FAQ
Is the Fetch MCP Server official?
Yes. It is one of the reference servers maintained by the Model Context Protocol project in the modelcontextprotocol/servers repository, published on PyPI as mcp-server-fetch.
Does the Fetch MCP Server need an API key?
No. It downloads pages directly from the sites, so there is no account, key or cost. You only need uv, or Python 3.11.5 or newer with pip.
Can it read pages that need JavaScript?
No. It downloads the HTML the server sends and converts it to markdown, without running scripts. For pages that only render in a browser, use a browser server such as Playwright or Chrome DevTools MCP.
Is the Fetch server safe to run?
It only reads, and by default it refuses private and internal addresses, checks every redirect, obeys robots.txt for the model's requests and stops at 5 MiB. Add --allowed-hosts to limit it to sites you trust.
How is it different from a search server?
Fetch reads a URL you or the model already have. It cannot search. Pair it with a search server such as Brave Search or DuckDuckGo when the model needs to find pages first.
How do I add the Fetch MCP Server to Claude Code?
Run claude mcp add fetch -- uvx mcp-server-fetch. uv downloads the package and a suitable Python the first time it starts.
How do I add the Fetch MCP Server to Cursor?
Add an entry named fetch to ~/.cursor/mcp.json with the command uvx and the args mcp-server-fetch, then reload Cursor's MCP servers. Use docker with run -i --rm mcp/fetch instead if you prefer Docker.
Can I use the Fetch MCP Server in VS Code?
Yes, with GitHub Copilot in Agent mode. Add a server named fetch with the command uvx and the args mcp-server-fetch to .vscode/mcp.json or your user MCP configuration.
Does the Fetch MCP Server work with Codex?
Yes. Run codex mcp add fetch -- uvx mcp-server-fetch, or add an [mcp_servers.fetch] table with the same command and args to ~/.codex/config.toml.
Two peas, one chat
Chat with AI about Fetch
Opens a chat primed with Fetch’s README and setup docs from this page, or add it in Cursor to use its tools.
The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.
Peas in a pod
What are the alternatives to Fetch MCP Server?
How Fetch MCP Server lines up against its neighbours on the shelf. See every browser and web data server.

Fetch MCP ServerThis pea
One tool that fetches a URL and hands back the page as markdown.
- Tools
- 1
- Runs on
- Your computer
- Licence
- MIT
- Stars
- 92.2K

Scrape pages, crawl sites and search, returned as clean Markdown.
- Tools
- 28
- Runs on
- Your computer or hosted
- Licence
- MIT
- Stars
- 7.7K

Find and run ready-made Apify scrapers for maps, social media, shops and search.
- Tools
- 10
- Runs on
- Hosted or your computer
- Licence
- MIT
- Stars
- 13.6K

Search and scraping through Bright Data, for sites that block ordinary requests.
- Tools
- 32
- Runs on
- Hosted or your computer
- Licence
- MIT
- Stars
- 2.7K

Tavily's search, page extraction, site mapping and crawling for agents.
- Tools
- 5
- Runs on
- Hosted or your computer
- Licence
- MIT
- Stars
- 2.5K

Search, fetch, crawl and extract the web locally, with no keys or metered bill.
- Tools
- 10
- Runs on
- Your computer
- Licence
- AGPL-3.0-only
- Stars
- 5.5K
Something wrong on this page? Tell us.
For bots & AI agents
Machine-readable versions of Fetch MCP Server and MCP Shelf. Fetch these instead of parsing this page.
This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs