The MCP URL Format Converter is a server that fetches content from any web URL and transforms it into various formats (HTML, JSON, Markdown, or plain text), regardless of the original content type. It works with any MCP-compatible client, including Claude for Desktop, enabling LLMs to access and analyze web content in consistent formats.
Clone the repository:
git clone https://github.com/yourusername/mcp-url-converter.git
cd mcp-url-converter
Install dependencies:
npm install
Build the project:
npm run build
Run the server:
npm start
Open your Claude for Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%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
Automatically detects and converts content to the best output format.
Parameters:
url
(required): The URL to fetch content fromformat
(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?
Converts content to JSON format.
Parameters:
url
(required): The URL to fetch content fromprettyPrint
(optional): Whether to pretty-print the JSON. Default: true
Example:
Can you fetch https://example.com and convert it to JSON format?
Converts content to HTML format.
Parameters:
url
(required): The URL to fetch content fromextractText
(optional): Whether to extract text content only. Default: false
Example:
Can you fetch https://api.example.com/users and convert it to HTML?
Converts content to Markdown format.
Parameters:
url
(required): The URL to fetch content fromExample:
Can you fetch https://example.com and convert it to Markdown?
Converts content to plain text format.
Parameters:
url
(required): The URL to fetch content fromExample:
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).
You can view a list of recently fetched URLs using the following resource:
What URLs have I fetched recently?
This will return a list of URLs with timestamps and output formats.
For additional debugging information, set the DEBUG
environment variable:
DEBUG=mcp:* npm start
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "url-converter" '{"command":"node","args":["/absolute/path/to/mcp-url-converter/build/index.js"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"url-converter": {
"command": "node",
"args": [
"/absolute/path/to/mcp-url-converter/build/index.js"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"url-converter": {
"command": "node",
"args": [
"/absolute/path/to/mcp-url-converter/build/index.js"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect