Skip to main content
Glama

Obtención de NPX de MCP

versión npm Licencia: MIT Mecanografiado Protocolo de contexto modelo

Un potente servidor MCP para obtener y transformar contenido web en varios formatos (HTML, JSON, Markdown, texto sin formato) con facilidad.

Instalación • Características • Uso • Documentación • Contribución


🚀 Características

  • 🌐 Obtención de contenido universal : admite formatos HTML, JSON, texto sin formato y Markdown

  • 🔒 Soporte para encabezados personalizados : agregue autenticación y encabezados personalizados a sus solicitudes

  • 🛠 Transformaciones integradas : Conversión automática entre formatos

  • ⚡ Alto rendimiento : creado con funciones modernas de JavaScript y optimizado para la velocidad

  • 🔌 Compatible con MCP : se integra perfectamente con Claude Desktop y otros clientes MCP

  • 🎯 Type-Safe : escrito en TypeScript con definiciones de tipos completas

Related MCP server: webfetch-camouflage

📦 Instalación

Instalación global de NPM

npm install -g @tokenizin/mcp-npx-fetch

Uso directo con NPX

npx @tokenizin/mcp-npx-fetch

📚 Documentación

Herramientas disponibles

fetch_html

Obtiene y devuelve contenido HTML sin procesar desde cualquier URL.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_json

Obtiene y analiza datos JSON de cualquier URL.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_txt

Obtiene y devuelve contenido de texto simple limpio, eliminando etiquetas HTML y scripts.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

fetch_markdown

Obtiene contenido y lo convierte a Markdown bien formateado.

{
  url: string;     // Required: Target URL
  headers?: {      // Optional: Custom request headers
    [key: string]: string;
  };
}

🔧 Uso

Uso de la CLI

Inicie el servidor MCP directamente:

mcp-npx-fetch

O vía npx:

npx @tokenizin/mcp-npx-fetch

Integración de escritorio de Claude

  1. Localice el archivo de configuración de Claude Desktop:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Ventanas: %APPDATA%/Claude/claude_desktop_config.json

    • Linux: ~/.config/Claude/claude_desktop_config.json

  2. Agregue la siguiente configuración a su objeto mcpServers :

{
  "mcpServers": {
    "fetch": {
      "command": "npx",
      "args": ["-y", "@tokenizin/mcp-npx-fetch"],
      "env": {}
    }
  }
}

💻 Desarrollo local

  1. Clonar el repositorio:

git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git
cd mcp-npx-fetch
  1. Instalar dependencias:

npm install
  1. Iniciar modo de desarrollo:

npm run dev
  1. Ejecutar pruebas:

npm test

Pila técnica

🤝 Contribuyendo

¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios. Para cambios importantes, primero abra una incidencia para comentar qué desea cambiar.

  1. Bifurcar el repositorio

  2. Crea tu rama de funciones ( git checkout -b feature/AmazingFeature )

  3. Confirme sus cambios ( git commit -m 'Add some AmazingFeature' )

  4. Empujar a la rama ( git push origin feature/AmazingFeature )

  5. Abrir una solicitud de extracción

📄 Licencia

Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.


Available Tools

4 tools
fetch_htmlC

Fetch a website and return the content as HTML

Inputs: url (required), headers.

fetch_jsonC

Fetch a JSON file from a URL

Inputs: url (required), headers.

fetch_markdownC

Fetch a website and return the content as Markdown

Inputs: url (required), headers.

fetch_txtA

Fetch a website, return the content as plain text (no HTML)

Inputs: url (required), headers.

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 based on the output format (HTML, JSON, Markdown, plain text), with no overlap in functionality. The descriptions explicitly differentiate them by content type, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with 'fetch_' prefix and suffix indicating the output format (e.g., fetch_html, fetch_json). The naming is perfectly uniform and predictable across all four tools.

    Tool Count5/5

    With 4 tools, this server is well-scoped for fetching content in different formats. Each tool earns its place by covering a distinct output type, and the count is neither too thin nor excessive for the domain of URL-based content retrieval.

    Completeness4/5

    The toolset covers the core fetching operations for common content types (HTML, JSON, Markdown, plain text), with no dead ends. A minor gap exists in not handling other formats like XML or binary data, but agents can work around this for most use cases.

    Related MCP Connectors

    Related MCP Servers