MCP URL Format Converter is an MCP server that fetches content from any web address and converts it into structured formats such as HTML, JSON, Markdown, or plain text. Built for developers, data analysts, and users of AI assistants like Claude for Desktop, it enables language models to ingest and examine web pages, API endpoints, raw files, XML feeds, and tabular CSV data through a standardized interface. The server connects directly to external web resources using Node.js libraries including Cheerio, Marked, Fast-XML-Parser, CSVtoJSON, and Turndown to process incoming payloads into clean, consumable output. It incorporates automatic source format detection to handle diverse media types without manual configuration. Security controls such as HTML sanitization via sanitize-html and parameter validation via Zod are applied to help mitigate cross-site scripting risks and malformed payloads. In addition to universal format conversion, the server records a query history resource that tracks recently fetched URLs alongside their timestamps, allowing downstream agents to inspect past requests and systematically retrieve content across heterogeneous web environments.
Category: Browser & Web Automation
Tags: data-extraction, html, markdown, url, web scraping
Visit MCP URL Format Converter
bash git clone https://github.com/yourusername/mcp-url-converter.git cd mcp-url-converter 2. Install the necessary project dependencies: bash npm install 3. Build the project distribution files: bash npm run build 4. Open your Claude for Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows). 5. Add the server entry under the mcpServers configuration key: json { "mcpServers": { "url-converter": { "command": "node", "args": ["/absolute/path/to/mcp-url-converter/build/index.js"] } } } 6. Restart Claude for Desktop to complete integration.Part of MCP Servers
MCP URL Format Converter fetches web content from any valid URL and converts it into formats including HTML, JSON, Markdown, or plain text. It helps language models parse web pages, APIs, and document files without needing custom scraping scripts for each source format.
To install the server, clone the repository, run npm install, and execute npm run build. Next, open your claude_desktop_config.json file and register url-converter under mcpServers, specifying node as the command and pointing the args array to your absolute path to build/index.js. Finally, restart Claude for Desktop to load the tools.
The server provides specialized fetch tools including fetch for automatic format detection, fetch-json for JSON parsing with pretty printing, fetch-html for raw or extracted text HTML, fetch-markdown for Markdown conversion, and fetch-text for plain text output. It also includes search tools and a recent-urls list resource.
Yes, MCP URL Format Converter is open source software released under the MIT License. The code is freely available in its repository, allowing users and developers to inspect the source code, customize the format conversion parsers, and integrate the server into their local environments under standard permissive license terms.
The server uses sanitize-html to sanitize retrieved HTML content and defend against cross-site scripting vulnerabilities. It also implements input parameter validation using Zod schemas, validates content before processing, and applies safe output encoding to prevent malformed data from affecting client applications.