Skip to main content
Glama
Fetch MCP Server

Fetch MCP Server

by zcaceres

Obtener servidor MCP

Obtener el logotipo de mcp

Este servidor MCP proporciona funcionalidad para obtener contenido web en varios formatos, incluidos HTML, JSON, texto simple y Markdown.

Componentes

Herramientas

  • obtener_html

    • Obtener un sitio web y devolver el contenido como HTML

    • Aporte:

      • url (cadena, obligatoria): URL del sitio web que se buscará

      • headers (objeto, opcional): encabezados personalizados para incluir en la solicitud

    • Devuelve el contenido HTML sin procesar de la página web.

  • obtener_json

    • Obtener un archivo JSON desde una URL

    • Aporte:

      • url (cadena, obligatoria): URL del JSON a obtener

      • headers (objeto, opcional): encabezados personalizados para incluir en la solicitud

    • Devuelve el contenido JSON analizado

  • obtener_txt

    • Obtener un sitio web y devolver el contenido como texto sin formato (sin HTML)

    • Aporte:

      • url (cadena, obligatoria): URL del sitio web que se buscará

      • headers (objeto, opcional): encabezados personalizados para incluir en la solicitud

    • Devuelve el contenido de texto de la página web con etiquetas HTML, scripts y estilos eliminados

  • obtener_markdown

    • Obtener un sitio web y devolver el contenido como Markdown

    • Aporte:

      • url (cadena, obligatoria): URL del sitio web que se buscará

      • headers (objeto, opcional): encabezados personalizados para incluir en la solicitud

    • Devuelve el contenido de la página web convertido al formato Markdown

Recursos

Este servidor no proporciona recursos persistentes. Está diseñado para obtener y transformar contenido web bajo demanda.

Related MCP server: Fetch MCP Server

Empezando

  1. Clonar el repositorio

  2. Instalar dependencias: npm install

  3. Construya el servidor: npm run build

Uso

Para utilizar el servidor, puedes ejecutarlo directamente:

npm start

Esto iniciará la ejecución del servidor Fetch MCP en stdio.

Uso con la aplicación de escritorio

Para integrar este servidor con una aplicación de escritorio, agregue lo siguiente a la configuración del servidor de su aplicación:

{
  "mcpServers": {
    "fetch": {
      "command": "node",
      "args": [
        "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
      ]
    }
  }
}

Características

  • Obtiene contenido web mediante una API de búsqueda moderna

  • Admite encabezados personalizados para solicitudes

  • Proporciona contenido en múltiples formatos: HTML, JSON, texto sin formato y Markdown

  • Utiliza JSDOM para el análisis de HTML y la extracción de texto.

  • Utiliza TurndownService para la conversión de HTML a Markdown

Desarrollo

  • Ejecute npm run dev para iniciar el compilador de TypeScript en modo de observación

  • Utilice npm test para ejecutar el conjunto de pruebas

Licencia

Este proyecto está licenciado bajo la licencia MIT.

Available Tools

4 tools
fetch_htmlC

Fetch a website and return its unmodified contents as HTML

Inputs: url (required), headers, max_length, start_index.

fetch_jsonC

Fetch a JSON file from a URL

Inputs: url (required), headers, max_length, start_index.

fetch_markdownC

Fetch a website and return its contents converted content to Markdown

Inputs: url (required), headers, max_length, start_index.

fetch_txtA

Fetch a website, convert the content to plain text (no HTML)

Inputs: url (required), headers, max_length, start_index.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: fetch_html returns raw HTML, fetch_json retrieves JSON files, fetch_markdown converts to Markdown, and fetch_txt extracts plain text. There is no ambiguity or overlap in functionality, making it easy for an agent to select the correct tool based on the desired output format.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with 'fetch_' prefix and descriptive suffixes (html, json, markdown, txt). This predictable naming scheme enhances readability and usability, allowing agents to intuitively understand each tool's function without confusion.

    Tool Count5/5

    With 4 tools, the server is well-scoped for its purpose of fetching and converting web content. Each tool earns its place by covering distinct output formats (HTML, JSON, Markdown, plain text), avoiding bloat while providing comprehensive coverage for common web data retrieval needs.

    Completeness5/5

    The tool set provides complete coverage for the domain of fetching web content in various formats. It includes raw HTML, structured JSON, and converted formats (Markdown and plain text), leaving no obvious gaps. Agents can handle a wide range of web data retrieval scenarios without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown with support for custom headers.
      4
      117,041 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides functionality to fetch and transform web content in various formats (HTML, JSON, plain text, and Markdown) through simple API calls.
      117,041 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fetching and converting web content into various formats including HTML, JSON, plain text, and Markdown. It supports custom request headers and provides specialized tools for on-demand web data retrieval and transformation.
      117,041 npm
      MIT