Home / Servers / Text Toolkit / html_to_markdown

Html to markdown

An MCP tool from the Text Toolkit server, hosted on mcp.hjlabs.in.

Convert an HTML document or fragment to readable Markdown: headings, links (made absolute with base_url), lists, code, tables and images. Navigation, scripts and styles are dropped.

Name on the gateway: text__html_to_markdown · read-only.

Parameters

NameTypeDescription
html requiredstringThe HTML.
base_urlstringBase URL for relative links, e.g. "https://example.com/docs/". Optional.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "text__html_to_markdown",
  "arguments": {
    "html": "…"
  }
}

Or connect the Text Toolkit server directly, which lists 43 tools including this one:

Run in your terminal
claude mcp add --transport http hj-text https://mcp.hjlabs.in/mcp/text \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the html to markdown tool with html set to ….

More from Text Toolkit