Fetches web pages and converts their HTML to clean Markdown with Turndown.js, saving large pages to files to stay within token limits.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add html-to-markdown -- npx html-to-markdown-mcp~/.codex/config.toml
[mcp_servers.html-to-markdown]
command = "npx"
args = ["html-to-markdown-mcp"]
# codex mcp add html-to-markdown -- npx html-to-markdown-mcp~/.cursor/mcp.json
{
"mcpServers": {
"html-to-markdown": {
"command": "npx",
"args": [
"html-to-markdown-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"html-to-markdown": {
"type": "stdio",
"command": "npx",
"args": [
"html-to-markdown-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"html-to-markdown": {
"command": "npx",
"args": [
"html-to-markdown-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"html-to-markdown": {
"command": "npx",
"args": [
"html-to-markdown-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"html-to-markdown": {
"command": "npx",
"args": [
"html-to-markdown-mcp"
]
}
}
}