Skip to main content
Glama
MCP Server Fetch TypeScript

MCP Server Fetch TypeScript

by tatn

Servidor MCP mcp-server-fetch-typescript

Un servidor de Protocolo de Contexto de Modelo que proporciona capacidades de obtención y conversión de contenido web. Este servidor implementa un sistema integral de recuperación de contenido web compatible con diversos formatos y métodos de renderizado, lo que lo hace ideal para tareas que abarcan desde la extracción simple de datos hasta el raspado web sofisticado.

Características

Herramientas

  • get_raw_text - Recupera contenido de texto sin procesar directamente de las URL

    • Toma url como un parámetro obligatorio que apunta a recursos basados en texto

    • Devuelve contenido de texto sin procesar sin renderizar en el navegador

    • Ideal para archivos JSON, XML, CSV, TSV o de texto sin formato

    • Se utiliza mejor cuando se necesita acceso rápido y directo al contenido fuente.

  • get_rendered_html - Obtener contenido HTML completamente renderizado

    • Toma url como parámetro obligatorio

    • Devuelve contenido HTML completo después de la ejecución de JavaScript

    • Utiliza Playwright para la renderización sin interfaz gráfica del navegador

    • Esencial para aplicaciones web modernas y SPA

  • get_markdown - Convertir contenido web al formato Markdown

    • Toma url como parámetro obligatorio

    • Devuelve Markdown bien formateado que conserva los elementos estructurales

    • Admite tablas y listas de definiciones

    • Recomendado para archivar y documentar contenidos.

  • get_markdown_summary - Extraer y convertir el contenido principal

    • Toma url como parámetro obligatorio

    • Devuelve Markdown limpio centrándose en el contenido principal

    • Elimina automáticamente la navegación, los encabezados y los pies de página.

    • Perfecto para la extracción de artículos y publicaciones de blogs.

Related MCP server: MCP Server for Google Search

Instalación

Como paquete global

npm install -g mcp-server-fetch-typescript

Como dependencia del proyecto

npm install mcp-server-fetch-typescript

Uso

Uso con Claude Desktop

Para utilizar con Claude Desktop, agregue la configuración del servidor:

En MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
En Windows: %APPDATA%/Claude/claude_desktop_config.json

"mcpServers": {
  "mcp-server-fetch-typescript": {
    "command": "npx",
    "args": [
      "-y",
      "mcp-server-fetch-typescript"
    ]
  }
}

o agregue la siguiente configuración:

git clone https://github.com/tatn/mcp-server-fetch-typescript.git
cd mcp-server-fetch-typescript
npm install
npm run build
"mcpServers": {
  "mcp-server-fetch-typescript": {
    "command": "node",
    "args": [
      "/path/to/mcp-server-fetch-typescript/build/index.js"
    ]
  }
}

Depuración

Para depurar el servidor MCP:

npx @modelcontextprotocol/inspector npx -y mcp-server-fetch-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-fetch-typescript/build/index.js

Available Tools

4 tools
get_markdownA

Converts web page content to well-formatted Markdown, preserving structural elements like tables and definition lists. Recommended as the default tool for web content extraction when a clean, readable text format is needed while maintaining document structure.

Inputs: url (required).

get_markdown_summaryA

Extracts and converts the main content area of a web page to Markdown format, automatically removing navigation menus, headers, footers, and other peripheral content. Perfect for capturing the core content of articles, blog posts, or documentation pages.

Inputs: url (required).

get_raw_textA

Retrieves raw text content directly from a URL without browser rendering. Ideal for structured data formats like JSON, XML, CSV, TSV, or plain text files. Best used when fast, direct access to the source content is needed without processing dynamic elements.

Inputs: url (required).

get_rendered_htmlA

Fetches fully rendered HTML content using a headless browser, including JavaScript-generated content. Essential for modern web applications, single-page applications (SPAs), or any content that requires client-side rendering to be complete.

Inputs: url (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_markdown preserves full structure, get_markdown_summary focuses on core content, get_raw_text handles raw data formats, and get_rendered_html captures JavaScript-rendered content. The descriptions explicitly differentiate use cases, leaving no ambiguity for agent selection.

    Naming Consistency5/5

    All tool names follow a consistent 'get_*' verb_noun pattern with snake_case, making them predictable and easy to parse. The naming convention is uniform across all four tools, enhancing readability and coherence.

    Tool Count5/5

    With 4 tools, the set is well-scoped for a web content fetching server, covering key extraction methods (Markdown, raw text, rendered HTML) and a specialized summary variant. Each tool earns its place without redundancy or excessive complexity.

    Completeness5/5

    The tool surface comprehensively covers the domain of web content fetching: it includes raw extraction, rendered content, and two Markdown variants for different needs. There are no obvious gaps, as the tools handle static, dynamic, and structured content effectively.

    Related MCP Connectors

    Related MCP Servers