Fetch MCP Server
OfficialServidor MCP Fetch
Un servidor del Protocolo de Contexto de Modelo (MCP) que proporciona capacidades de recuperación de contenido web. Este servidor permite a los LLM recuperar y procesar contenido de páginas web, convirtiendo HTML a markdown para facilitar su consumo.
[!CAUTION] Este servidor puede acceder a direcciones IP locales/internas y puede representar un riesgo de seguridad. Tenga precaución al utilizar este servidor MCP para asegurarse de que esto no exponga datos confidenciales.
La herramienta de recuperación (fetch) truncará la respuesta, pero al usar el argumento start_index, puede especificar dónde comenzar la extracción de contenido. Esto permite a los modelos leer una página web en fragmentos, hasta que encuentren la información que necesitan.
Herramientas disponibles
fetch- Recupera una URL de internet y extrae su contenido como markdown.url(cadena, requerido): URL a recuperarmax_length(entero, opcional): Número máximo de caracteres a devolver (predeterminado: 5000)start_index(entero, opcional): Iniciar el contenido desde este índice de caracteres (predeterminado: 0)raw(booleano, opcional): Obtener contenido sin procesar sin conversión a markdown (predeterminado: false)
Prompts
fetch
Recuperar una URL y extraer su contenido como markdown
Argumentos:
url(cadena, requerido): URL a recuperar
Instalación
Opcional: Instale node.js, esto hará que el servidor de recuperación utilice un simplificador de HTML diferente que es más robusto.
Usando uv (recomendado)
Al usar uv no se necesita ninguna instalación específica. Usaremos uvx para ejecutar directamente mcp-server-fetch.
Usando PIP
Alternativamente, puede instalar mcp-server-fetch a través de pip:
pip install mcp-server-fetchDespués de la instalación, puede ejecutarlo como un script usando:
python -m mcp_server_fetchRelated MCP server: MCP Fetch
Configuración
Configurar para Claude.app
Añada a sus ajustes de Claude:
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}{
"mcpServers": {
"fetch": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/fetch"]
}
}
}{
"mcpServers": {
"fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"]
}
}
}Configurar para VS Code
Para una instalación rápida, utilice uno de los botones de instalación con un solo clic a continuación...
Para la instalación manual, añada el siguiente bloque JSON a su archivo de Configuración de usuario (JSON) en VS Code. Puede hacerlo presionando Ctrl + Shift + P y escribiendo Preferences: Open User Settings (JSON).
Opcionalmente, puede añadirlo a un archivo llamado .vscode/mcp.json en su espacio de trabajo. Esto le permitirá compartir la configuración con otros.
Tenga en cuenta que la clave
mcpes necesaria cuando se utiliza el archivomcp.json.
{
"mcp": {
"servers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"]
}
}
}
}{
"mcp": {
"servers": {
"fetch": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/fetch"]
}
}
}
}Personalización - robots.txt
De forma predeterminada, el servidor obedecerá el archivo robots.txt de un sitio web si la solicitud provino del modelo (a través de una herramienta), pero no si la solicitud fue iniciada por el usuario (a través de un prompt). Esto se puede deshabilitar añadiendo el argumento --ignore-robots-txt a la lista args en la configuración.
Personalización - User-agent
De forma predeterminada, dependiendo de si la solicitud provino del modelo (a través de una herramienta) o fue iniciada por el usuario (a través de un prompt), el servidor utilizará el user-agent
ModelContextProtocol/1.0 (Autonomous; +https://github.com/modelcontextprotocol/servers)o
ModelContextProtocol/1.0 (User-Specified; +https://github.com/modelcontextprotocol/servers)Esto se puede personalizar añadiendo el argumento --user-agent=YourUserAgent a la lista args en la configuración.
Personalización - Proxy
El servidor se puede configurar para usar un proxy mediante el uso del argumento --proxy-url.
Configuración en Windows
Si experimenta problemas de tiempo de espera (timeout) en Windows, es posible que deba establecer la variable de entorno PYTHONIOENCODING para garantizar una codificación de caracteres adecuada:
{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": ["mcp-server-fetch"],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}{
"mcpServers": {
"fetch": {
"command": "python",
"args": ["-m", "mcp_server_fetch"],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Esto soluciona los problemas de codificación de caracteres que pueden causar que el servidor agote el tiempo de espera en sistemas Windows.
Depuración
Puede utilizar el inspector MCP para depurar el servidor. Para instalaciones uvx:
npx @modelcontextprotocol/inspector uvx mcp-server-fetchO si ha instalado el paquete en un directorio específico o está desarrollando en él:
cd path/to/servers/src/fetch
npx @modelcontextprotocol/inspector uv run mcp-server-fetchContribución
Fomentamos las contribuciones para ayudar a expandir y mejorar mcp-server-fetch. Ya sea que desee añadir nuevas herramientas, mejorar la funcionalidad existente o mejorar la documentación, su aporte es valioso.
Para ejemplos de otros servidores MCP y patrones de implementación, consulte: https://github.com/modelcontextprotocol/servers
¡Las solicitudes de extracción (pull requests) son bienvenidas! Siéntase libre de contribuir con nuevas ideas, correcciones de errores o mejoras para hacer que mcp-server-fetch sea aún más potente y útil.
Licencia
mcp-server-fetch tiene licencia bajo la Licencia MIT. Esto significa que usted es libre de usar, modificar y distribuir el software, sujeto a los términos y condiciones de la Licencia MIT. Para obtener más detalles, consulte el archivo LICENSE en el repositorio del proyecto.
Available Tools
1 toolfetchA
Fetches a URL from the internet and optionally extracts its contents as markdown.
Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Get the actual HTML content of the requested page, without simplification. | |
| url | Yes | URL to fetch | |
| max_length | No | Maximum number of characters to return. | |
| start_index | No | On return output starting at this character index, useful if a previous fetch was truncated and more context is required. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Without annotations, the description partially covers behavior: it mentions fetching and markdown extraction but omits error handling, rate limits, or response truncation details. The meta note about past limitations does not add behavioral transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is brief with two sentences, front-loading the main action. The second sentence is slightly verbose but still concise overall.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no siblings or output schema, the description covers the core functionality and parameter usage adequately. It lacks mention of error scenarios but is sufficient for a fetch tool with well-defined schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the description adds minimal value beyond parameter descriptions. It provides context by linking 'optionally extracts markdown' to the 'raw' parameter, but not enough to raise the score above baseline.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool fetches a URL from the internet and optionally extracts markdown. It distinguishes this from any other tool by emphasizing internet access, and there are no siblings to differentiate.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description tells the agent to use this tool for obtaining up-to-date internet information. Though lacking explicit when-not-to-use, the context of granting internet access implies its primary use case.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- First observed
fetch
TDQS
Scored across 1 tool
With only one tool, there is no ambiguity for an agent to distinguish between tools.
The single tool is named 'fetch', a clear verb describing its action, and consistency is trivially maintained.
One tool is appropriate for a focused server dedicated to fetching URLs, covering its core purpose without unnecessary expansion.
The tool fetches a URL and optionally extracts markdown, but lacks support for other output formats or request customization, leaving some gaps for varied use cases.
Maintenance
Related MCP Connectors
Web scraping for AI agents. Converts URLs to clean, LLM-ready Markdown with anti-bot bypass.
Read any web page as clean Markdown for AI agents: fetch, search, metadata, links. SSRF-safe.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Converts any URL to clean, LLM-ready Markdown using real Chrome browsers
Related MCP Servers
AlicenseBqualityDmaintenanceThis server converts webpages into clean, structured Markdown optimized for language model consumption, removing unnecessary content and supporting JavaScript rendering.112MIT- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows LLMs to retrieve and convert web content to markdown without robots.txt restrictions.12MIT
- AlicenseAqualityCmaintenanceAn MCP server that fetches web pages and extracts clean, AI-friendly Markdown content using Mozilla Readability. It provides secure web access for LLMs with built-in SSRF protection and automated content cleaning for improved context retrieval and summarization.1205 npmMIT
- AlicenseNot gradedqualityBmaintenanceConverts web pages to Markdown for MCP clients like Claude, with support for single and batch reads, caching, fallback rendering, and SSRF protection.18 npmMIT