# Fetch (MCP Server)

> Fetch web pages and convert them to markdown for LLMs

- Type: MCP server
- Publisher: Model Context Protocol (official)
- Categories: Research, Development
- Website: https://github.com/modelcontextprotocol/servers/tree/main/src/fetch
- Source: https://github.com/modelcontextprotocol/servers
- Transport: stdio
- Launch command: uvx mcp-server-fetch
- Sign-in: none
- GitHub stars: 90924
- Listed: 2024-11-25

## About

Reference Python MCP server that fetches a URL and converts the HTML to markdown. Supports chunked reading via start_index, raw output, and configurable robots.txt, user-agent and proxy behavior.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add fetch -- uvx mcp-server-fetch
   ```

   config.toml:

   ```toml
   [mcp_servers.fetch]
   command = "uvx"
   args = ["mcp-server-fetch"]
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Fetch",
       params={"command": "uvx", "args": ["mcp-server-fetch"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "Fetch https://modelcontextprotocol.io and summarize it")
       print(result.final_output)
   ```

## Tools

- `fetch`

## Example prompts

- "Fetch https://modelcontextprotocol.io and summarize it"
- "Read the changelog at this URL and list breaking changes"
- "Get the raw HTML of this page"

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/fetch · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
