Fetch
Overview
Fetch is a Model Context Protocol server designed to provide web content fetching capabilities, allowing LLMs to retrieve and process content from web pages by converting HTML to markdown for easier consumption.
To use Fetch, you can install it via pip or run it using uv or Docker. After installation, you can fetch a URL and extract its contents as markdown by specifying the URL and optional parameters like max_length and start_index.
- Fetches web content and converts it to markdown format. - Supports fetching content in chunks using the start_index argument. - Can be configured to use different commands (uv, pip, Docker) for running the server.
- Retrieving and processing web content for LLMs.
- Converting HTML content to markdown for easier readability.
- Integrating web content fetching capabilities into applications.
Add to your AI client
Use these steps to connect Fetch in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"fetch-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"fetch-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"fetch-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"fetch-modelcontextprotocol": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"fetch-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"fetch-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-fetch-modelcontextprotocol"
]
}
}
}FAQ
Can Fetch access local/internal IP addresses?
Yes, Fetch can access local/internal IP addresses, which may pose a security risk.
How do I install Fetch?
You can install Fetch using pip with the command `pip install mcp-server-fetch` or run it using uv or Docker.
Is Fetch secure to use?
Exercise caution when using Fetch, especially when accessing sensitive data.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":17780,"uuid":"086f3ffb-ace0-47fa-9afe-1a1fc34617ec","name":"fetch","title":"Fetch","description":"","avatar_url":"","created_at":"2026-01-14T05:27:42.560Z","updated_at":"2026-01-22T16:05:51.333Z","status":"created","author_name":"modelcontextprotocol","author_avatar_url":null,"tags":"fetch,web-content,markdown-converter","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/modelcontextprotocol/servers/tree/main/src/fetch/src/mcp_server_fetch","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":"server","metadata":null,"user_uuid":"e161e9bd-20e3-48ab-9657-c367e59fe37b","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":true,"server_command":null,"server_params":null,"server_config":"","allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]