MCP URL Format Converter
About
Fetches content from any URL and converts it to HTML, JSON, Markdown, or plain text.
Details
- Author
- nathanonn
- Categories
- Web Scraping, Other
Jump to
Setup
Install MCP URL Format Converter in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/nathanonn/mcp-url-fetcher
Follow the installation instructions in the repository README, then restart your MCP client.
Fetches content from any URL and converts it to HTML, JSON, Markdown, or plain text.
A Model Context Protocol (MCP) server that fetches content from any URL and converts it to your desired output format.
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.
- π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
- HTML parsing with metadata extraction
- JSON pretty-printing and structure preservation
- Markdown rendering with styling
- CSV-to-table conversion
- XML-to-JSON transformation
git clone https://github.com/yourusername/mcp-url-converter.git cd mcp-url-converter
-
Open your Claude for Desktop configuration file:
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%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"] } } }
Fetches content from any URL and automatically detects the best output format.
- url(string, required): The URL to fetch content from
- format(string, optional): Format to convert to (auto,html,json,markdown,text). Default:auto
Can you fetch https://example.com and choose the best format to display it?
Fetches content from any URL and converts it to JSON format.
- url(string, required): The URL to fetch content from
- prettyPrint(boolean, optional): Whether to pretty-print the JSON. Default:true
Can you fetch https://example.com and convert it to JSON format?
Fetches content from any URL and converts it to HTML format.
- url(string, required): The URL to fetch content from
- extractText(boolean, optional): Whether to extract text content only. Default:false
Can you fetch https://api.example.com/users and convert it to HTML?
Fetches content from any URL and converts it to Markdown format.
- url(string, required): The URL to fetch content from
Can you fetch https://example.com and convert it to Markdown?
Fetches content from any URL and converts it to plain text format.
- url(string, required): The URL to fetch content from
Can you fetch https://example.com and convert it to plain text?
These tools provide interfaces to Perplexity search capabilities (when supported by the MCP host).
Returns a list of recently fetched URLs with timestamps and output formats.
This server implements several security measures:
- HTML sanitization usingsanitize-htmlto prevent XSS attacks
- Content validation before processing
- Error handling and safe defaults
- Input parameter validation with Zod
- Safe output encoding
You can test the server using the MCP Inspector:
- 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
For additional debugging information, set theDEBUGenvironment variable:
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with theModel Context Protocol
- Uses modern, actively maintained libraries with security focus
- Sanitization approach based on OWASP recommendations
Fetches web pages and converts them to clean markdown, focusing on main content extraction.
Fetches web content from a URL and converts it from HTML to markdown for easier consumption by LLMs.
Fetch web pages and convert HTML to clean, formatted Markdown. Handles large pages with automatic file saving to bypass token limits.
Local-first MCP server that captures web URLs (X, Reddit, YouTube, Wikipedia, articles) as typed data + Markdown into a self-hosted capture/store/recall substrate, with offline semantic recall. Six tools over a local khiipd daemon; run khiipd serve first.
Download webpages as markdown files using the r.jina.ai service, with configurable directories and persistent settings.
Extracts and transforms webpage content into clean, LLM-optimized Markdown using Mozilla's Readability algorithm.
Convert any URL to clean, LLM-ready Markdown
Extracts and transforms webpage content into clean, LLM-optimized Markdown using the Readability algorithm.
Extracts web content from a URL and converts it to clean Markdown format.
An MCP server for the Urlbox Screenshot API. It enables your client to take screenshots, generate PDFs, extract HTML/markdown, and more from websites.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




