MCP NPX Fetch
Obtención de NPX de MCP
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-fetchO vía npx:
npx @tokenizin/mcp-npx-fetchIntegración de escritorio de Claude
Localice el archivo de configuración de Claude Desktop:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonVentanas:
%APPDATA%/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Agregue la siguiente configuración a su objeto
mcpServers:
{
"mcpServers": {
"fetch": {
"command": "npx",
"args": ["-y", "@tokenizin/mcp-npx-fetch"],
"env": {}
}
}
}💻 Desarrollo local
Clonar el repositorio:
git clone https://github.com/tokenizin-agency/mcp-npx-fetch.git
cd mcp-npx-fetchInstalar dependencias:
npm installIniciar modo de desarrollo:
npm run devEjecutar pruebas:
npm testPila técnica
SDK del Protocolo de Contexto de Modelo : funcionalidad principal de MCP
JSDOM - Análisis y manipulación de HTML
Reducción de costes : conversión de HTML a Markdown
TypeScript : seguridad de tipos y funciones modernas de JavaScript
Zod - Validación de tipos en tiempo de ejecución
🤝 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.
Bifurcar el repositorio
Crea tu rama de funciones (
git checkout -b feature/AmazingFeature)Confirme sus cambios (
git commit -m 'Add some AmazingFeature')Empujar a la rama (
git push origin feature/AmazingFeature)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 toolsfetch_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
Scored across 4 tools
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.
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.
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.
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
Web scraping MCP server: any URL to Markdown or JSON, with JavaScript rendering and batch jobs.
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
Free remote MCP server for fetching public web pages through a rotating proxy pool.
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server for fetching and transforming web content into various formats.49MIT
- AlicenseAqualityDmaintenanceMCP server for fetching web content with browser fingerprint camouflage, converting HTML to clean Markdown to bypass bot detection.11MIT
- AlicenseAqualityDmaintenanceA dedicated web content fetching and conversion MCP server that provides tools for fetching, converting, and extracting data from web pages.11MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that fetches remote or local HTML resources and converts them to Markdown, enabling AI clients to summarize or process web content.9 npmMIT