MCP URL Fetcher
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP URL Fetcher fetch https://news.ycombinator.com and convert it to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP URL Format Converter
A Model Context Protocol (MCP) server that fetches content from any URL and converts it to your desired output format.
Overview
MCP URL Format Converter provides tools for retrieving content from any web URL and transforming it into various formats (HTML, JSON, Markdown, or plain text), regardless of the original content type. It's designed to work with any MCP-compatible client, including Claude for Desktop, enabling LLMs to access, transform, and analyze web content in a consistent format.
Related MCP server: MCP Web Tools Server
Features
🔄 Format Conversion: Transform any web content to HTML, JSON, Markdown, or plain text
🌐 Universal Input Support: Handle websites, APIs, raw files, and more
🔍 Automatic Content Detection: Intelligently identifies source format
🧰 Robust Library Support: Uses industry-standard libraries:
Cheerio for HTML parsing
Marked for Markdown processing
Fast-XML-Parser for XML handling
CSVtoJSON for CSV conversion
SanitizeHTML for security
Turndown for HTML-to-Markdown conversion
🔧 Advanced Format Processing:
HTML parsing with metadata extraction
JSON pretty-printing and structure preservation
Markdown rendering with styling
CSV-to-table conversion
XML-to-JSON transformation
📜 History Tracking: Maintains logs of recently fetched URLs
🛡️ Security Focus: Content sanitization to prevent XSS attacks
Installation
Prerequisites
Node.js 16.x or higher
npm or yarn
Quick Start
Clone the repository:
git clone https://github.com/yourusername/mcp-url-converter.git cd mcp-url-converterInstall dependencies:
npm installBuild the project:
npm run buildRun the server:
npm start
Integration with Claude for Desktop
Open your Claude for Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the URL converter server to your configuration:
{ "mcpServers": { "url-converter": { "command": "node", "args": ["/absolute/path/to/mcp-url-converter/build/index.js"] } } }Restart Claude for Desktop
Available Tools
fetch
Fetches content from any URL and automatically detects the best output format.
Parameters:
url(string, required): The URL to fetch content fromformat(string, optional): Format to convert to (auto,html,json,markdown,text). Default:auto
Example:
Can you fetch https://example.com and choose the best format to display it?fetch-json
Fetches content from any URL and converts it to JSON format.
Parameters:
url(string, required): The URL to fetch content fromprettyPrint(boolean, optional): Whether to pretty-print the JSON. Default:true
Example:
Can you fetch https://example.com and convert it to JSON format?fetch-html
Fetches content from any URL and converts it to HTML format.
Parameters:
url(string, required): The URL to fetch content fromextractText(boolean, optional): Whether to extract text content only. Default:false
Example:
Can you fetch https://api.example.com/users and convert it to HTML?fetch-markdown
Fetches content from any URL and converts it to Markdown format.
Parameters:
url(string, required): The URL to fetch content from
Example:
Can you fetch https://example.com and convert it to Markdown?fetch-text
Fetches content from any URL and converts it to plain text format.
Parameters:
url(string, required): The URL to fetch content from
Example:
Can you fetch https://example.com and convert it to plain text?web-search and deep-research
These tools provide interfaces to Perplexity search capabilities (when supported by the MCP host).
Available Resources
recent-urls://list
Returns a list of recently fetched URLs with timestamps and output formats.
Example:
What URLs have I fetched recently?Security
This server implements several security measures:
HTML sanitization using
sanitize-htmlto prevent XSS attacksContent validation before processing
Error handling and safe defaults
Input parameter validation with Zod
Safe output encoding
Testing
You can test the server using the MCP Inspector:
npm run testTroubleshooting
Common Issues
Connection errors: Verify that the URL is accessible and correctly formatted
Conversion errors: Some complex content may not convert cleanly between formats
Cross-origin issues: Some websites may block requests from unknown sources
Debug Mode
For additional debugging information, set the DEBUG environment variable:
DEBUG=mcp:* npm startLicense
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with the Model Context Protocol
Uses modern, actively maintained libraries with security focus
Sanitization approach based on OWASP recommendations
Last updated: 29 March 2025
Available Tools
5 toolsfetchC
Fetch content from a URL with automatic content type detection
Inputs: url (required), format.
fetch-htmlB
Fetch content from any URL and convert to HTML format
Inputs: url (required), extractText.
fetch-jsonC
Fetch content from any URL and convert to JSON format
Inputs: url (required), prettyPrint.
fetch-markdownA
Fetch content from any URL and convert to Markdown format
Inputs: url (required).
fetch-textC
Fetch content from any URL and convert to plain text format
Inputs: url (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The tools have significant overlap in purpose, as all fetch content from URLs, differing only in output format. An agent could easily misselect between fetch-html, fetch-json, fetch-markdown, and fetch-text, since the descriptions don't clarify when to use one format over another. The generic 'fetch' tool with automatic detection further confuses boundaries, as it might duplicate or conflict with the format-specific tools.
Tool names follow a highly consistent verb-noun pattern throughout, with all tools using 'fetch' as the verb followed by a hyphen and format descriptor (e.g., fetch-html, fetch-json). There are no deviations in style or convention, making the naming predictable and easy to parse for an agent.
With 5 tools, the count is reasonable for a URL fetching server, but it feels borderline due to redundancy. The tools could potentially be consolidated into fewer, more flexible tools (e.g., a single fetch tool with a format parameter), making the current set feel slightly over-specified for the simple domain of fetching URLs.
For the domain of fetching URL content, the tool set is nearly complete, covering automatic detection and common output formats (HTML, JSON, Markdown, plain text). A minor gap exists in handling errors or advanced configurations (e.g., headers, timeouts), but agents can likely work around this with the provided tools for basic fetching tasks.
Maintenance
Related MCP Connectors
Jina AI Reader/Search MCP — turn any URL into clean LLM-ready markdown, plus web search.
PDF, DOCX and image URLs to clean, LLM-ready Markdown or text, with OCR for scanned pages.
Autonomous Website Intelligence & OSINT Suite for AI Agents (10 Tools) Surgically extract clean token-optimized Markdown for RAG, detect 65+ tech stacks, identify corporate mail providers (Google Workspace vs Microsoft 365), and audit SSL/security posture with hardened SSRF protection. Quick Install in Claude Desktop (claude_desktop_config.json): json { "mcpServers": { "webintel": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-fetch", "https://webintel-apis.vercel.app/api/mcp"] } } }
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- AlicenseAqualityDmaintenanceA production-ready Model Context Protocol server that enables language models to leverage AI-powered web scraping capabilities, offering tools for transforming webpages to markdown, extracting structured data, and executing AI-powered web searches.8109 PyPI123MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.1MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that intelligently fetches and processes web content, transforming websites and documentation into clean, structured markdown with nested URL crawling capabilities.210 npm9MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to securely fetch and extract readable text content from web pages through a standardized interface.1MIT